36 changed files with 7268 additions and 5 deletions
@ -0,0 +1,77 @@ |
|||
package com.research.web.controller.client.session; |
|||
|
|||
import com.github.pagehelper.PageHelper; |
|||
import com.github.pagehelper.PageInfo; |
|||
import com.research.common.core.domain.BaseDto; |
|||
import com.research.common.core.domain.JsonResponse; |
|||
import com.research.system.domain.dto.SessionDto; |
|||
import com.research.system.domain.vo.SessionVo; |
|||
import com.research.system.service.SessionService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import liquibase.pro.packaged.J; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.web.controller.client.session |
|||
* @Date 2025/11/24 14:39 |
|||
* @description: |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/session") |
|||
@Api(tags = "消息相关") |
|||
@Slf4j |
|||
public class SessionController { |
|||
|
|||
@Resource |
|||
private SessionService sessionService; |
|||
|
|||
@ApiOperation(value = "查询通讯录") |
|||
@RequestMapping(value = "/queryTxl", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<SessionVo.TxlResult>> queryTxl(@ApiParam @Validated @RequestBody BaseDto<SessionDto.Query> dto) { |
|||
if (dto.getPageNum() > 0) { |
|||
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); |
|||
} |
|||
return JsonResponse.ok(new PageInfo<>(sessionService.queryTxl(dto.getParam()))); |
|||
} |
|||
|
|||
@ApiOperation(value = "根据会话ID查询聊天记录") |
|||
@RequestMapping(value = "/queryLog", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<SessionVo.MessageLogResult> queryLog(@ApiParam @Validated @RequestBody BaseDto<SessionDto.SessionId> dto) { |
|||
return JsonResponse.ok(sessionService.queryLog(dto)); |
|||
} |
|||
|
|||
@ApiOperation(value = "发送消息") |
|||
@RequestMapping(value = "/send", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> send(@ApiParam @Validated @RequestBody SessionDto.SendMessage dto) { |
|||
return JsonResponse.ok(sessionService.send(dto)); |
|||
} |
|||
|
|||
@ApiOperation(value = "添加会话") |
|||
@RequestMapping(value = "/addSession", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Long> addSession(@ApiParam @Validated @RequestBody SessionDto.CreateSession dto) { |
|||
return JsonResponse.ok(sessionService.addSession(dto)); |
|||
} |
|||
|
|||
@ApiOperation(value = "删除会话") |
|||
@RequestMapping(value = "/delSession", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> delSession(@ApiParam @Validated @RequestBody SessionDto.Delete dto) { |
|||
return JsonResponse.ok(sessionService.delSession(dto)); |
|||
} |
|||
|
|||
@ApiOperation(value = "删除聊天记录") |
|||
@RequestMapping(value = "/delLog", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Integer> delLog(@ApiParam @Validated @RequestBody SessionDto.Delete dto) { |
|||
return JsonResponse.ok(sessionService.delLog(dto)); |
|||
} |
|||
} |
|||
@ -0,0 +1,66 @@ |
|||
package com.research.system.domain.dto; |
|||
|
|||
import com.research.common.utils.SecurityUtils; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.dto |
|||
* @Date 2025/11/23 17:06 |
|||
* @description: |
|||
*/ |
|||
public class SessionDto { |
|||
|
|||
@Data |
|||
public static class Query{ |
|||
@ApiModelProperty("昵称") |
|||
private String nickname; |
|||
private Long userId = SecurityUtils.getUserId(); |
|||
} |
|||
|
|||
@Data |
|||
public static class SessionId{ |
|||
@NotNull(message = "会话id不能为空") |
|||
@ApiModelProperty("会话id") |
|||
private Long sessionId; |
|||
} |
|||
|
|||
@Data |
|||
public static class SendMessage{ |
|||
@ApiModelProperty("会话id") |
|||
private Long sessionId; |
|||
@ApiModelProperty("内容") |
|||
private String content; |
|||
@ApiModelProperty("消息内容类型 0文本 1文件 2图片 10X成果(论文专利等) 20X共享(仪器、参考文献、试验方法等") |
|||
private Byte contentType; |
|||
// @ApiModelProperty("消息文本内容 类型为文件/图片时是url地址 ,为成果/任务时为业务ID ,存储时编码 最长500个中文字符")
|
|||
// private Long recipient;
|
|||
@ApiModelProperty("引用的消息ID") |
|||
private Long referencedMessageId; |
|||
@ApiModelProperty("被@的用户ID 多个用逗号隔开 不用编码") |
|||
private String mentionedUsers; |
|||
} |
|||
|
|||
@Data |
|||
public static class CreateSession{ |
|||
@ApiModelProperty("会话id") |
|||
private Long sessionId; |
|||
@ApiModelProperty("会话名称") |
|||
private String sessionName; |
|||
@ApiModelProperty("会话类型 0普通会话 1群组会话") |
|||
private Byte type; |
|||
@ApiModelProperty("会话成员") |
|||
private List<Long> memberList; |
|||
} |
|||
|
|||
@Data |
|||
public static class Delete{ |
|||
@ApiModelProperty("会话id") |
|||
private List<Long> idList; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,116 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class ChatContactList implements Serializable { |
|||
private Long userId; |
|||
|
|||
private String userName; |
|||
|
|||
private String nickName; |
|||
|
|||
private String avatar; |
|||
|
|||
private String phonenumber; |
|||
|
|||
private String sex; |
|||
|
|||
private String status; |
|||
|
|||
private Long orgId; |
|||
|
|||
private String orgName; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getUserName() { |
|||
return userName; |
|||
} |
|||
|
|||
public void setUserName(String userName) { |
|||
this.userName = userName == null ? null : userName.trim(); |
|||
} |
|||
|
|||
public String getNickName() { |
|||
return nickName; |
|||
} |
|||
|
|||
public void setNickName(String nickName) { |
|||
this.nickName = nickName == null ? null : nickName.trim(); |
|||
} |
|||
|
|||
public String getAvatar() { |
|||
return avatar; |
|||
} |
|||
|
|||
public void setAvatar(String avatar) { |
|||
this.avatar = avatar == null ? null : avatar.trim(); |
|||
} |
|||
|
|||
public String getPhonenumber() { |
|||
return phonenumber; |
|||
} |
|||
|
|||
public void setPhonenumber(String phonenumber) { |
|||
this.phonenumber = phonenumber == null ? null : phonenumber.trim(); |
|||
} |
|||
|
|||
public String getSex() { |
|||
return sex; |
|||
} |
|||
|
|||
public void setSex(String sex) { |
|||
this.sex = sex == null ? null : sex.trim(); |
|||
} |
|||
|
|||
public String getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public void setStatus(String status) { |
|||
this.status = status == null ? null : status.trim(); |
|||
} |
|||
|
|||
public Long getOrgId() { |
|||
return orgId; |
|||
} |
|||
|
|||
public void setOrgId(Long orgId) { |
|||
this.orgId = orgId; |
|||
} |
|||
|
|||
public String getOrgName() { |
|||
return orgName; |
|||
} |
|||
|
|||
public void setOrgName(String orgName) { |
|||
this.orgName = orgName == null ? null : orgName.trim(); |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", userName=").append(userName); |
|||
sb.append(", nickName=").append(nickName); |
|||
sb.append(", avatar=").append(avatar); |
|||
sb.append(", phonenumber=").append(phonenumber); |
|||
sb.append(", sex=").append(sex); |
|||
sb.append(", status=").append(status); |
|||
sb.append(", orgId=").append(orgId); |
|||
sb.append(", orgName=").append(orgName); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,810 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
public class ChatContactListExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ChatContactListExample() { |
|||
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; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
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 andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameIsNull() { |
|||
addCriterion("user_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameIsNotNull() { |
|||
addCriterion("user_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameEqualTo(String value) { |
|||
addCriterion("user_name =", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameNotEqualTo(String value) { |
|||
addCriterion("user_name <>", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameGreaterThan(String value) { |
|||
addCriterion("user_name >", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("user_name >=", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameLessThan(String value) { |
|||
addCriterion("user_name <", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameLessThanOrEqualTo(String value) { |
|||
addCriterion("user_name <=", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameLike(String value) { |
|||
addCriterion("user_name like", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameNotLike(String value) { |
|||
addCriterion("user_name not like", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameIn(List<String> values) { |
|||
addCriterion("user_name in", values, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameNotIn(List<String> values) { |
|||
addCriterion("user_name not in", values, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameBetween(String value1, String value2) { |
|||
addCriterion("user_name between", value1, value2, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameNotBetween(String value1, String value2) { |
|||
addCriterion("user_name not between", value1, value2, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameIsNull() { |
|||
addCriterion("nick_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameIsNotNull() { |
|||
addCriterion("nick_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameEqualTo(String value) { |
|||
addCriterion("nick_name =", value, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameNotEqualTo(String value) { |
|||
addCriterion("nick_name <>", value, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameGreaterThan(String value) { |
|||
addCriterion("nick_name >", value, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("nick_name >=", value, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameLessThan(String value) { |
|||
addCriterion("nick_name <", value, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameLessThanOrEqualTo(String value) { |
|||
addCriterion("nick_name <=", value, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameLike(String value) { |
|||
addCriterion("nick_name like", value, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameNotLike(String value) { |
|||
addCriterion("nick_name not like", value, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameIn(List<String> values) { |
|||
addCriterion("nick_name in", values, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameNotIn(List<String> values) { |
|||
addCriterion("nick_name not in", values, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameBetween(String value1, String value2) { |
|||
addCriterion("nick_name between", value1, value2, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNickNameNotBetween(String value1, String value2) { |
|||
addCriterion("nick_name not between", value1, value2, "nickName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarIsNull() { |
|||
addCriterion("avatar is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarIsNotNull() { |
|||
addCriterion("avatar is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarEqualTo(String value) { |
|||
addCriterion("avatar =", value, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarNotEqualTo(String value) { |
|||
addCriterion("avatar <>", value, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarGreaterThan(String value) { |
|||
addCriterion("avatar >", value, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarGreaterThanOrEqualTo(String value) { |
|||
addCriterion("avatar >=", value, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarLessThan(String value) { |
|||
addCriterion("avatar <", value, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarLessThanOrEqualTo(String value) { |
|||
addCriterion("avatar <=", value, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarLike(String value) { |
|||
addCriterion("avatar like", value, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarNotLike(String value) { |
|||
addCriterion("avatar not like", value, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarIn(List<String> values) { |
|||
addCriterion("avatar in", values, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarNotIn(List<String> values) { |
|||
addCriterion("avatar not in", values, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarBetween(String value1, String value2) { |
|||
addCriterion("avatar between", value1, value2, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarNotBetween(String value1, String value2) { |
|||
addCriterion("avatar not between", value1, value2, "avatar"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberIsNull() { |
|||
addCriterion("phonenumber is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberIsNotNull() { |
|||
addCriterion("phonenumber is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberEqualTo(String value) { |
|||
addCriterion("phonenumber =", value, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberNotEqualTo(String value) { |
|||
addCriterion("phonenumber <>", value, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberGreaterThan(String value) { |
|||
addCriterion("phonenumber >", value, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberGreaterThanOrEqualTo(String value) { |
|||
addCriterion("phonenumber >=", value, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberLessThan(String value) { |
|||
addCriterion("phonenumber <", value, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberLessThanOrEqualTo(String value) { |
|||
addCriterion("phonenumber <=", value, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberLike(String value) { |
|||
addCriterion("phonenumber like", value, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberNotLike(String value) { |
|||
addCriterion("phonenumber not like", value, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberIn(List<String> values) { |
|||
addCriterion("phonenumber in", values, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberNotIn(List<String> values) { |
|||
addCriterion("phonenumber not in", values, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberBetween(String value1, String value2) { |
|||
addCriterion("phonenumber between", value1, value2, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPhonenumberNotBetween(String value1, String value2) { |
|||
addCriterion("phonenumber not between", value1, value2, "phonenumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexIsNull() { |
|||
addCriterion("sex is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexIsNotNull() { |
|||
addCriterion("sex is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexEqualTo(String value) { |
|||
addCriterion("sex =", value, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexNotEqualTo(String value) { |
|||
addCriterion("sex <>", value, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexGreaterThan(String value) { |
|||
addCriterion("sex >", value, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexGreaterThanOrEqualTo(String value) { |
|||
addCriterion("sex >=", value, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexLessThan(String value) { |
|||
addCriterion("sex <", value, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexLessThanOrEqualTo(String value) { |
|||
addCriterion("sex <=", value, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexLike(String value) { |
|||
addCriterion("sex like", value, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexNotLike(String value) { |
|||
addCriterion("sex not like", value, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexIn(List<String> values) { |
|||
addCriterion("sex in", values, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexNotIn(List<String> values) { |
|||
addCriterion("sex not in", values, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexBetween(String value1, String value2) { |
|||
addCriterion("sex between", value1, value2, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSexNotBetween(String value1, String value2) { |
|||
addCriterion("sex not between", value1, value2, "sex"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusIsNull() { |
|||
addCriterion("status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusIsNotNull() { |
|||
addCriterion("status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusEqualTo(String value) { |
|||
addCriterion("status =", value, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusNotEqualTo(String value) { |
|||
addCriterion("status <>", value, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusGreaterThan(String value) { |
|||
addCriterion("status >", value, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusGreaterThanOrEqualTo(String value) { |
|||
addCriterion("status >=", value, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusLessThan(String value) { |
|||
addCriterion("status <", value, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusLessThanOrEqualTo(String value) { |
|||
addCriterion("status <=", value, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusLike(String value) { |
|||
addCriterion("status like", value, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusNotLike(String value) { |
|||
addCriterion("status not like", value, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusIn(List<String> values) { |
|||
addCriterion("status in", values, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusNotIn(List<String> values) { |
|||
addCriterion("status not in", values, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusBetween(String value1, String value2) { |
|||
addCriterion("status between", value1, value2, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStatusNotBetween(String value1, String value2) { |
|||
addCriterion("status not between", value1, value2, "status"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdIsNull() { |
|||
addCriterion("org_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdIsNotNull() { |
|||
addCriterion("org_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdEqualTo(Long value) { |
|||
addCriterion("org_id =", value, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdNotEqualTo(Long value) { |
|||
addCriterion("org_id <>", value, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdGreaterThan(Long value) { |
|||
addCriterion("org_id >", value, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("org_id >=", value, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdLessThan(Long value) { |
|||
addCriterion("org_id <", value, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("org_id <=", value, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdIn(List<Long> values) { |
|||
addCriterion("org_id in", values, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdNotIn(List<Long> values) { |
|||
addCriterion("org_id not in", values, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdBetween(Long value1, Long value2) { |
|||
addCriterion("org_id between", value1, value2, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("org_id not between", value1, value2, "orgId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameIsNull() { |
|||
addCriterion("org_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameIsNotNull() { |
|||
addCriterion("org_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameEqualTo(String value) { |
|||
addCriterion("org_name =", value, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameNotEqualTo(String value) { |
|||
addCriterion("org_name <>", value, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameGreaterThan(String value) { |
|||
addCriterion("org_name >", value, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("org_name >=", value, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameLessThan(String value) { |
|||
addCriterion("org_name <", value, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameLessThanOrEqualTo(String value) { |
|||
addCriterion("org_name <=", value, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameLike(String value) { |
|||
addCriterion("org_name like", value, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameNotLike(String value) { |
|||
addCriterion("org_name not like", value, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameIn(List<String> values) { |
|||
addCriterion("org_name in", values, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameNotIn(List<String> values) { |
|||
addCriterion("org_name not in", values, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameBetween(String value1, String value2) { |
|||
addCriterion("org_name between", value1, value2, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOrgNameNotBetween(String value1, String value2) { |
|||
addCriterion("org_name not between", value1, value2, "orgName"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
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); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,139 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ChatMessageReadStatus implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long sessionId; |
|||
|
|||
private Long sessionMessageId; |
|||
|
|||
private Long sessionMemberId; |
|||
|
|||
private Byte readStatus; |
|||
|
|||
private Byte delStatus; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getSessionId() { |
|||
return sessionId; |
|||
} |
|||
|
|||
public void setSessionId(Long sessionId) { |
|||
this.sessionId = sessionId; |
|||
} |
|||
|
|||
public Long getSessionMessageId() { |
|||
return sessionMessageId; |
|||
} |
|||
|
|||
public void setSessionMessageId(Long sessionMessageId) { |
|||
this.sessionMessageId = sessionMessageId; |
|||
} |
|||
|
|||
public Long getSessionMemberId() { |
|||
return sessionMemberId; |
|||
} |
|||
|
|||
public void setSessionMemberId(Long sessionMemberId) { |
|||
this.sessionMemberId = sessionMemberId; |
|||
} |
|||
|
|||
public Byte getReadStatus() { |
|||
return readStatus; |
|||
} |
|||
|
|||
public void setReadStatus(Byte readStatus) { |
|||
this.readStatus = readStatus; |
|||
} |
|||
|
|||
public Byte getDelStatus() { |
|||
return delStatus; |
|||
} |
|||
|
|||
public void setDelStatus(Byte delStatus) { |
|||
this.delStatus = delStatus; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
@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(", sessionId=").append(sessionId); |
|||
sb.append(", sessionMessageId=").append(sessionMessageId); |
|||
sb.append(", sessionMemberId=").append(sessionMemberId); |
|||
sb.append(", readStatus=").append(readStatus); |
|||
sb.append(", delStatus=").append(delStatus); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,881 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ChatMessageReadStatusExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ChatMessageReadStatusExample() { |
|||
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; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
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 andSessionIdIsNull() { |
|||
addCriterion("session_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdIsNotNull() { |
|||
addCriterion("session_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdEqualTo(Long value) { |
|||
addCriterion("session_id =", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdNotEqualTo(Long value) { |
|||
addCriterion("session_id <>", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdGreaterThan(Long value) { |
|||
addCriterion("session_id >", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("session_id >=", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdLessThan(Long value) { |
|||
addCriterion("session_id <", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("session_id <=", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdIn(List<Long> values) { |
|||
addCriterion("session_id in", values, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdNotIn(List<Long> values) { |
|||
addCriterion("session_id not in", values, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdBetween(Long value1, Long value2) { |
|||
addCriterion("session_id between", value1, value2, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("session_id not between", value1, value2, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdIsNull() { |
|||
addCriterion("session_message_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdIsNotNull() { |
|||
addCriterion("session_message_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdEqualTo(Long value) { |
|||
addCriterion("session_message_id =", value, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdNotEqualTo(Long value) { |
|||
addCriterion("session_message_id <>", value, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdGreaterThan(Long value) { |
|||
addCriterion("session_message_id >", value, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("session_message_id >=", value, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdLessThan(Long value) { |
|||
addCriterion("session_message_id <", value, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("session_message_id <=", value, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdIn(List<Long> values) { |
|||
addCriterion("session_message_id in", values, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdNotIn(List<Long> values) { |
|||
addCriterion("session_message_id not in", values, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdBetween(Long value1, Long value2) { |
|||
addCriterion("session_message_id between", value1, value2, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMessageIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("session_message_id not between", value1, value2, "sessionMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdIsNull() { |
|||
addCriterion("session_member_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdIsNotNull() { |
|||
addCriterion("session_member_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdEqualTo(Long value) { |
|||
addCriterion("session_member_id =", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdNotEqualTo(Long value) { |
|||
addCriterion("session_member_id <>", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdGreaterThan(Long value) { |
|||
addCriterion("session_member_id >", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("session_member_id >=", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdLessThan(Long value) { |
|||
addCriterion("session_member_id <", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("session_member_id <=", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdIn(List<Long> values) { |
|||
addCriterion("session_member_id in", values, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdNotIn(List<Long> values) { |
|||
addCriterion("session_member_id not in", values, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdBetween(Long value1, Long value2) { |
|||
addCriterion("session_member_id between", value1, value2, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("session_member_id not between", value1, value2, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusIsNull() { |
|||
addCriterion("read_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusIsNotNull() { |
|||
addCriterion("read_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusEqualTo(Byte value) { |
|||
addCriterion("read_status =", value, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusNotEqualTo(Byte value) { |
|||
addCriterion("read_status <>", value, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusGreaterThan(Byte value) { |
|||
addCriterion("read_status >", value, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("read_status >=", value, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusLessThan(Byte value) { |
|||
addCriterion("read_status <", value, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("read_status <=", value, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusIn(List<Byte> values) { |
|||
addCriterion("read_status in", values, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusNotIn(List<Byte> values) { |
|||
addCriterion("read_status not in", values, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("read_status between", value1, value2, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReadStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("read_status not between", value1, value2, "readStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusIsNull() { |
|||
addCriterion("del_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusIsNotNull() { |
|||
addCriterion("del_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusEqualTo(Byte value) { |
|||
addCriterion("del_status =", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusNotEqualTo(Byte value) { |
|||
addCriterion("del_status <>", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusGreaterThan(Byte value) { |
|||
addCriterion("del_status >", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("del_status >=", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusLessThan(Byte value) { |
|||
addCriterion("del_status <", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("del_status <=", value, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusIn(List<Byte> values) { |
|||
addCriterion("del_status in", values, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusNotIn(List<Byte> values) { |
|||
addCriterion("del_status not in", values, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_status between", value1, value2, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_status not between", value1, value2, "delStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNull() { |
|||
addCriterion("create_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNotNull() { |
|||
addCriterion("create_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByEqualTo(String value) { |
|||
addCriterion("create_by =", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotEqualTo(String value) { |
|||
addCriterion("create_by <>", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThan(String value) { |
|||
addCriterion("create_by >", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("create_by >=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThan(String value) { |
|||
addCriterion("create_by <", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThanOrEqualTo(String value) { |
|||
addCriterion("create_by <=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLike(String value) { |
|||
addCriterion("create_by like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotLike(String value) { |
|||
addCriterion("create_by not like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIn(List<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
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; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
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 andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
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; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
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 andDelFlagIsNull() { |
|||
addCriterion("del_flag is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNotNull() { |
|||
addCriterion("del_flag is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagEqualTo(Byte value) { |
|||
addCriterion("del_flag =", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotEqualTo(Byte value) { |
|||
addCriterion("del_flag <>", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThan(Byte value) { |
|||
addCriterion("del_flag >", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag >=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThan(Byte value) { |
|||
addCriterion("del_flag <", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag <=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIn(List<Byte> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<Byte> values) { |
|||
addCriterion("del_flag not in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag not between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
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); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,139 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ChatSessionMembers implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long sessionId; |
|||
|
|||
private Long sessionMemberId; |
|||
|
|||
private Byte isCreator; |
|||
|
|||
private Byte isAdmin; |
|||
|
|||
private String sessionAlias; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getSessionId() { |
|||
return sessionId; |
|||
} |
|||
|
|||
public void setSessionId(Long sessionId) { |
|||
this.sessionId = sessionId; |
|||
} |
|||
|
|||
public Long getSessionMemberId() { |
|||
return sessionMemberId; |
|||
} |
|||
|
|||
public void setSessionMemberId(Long sessionMemberId) { |
|||
this.sessionMemberId = sessionMemberId; |
|||
} |
|||
|
|||
public Byte getIsCreator() { |
|||
return isCreator; |
|||
} |
|||
|
|||
public void setIsCreator(Byte isCreator) { |
|||
this.isCreator = isCreator; |
|||
} |
|||
|
|||
public Byte getIsAdmin() { |
|||
return isAdmin; |
|||
} |
|||
|
|||
public void setIsAdmin(Byte isAdmin) { |
|||
this.isAdmin = isAdmin; |
|||
} |
|||
|
|||
public String getSessionAlias() { |
|||
return sessionAlias; |
|||
} |
|||
|
|||
public void setSessionAlias(String sessionAlias) { |
|||
this.sessionAlias = sessionAlias == null ? null : sessionAlias.trim(); |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
@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(", sessionId=").append(sessionId); |
|||
sb.append(", sessionMemberId=").append(sessionMemberId); |
|||
sb.append(", isCreator=").append(isCreator); |
|||
sb.append(", isAdmin=").append(isAdmin); |
|||
sb.append(", sessionAlias=").append(sessionAlias); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,891 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ChatSessionMembersExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ChatSessionMembersExample() { |
|||
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; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
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 andSessionIdIsNull() { |
|||
addCriterion("session_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdIsNotNull() { |
|||
addCriterion("session_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdEqualTo(Long value) { |
|||
addCriterion("session_id =", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdNotEqualTo(Long value) { |
|||
addCriterion("session_id <>", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdGreaterThan(Long value) { |
|||
addCriterion("session_id >", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("session_id >=", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdLessThan(Long value) { |
|||
addCriterion("session_id <", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("session_id <=", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdIn(List<Long> values) { |
|||
addCriterion("session_id in", values, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdNotIn(List<Long> values) { |
|||
addCriterion("session_id not in", values, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdBetween(Long value1, Long value2) { |
|||
addCriterion("session_id between", value1, value2, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("session_id not between", value1, value2, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdIsNull() { |
|||
addCriterion("session_member_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdIsNotNull() { |
|||
addCriterion("session_member_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdEqualTo(Long value) { |
|||
addCriterion("session_member_id =", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdNotEqualTo(Long value) { |
|||
addCriterion("session_member_id <>", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdGreaterThan(Long value) { |
|||
addCriterion("session_member_id >", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("session_member_id >=", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdLessThan(Long value) { |
|||
addCriterion("session_member_id <", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("session_member_id <=", value, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdIn(List<Long> values) { |
|||
addCriterion("session_member_id in", values, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdNotIn(List<Long> values) { |
|||
addCriterion("session_member_id not in", values, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdBetween(Long value1, Long value2) { |
|||
addCriterion("session_member_id between", value1, value2, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionMemberIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("session_member_id not between", value1, value2, "sessionMemberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorIsNull() { |
|||
addCriterion("is_creator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorIsNotNull() { |
|||
addCriterion("is_creator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorEqualTo(Byte value) { |
|||
addCriterion("is_creator =", value, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorNotEqualTo(Byte value) { |
|||
addCriterion("is_creator <>", value, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorGreaterThan(Byte value) { |
|||
addCriterion("is_creator >", value, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("is_creator >=", value, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorLessThan(Byte value) { |
|||
addCriterion("is_creator <", value, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorLessThanOrEqualTo(Byte value) { |
|||
addCriterion("is_creator <=", value, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorIn(List<Byte> values) { |
|||
addCriterion("is_creator in", values, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorNotIn(List<Byte> values) { |
|||
addCriterion("is_creator not in", values, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_creator between", value1, value2, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsCreatorNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_creator not between", value1, value2, "isCreator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminIsNull() { |
|||
addCriterion("is_admin is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminIsNotNull() { |
|||
addCriterion("is_admin is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminEqualTo(Byte value) { |
|||
addCriterion("is_admin =", value, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminNotEqualTo(Byte value) { |
|||
addCriterion("is_admin <>", value, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminGreaterThan(Byte value) { |
|||
addCriterion("is_admin >", value, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("is_admin >=", value, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminLessThan(Byte value) { |
|||
addCriterion("is_admin <", value, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminLessThanOrEqualTo(Byte value) { |
|||
addCriterion("is_admin <=", value, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminIn(List<Byte> values) { |
|||
addCriterion("is_admin in", values, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminNotIn(List<Byte> values) { |
|||
addCriterion("is_admin not in", values, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_admin between", value1, value2, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsAdminNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_admin not between", value1, value2, "isAdmin"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasIsNull() { |
|||
addCriterion("session_alias is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasIsNotNull() { |
|||
addCriterion("session_alias is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasEqualTo(String value) { |
|||
addCriterion("session_alias =", value, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasNotEqualTo(String value) { |
|||
addCriterion("session_alias <>", value, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasGreaterThan(String value) { |
|||
addCriterion("session_alias >", value, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasGreaterThanOrEqualTo(String value) { |
|||
addCriterion("session_alias >=", value, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasLessThan(String value) { |
|||
addCriterion("session_alias <", value, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasLessThanOrEqualTo(String value) { |
|||
addCriterion("session_alias <=", value, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasLike(String value) { |
|||
addCriterion("session_alias like", value, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasNotLike(String value) { |
|||
addCriterion("session_alias not like", value, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasIn(List<String> values) { |
|||
addCriterion("session_alias in", values, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasNotIn(List<String> values) { |
|||
addCriterion("session_alias not in", values, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasBetween(String value1, String value2) { |
|||
addCriterion("session_alias between", value1, value2, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionAliasNotBetween(String value1, String value2) { |
|||
addCriterion("session_alias not between", value1, value2, "sessionAlias"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNull() { |
|||
addCriterion("create_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNotNull() { |
|||
addCriterion("create_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByEqualTo(String value) { |
|||
addCriterion("create_by =", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotEqualTo(String value) { |
|||
addCriterion("create_by <>", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThan(String value) { |
|||
addCriterion("create_by >", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("create_by >=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThan(String value) { |
|||
addCriterion("create_by <", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThanOrEqualTo(String value) { |
|||
addCriterion("create_by <=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLike(String value) { |
|||
addCriterion("create_by like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotLike(String value) { |
|||
addCriterion("create_by not like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIn(List<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
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; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
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 andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
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; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
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 andDelFlagIsNull() { |
|||
addCriterion("del_flag is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNotNull() { |
|||
addCriterion("del_flag is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagEqualTo(Byte value) { |
|||
addCriterion("del_flag =", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotEqualTo(Byte value) { |
|||
addCriterion("del_flag <>", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThan(Byte value) { |
|||
addCriterion("del_flag >", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag >=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThan(Byte value) { |
|||
addCriterion("del_flag <", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag <=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIn(List<Byte> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<Byte> values) { |
|||
addCriterion("del_flag not in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag not between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
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); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,150 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ChatSessionMessages implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long sessionId; |
|||
|
|||
private Long senderId; |
|||
|
|||
private Byte contentType; |
|||
|
|||
private String content; |
|||
|
|||
private Long referencedMessageId; |
|||
|
|||
private String mentionedUsers; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getSessionId() { |
|||
return sessionId; |
|||
} |
|||
|
|||
public void setSessionId(Long sessionId) { |
|||
this.sessionId = sessionId; |
|||
} |
|||
|
|||
public Long getSenderId() { |
|||
return senderId; |
|||
} |
|||
|
|||
public void setSenderId(Long senderId) { |
|||
this.senderId = senderId; |
|||
} |
|||
|
|||
public Byte getContentType() { |
|||
return contentType; |
|||
} |
|||
|
|||
public void setContentType(Byte contentType) { |
|||
this.contentType = contentType; |
|||
} |
|||
|
|||
public String getContent() { |
|||
return content; |
|||
} |
|||
|
|||
public void setContent(String content) { |
|||
this.content = content == null ? null : content.trim(); |
|||
} |
|||
|
|||
public Long getReferencedMessageId() { |
|||
return referencedMessageId; |
|||
} |
|||
|
|||
public void setReferencedMessageId(Long referencedMessageId) { |
|||
this.referencedMessageId = referencedMessageId; |
|||
} |
|||
|
|||
public String getMentionedUsers() { |
|||
return mentionedUsers; |
|||
} |
|||
|
|||
public void setMentionedUsers(String mentionedUsers) { |
|||
this.mentionedUsers = mentionedUsers == null ? null : mentionedUsers.trim(); |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
@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(", sessionId=").append(sessionId); |
|||
sb.append(", senderId=").append(senderId); |
|||
sb.append(", contentType=").append(contentType); |
|||
sb.append(", content=").append(content); |
|||
sb.append(", referencedMessageId=").append(referencedMessageId); |
|||
sb.append(", mentionedUsers=").append(mentionedUsers); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,961 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ChatSessionMessagesExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ChatSessionMessagesExample() { |
|||
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; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
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 andSessionIdIsNull() { |
|||
addCriterion("session_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdIsNotNull() { |
|||
addCriterion("session_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdEqualTo(Long value) { |
|||
addCriterion("session_id =", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdNotEqualTo(Long value) { |
|||
addCriterion("session_id <>", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdGreaterThan(Long value) { |
|||
addCriterion("session_id >", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("session_id >=", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdLessThan(Long value) { |
|||
addCriterion("session_id <", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("session_id <=", value, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdIn(List<Long> values) { |
|||
addCriterion("session_id in", values, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdNotIn(List<Long> values) { |
|||
addCriterion("session_id not in", values, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdBetween(Long value1, Long value2) { |
|||
addCriterion("session_id between", value1, value2, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("session_id not between", value1, value2, "sessionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdIsNull() { |
|||
addCriterion("sender_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdIsNotNull() { |
|||
addCriterion("sender_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdEqualTo(Long value) { |
|||
addCriterion("sender_id =", value, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdNotEqualTo(Long value) { |
|||
addCriterion("sender_id <>", value, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdGreaterThan(Long value) { |
|||
addCriterion("sender_id >", value, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("sender_id >=", value, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdLessThan(Long value) { |
|||
addCriterion("sender_id <", value, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("sender_id <=", value, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdIn(List<Long> values) { |
|||
addCriterion("sender_id in", values, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdNotIn(List<Long> values) { |
|||
addCriterion("sender_id not in", values, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdBetween(Long value1, Long value2) { |
|||
addCriterion("sender_id between", value1, value2, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSenderIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("sender_id not between", value1, value2, "senderId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeIsNull() { |
|||
addCriterion("content_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeIsNotNull() { |
|||
addCriterion("content_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeEqualTo(Byte value) { |
|||
addCriterion("content_type =", value, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeNotEqualTo(Byte value) { |
|||
addCriterion("content_type <>", value, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeGreaterThan(Byte value) { |
|||
addCriterion("content_type >", value, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("content_type >=", value, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeLessThan(Byte value) { |
|||
addCriterion("content_type <", value, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("content_type <=", value, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeIn(List<Byte> values) { |
|||
addCriterion("content_type in", values, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeNotIn(List<Byte> values) { |
|||
addCriterion("content_type not in", values, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("content_type between", value1, value2, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("content_type not between", value1, value2, "contentType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIsNull() { |
|||
addCriterion("content is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIsNotNull() { |
|||
addCriterion("content is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentEqualTo(String value) { |
|||
addCriterion("content =", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotEqualTo(String value) { |
|||
addCriterion("content <>", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentGreaterThan(String value) { |
|||
addCriterion("content >", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentGreaterThanOrEqualTo(String value) { |
|||
addCriterion("content >=", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLessThan(String value) { |
|||
addCriterion("content <", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLessThanOrEqualTo(String value) { |
|||
addCriterion("content <=", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLike(String value) { |
|||
addCriterion("content like", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotLike(String value) { |
|||
addCriterion("content not like", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIn(List<String> values) { |
|||
addCriterion("content in", values, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotIn(List<String> values) { |
|||
addCriterion("content not in", values, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentBetween(String value1, String value2) { |
|||
addCriterion("content between", value1, value2, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotBetween(String value1, String value2) { |
|||
addCriterion("content not between", value1, value2, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdIsNull() { |
|||
addCriterion("referenced_message_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdIsNotNull() { |
|||
addCriterion("referenced_message_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdEqualTo(Long value) { |
|||
addCriterion("referenced_message_id =", value, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdNotEqualTo(Long value) { |
|||
addCriterion("referenced_message_id <>", value, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdGreaterThan(Long value) { |
|||
addCriterion("referenced_message_id >", value, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("referenced_message_id >=", value, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdLessThan(Long value) { |
|||
addCriterion("referenced_message_id <", value, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("referenced_message_id <=", value, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdIn(List<Long> values) { |
|||
addCriterion("referenced_message_id in", values, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdNotIn(List<Long> values) { |
|||
addCriterion("referenced_message_id not in", values, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdBetween(Long value1, Long value2) { |
|||
addCriterion("referenced_message_id between", value1, value2, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReferencedMessageIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("referenced_message_id not between", value1, value2, "referencedMessageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersIsNull() { |
|||
addCriterion("mentioned_users is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersIsNotNull() { |
|||
addCriterion("mentioned_users is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersEqualTo(String value) { |
|||
addCriterion("mentioned_users =", value, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersNotEqualTo(String value) { |
|||
addCriterion("mentioned_users <>", value, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersGreaterThan(String value) { |
|||
addCriterion("mentioned_users >", value, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersGreaterThanOrEqualTo(String value) { |
|||
addCriterion("mentioned_users >=", value, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersLessThan(String value) { |
|||
addCriterion("mentioned_users <", value, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersLessThanOrEqualTo(String value) { |
|||
addCriterion("mentioned_users <=", value, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersLike(String value) { |
|||
addCriterion("mentioned_users like", value, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersNotLike(String value) { |
|||
addCriterion("mentioned_users not like", value, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersIn(List<String> values) { |
|||
addCriterion("mentioned_users in", values, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersNotIn(List<String> values) { |
|||
addCriterion("mentioned_users not in", values, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersBetween(String value1, String value2) { |
|||
addCriterion("mentioned_users between", value1, value2, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMentionedUsersNotBetween(String value1, String value2) { |
|||
addCriterion("mentioned_users not between", value1, value2, "mentionedUsers"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNull() { |
|||
addCriterion("create_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNotNull() { |
|||
addCriterion("create_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByEqualTo(String value) { |
|||
addCriterion("create_by =", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotEqualTo(String value) { |
|||
addCriterion("create_by <>", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThan(String value) { |
|||
addCriterion("create_by >", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("create_by >=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThan(String value) { |
|||
addCriterion("create_by <", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThanOrEqualTo(String value) { |
|||
addCriterion("create_by <=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLike(String value) { |
|||
addCriterion("create_by like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotLike(String value) { |
|||
addCriterion("create_by not like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIn(List<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
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; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
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 andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
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; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
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 andDelFlagIsNull() { |
|||
addCriterion("del_flag is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNotNull() { |
|||
addCriterion("del_flag is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagEqualTo(Byte value) { |
|||
addCriterion("del_flag =", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotEqualTo(Byte value) { |
|||
addCriterion("del_flag <>", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThan(Byte value) { |
|||
addCriterion("del_flag >", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag >=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThan(Byte value) { |
|||
addCriterion("del_flag <", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag <=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIn(List<Byte> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<Byte> values) { |
|||
addCriterion("del_flag not in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag not between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
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); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,139 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ChatSessions implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte sessionType; |
|||
|
|||
private String sessionName; |
|||
|
|||
private Long createdBy; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private String avatarUrl; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Byte getSessionType() { |
|||
return sessionType; |
|||
} |
|||
|
|||
public void setSessionType(Byte sessionType) { |
|||
this.sessionType = sessionType; |
|||
} |
|||
|
|||
public String getSessionName() { |
|||
return sessionName; |
|||
} |
|||
|
|||
public void setSessionName(String sessionName) { |
|||
this.sessionName = sessionName == null ? null : sessionName.trim(); |
|||
} |
|||
|
|||
public Long getCreatedBy() { |
|||
return createdBy; |
|||
} |
|||
|
|||
public void setCreatedBy(Long createdBy) { |
|||
this.createdBy = createdBy; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public String getAvatarUrl() { |
|||
return avatarUrl; |
|||
} |
|||
|
|||
public void setAvatarUrl(String avatarUrl) { |
|||
this.avatarUrl = avatarUrl == null ? null : avatarUrl.trim(); |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
@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(", sessionType=").append(sessionType); |
|||
sb.append(", sessionName=").append(sessionName); |
|||
sb.append(", createdBy=").append(createdBy); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", avatarUrl=").append(avatarUrl); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,901 @@ |
|||
package com.research.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ChatSessionsExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ChatSessionsExample() { |
|||
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; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
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 andSessionTypeIsNull() { |
|||
addCriterion("session_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeIsNotNull() { |
|||
addCriterion("session_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeEqualTo(Byte value) { |
|||
addCriterion("session_type =", value, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeNotEqualTo(Byte value) { |
|||
addCriterion("session_type <>", value, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeGreaterThan(Byte value) { |
|||
addCriterion("session_type >", value, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("session_type >=", value, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeLessThan(Byte value) { |
|||
addCriterion("session_type <", value, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("session_type <=", value, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeIn(List<Byte> values) { |
|||
addCriterion("session_type in", values, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeNotIn(List<Byte> values) { |
|||
addCriterion("session_type not in", values, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("session_type between", value1, value2, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("session_type not between", value1, value2, "sessionType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameIsNull() { |
|||
addCriterion("session_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameIsNotNull() { |
|||
addCriterion("session_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameEqualTo(String value) { |
|||
addCriterion("session_name =", value, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameNotEqualTo(String value) { |
|||
addCriterion("session_name <>", value, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameGreaterThan(String value) { |
|||
addCriterion("session_name >", value, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("session_name >=", value, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameLessThan(String value) { |
|||
addCriterion("session_name <", value, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameLessThanOrEqualTo(String value) { |
|||
addCriterion("session_name <=", value, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameLike(String value) { |
|||
addCriterion("session_name like", value, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameNotLike(String value) { |
|||
addCriterion("session_name not like", value, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameIn(List<String> values) { |
|||
addCriterion("session_name in", values, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameNotIn(List<String> values) { |
|||
addCriterion("session_name not in", values, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameBetween(String value1, String value2) { |
|||
addCriterion("session_name between", value1, value2, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSessionNameNotBetween(String value1, String value2) { |
|||
addCriterion("session_name not between", value1, value2, "sessionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByIsNull() { |
|||
addCriterion("created_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByIsNotNull() { |
|||
addCriterion("created_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByEqualTo(Long value) { |
|||
addCriterion("created_by =", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByNotEqualTo(Long value) { |
|||
addCriterion("created_by <>", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByGreaterThan(Long value) { |
|||
addCriterion("created_by >", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("created_by >=", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByLessThan(Long value) { |
|||
addCriterion("created_by <", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByLessThanOrEqualTo(Long value) { |
|||
addCriterion("created_by <=", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByIn(List<Long> values) { |
|||
addCriterion("created_by in", values, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByNotIn(List<Long> values) { |
|||
addCriterion("created_by not in", values, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByBetween(Long value1, Long value2) { |
|||
addCriterion("created_by between", value1, value2, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByNotBetween(Long value1, Long value2) { |
|||
addCriterion("created_by not between", value1, value2, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlIsNull() { |
|||
addCriterion("avatar_url is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlIsNotNull() { |
|||
addCriterion("avatar_url is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlEqualTo(String value) { |
|||
addCriterion("avatar_url =", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlNotEqualTo(String value) { |
|||
addCriterion("avatar_url <>", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlGreaterThan(String value) { |
|||
addCriterion("avatar_url >", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlGreaterThanOrEqualTo(String value) { |
|||
addCriterion("avatar_url >=", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlLessThan(String value) { |
|||
addCriterion("avatar_url <", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlLessThanOrEqualTo(String value) { |
|||
addCriterion("avatar_url <=", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlLike(String value) { |
|||
addCriterion("avatar_url like", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlNotLike(String value) { |
|||
addCriterion("avatar_url not like", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlIn(List<String> values) { |
|||
addCriterion("avatar_url in", values, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlNotIn(List<String> values) { |
|||
addCriterion("avatar_url not in", values, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlBetween(String value1, String value2) { |
|||
addCriterion("avatar_url between", value1, value2, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlNotBetween(String value1, String value2) { |
|||
addCriterion("avatar_url not between", value1, value2, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNull() { |
|||
addCriterion("create_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNotNull() { |
|||
addCriterion("create_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByEqualTo(String value) { |
|||
addCriterion("create_by =", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotEqualTo(String value) { |
|||
addCriterion("create_by <>", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThan(String value) { |
|||
addCriterion("create_by >", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("create_by >=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThan(String value) { |
|||
addCriterion("create_by <", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThanOrEqualTo(String value) { |
|||
addCriterion("create_by <=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLike(String value) { |
|||
addCriterion("create_by like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotLike(String value) { |
|||
addCriterion("create_by not like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIn(List<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
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; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
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 andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
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; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
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 andDelFlagIsNull() { |
|||
addCriterion("del_flag is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNotNull() { |
|||
addCriterion("del_flag is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagEqualTo(Byte value) { |
|||
addCriterion("del_flag =", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotEqualTo(Byte value) { |
|||
addCriterion("del_flag <>", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThan(Byte value) { |
|||
addCriterion("del_flag >", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag >=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThan(Byte value) { |
|||
addCriterion("del_flag <", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag <=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIn(List<Byte> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<Byte> values) { |
|||
addCriterion("del_flag not in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag not between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
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); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,87 @@ |
|||
package com.research.system.domain.vo; |
|||
|
|||
import com.github.pagehelper.PageHelper; |
|||
import com.github.pagehelper.PageInfo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.domain.vo |
|||
* @Date 2025/11/23 17:06 |
|||
* @description: |
|||
*/ |
|||
public class SessionVo { |
|||
|
|||
@Data |
|||
public static class TxlResult{ |
|||
@ApiModelProperty("会话id") |
|||
private Long sessionId; |
|||
@ApiModelProperty("会话名称") |
|||
private String sessionName; |
|||
@ApiModelProperty("会话头像") |
|||
private String sessionAvatar; |
|||
@ApiModelProperty("会话类型") |
|||
private Byte sessionType; |
|||
@ApiModelProperty("最后一条消息") |
|||
private String lastMessage; |
|||
@ApiModelProperty("最后消息时间") |
|||
private Date lastMessageTime; |
|||
|
|||
private Long senderId; |
|||
} |
|||
|
|||
@Data |
|||
public static class MessageLogResult{ |
|||
|
|||
private SessionInfo sessionInfo; |
|||
private PageInfo<LogList> logList; |
|||
private List<MemberInfo> memberList; |
|||
|
|||
@Data |
|||
public static class SessionInfo { |
|||
@ApiModelProperty("会话id") |
|||
private Long sessionId; |
|||
@ApiModelProperty("会话名称") |
|||
private String sessionName; |
|||
@ApiModelProperty("会话头像") |
|||
private String sessionAvatar; |
|||
@ApiModelProperty("会话类型") |
|||
private String sessionType; |
|||
@ApiModelProperty("会话创建时间") |
|||
private Date createTime; |
|||
} |
|||
|
|||
@Data |
|||
public static class LogList{ |
|||
@ApiModelProperty |
|||
private Long messageId; |
|||
@ApiModelProperty |
|||
private Long senderId; |
|||
@ApiModelProperty |
|||
private String content; |
|||
@ApiModelProperty |
|||
private Byte contentType; |
|||
@ApiModelProperty |
|||
private Date sendTime; |
|||
private Byte readStatus; |
|||
} |
|||
|
|||
@Data |
|||
public static class MemberInfo{ |
|||
private String userName; |
|||
private String avatar; |
|||
private String nickName; |
|||
private String phonenumber; |
|||
private Byte sex; |
|||
private Byte status; |
|||
private Long orgId; |
|||
private String orgName; |
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
package com.research.system.persist.dao; |
|||
|
|||
import com.research.system.domain.dto.SessionDto; |
|||
import com.research.system.domain.vo.SessionVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.persist.dao |
|||
* @Date 2025/11/24 10:05 |
|||
* @description: |
|||
*/ |
|||
public interface SessionDao { |
|||
|
|||
List<SessionVo.TxlResult> queryTxl(SessionDto.Query dto); |
|||
|
|||
SessionVo.MessageLogResult.SessionInfo querySessionInfo(SessionDto.SessionId dto); |
|||
|
|||
List<SessionVo.MessageLogResult.LogList> queryLogList(SessionDto.SessionId dto); |
|||
|
|||
List<SessionVo.MessageLogResult.MemberInfo> queryMemberList(SessionDto.SessionId dto); |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ChatContactList; |
|||
import com.research.system.domain.po.ChatContactListExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ChatContactListMapper { |
|||
long countByExample(ChatContactListExample example); |
|||
|
|||
int insert(ChatContactList record); |
|||
|
|||
int insertSelective(ChatContactList record); |
|||
|
|||
List<ChatContactList> selectByExample(ChatContactListExample example); |
|||
|
|||
int updateByExampleSelective(@Param("record") ChatContactList record, @Param("example") ChatContactListExample example); |
|||
|
|||
int updateByExample(@Param("record") ChatContactList record, @Param("example") ChatContactListExample example); |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ChatMessageReadStatus; |
|||
import com.research.system.domain.po.ChatMessageReadStatusExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ChatMessageReadStatusMapper { |
|||
long countByExample(ChatMessageReadStatusExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ChatMessageReadStatus record); |
|||
|
|||
int insertSelective(ChatMessageReadStatus record); |
|||
|
|||
List<ChatMessageReadStatus> selectByExample(ChatMessageReadStatusExample example); |
|||
|
|||
ChatMessageReadStatus selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ChatMessageReadStatus record, @Param("example") ChatMessageReadStatusExample example); |
|||
|
|||
int updateByExample(@Param("record") ChatMessageReadStatus record, @Param("example") ChatMessageReadStatusExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ChatMessageReadStatus record); |
|||
|
|||
int updateByPrimaryKey(ChatMessageReadStatus record); |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ChatSessionMembers; |
|||
import com.research.system.domain.po.ChatSessionMembersExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ChatSessionMembersMapper { |
|||
long countByExample(ChatSessionMembersExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ChatSessionMembers record); |
|||
|
|||
int insertSelective(ChatSessionMembers record); |
|||
|
|||
List<ChatSessionMembers> selectByExample(ChatSessionMembersExample example); |
|||
|
|||
ChatSessionMembers selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ChatSessionMembers record, @Param("example") ChatSessionMembersExample example); |
|||
|
|||
int updateByExample(@Param("record") ChatSessionMembers record, @Param("example") ChatSessionMembersExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ChatSessionMembers record); |
|||
|
|||
int updateByPrimaryKey(ChatSessionMembers record); |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ChatSessionMessages; |
|||
import com.research.system.domain.po.ChatSessionMessagesExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ChatSessionMessagesMapper { |
|||
long countByExample(ChatSessionMessagesExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ChatSessionMessages record); |
|||
|
|||
int insertSelective(ChatSessionMessages record); |
|||
|
|||
List<ChatSessionMessages> selectByExample(ChatSessionMessagesExample example); |
|||
|
|||
ChatSessionMessages selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ChatSessionMessages record, @Param("example") ChatSessionMessagesExample example); |
|||
|
|||
int updateByExample(@Param("record") ChatSessionMessages record, @Param("example") ChatSessionMessagesExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ChatSessionMessages record); |
|||
|
|||
int updateByPrimaryKey(ChatSessionMessages record); |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
package com.research.system.persist.mapper; |
|||
|
|||
import com.research.system.domain.po.ChatSessions; |
|||
import com.research.system.domain.po.ChatSessionsExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ChatSessionsMapper { |
|||
long countByExample(ChatSessionsExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ChatSessions record); |
|||
|
|||
int insertSelective(ChatSessions record); |
|||
|
|||
List<ChatSessions> selectByExample(ChatSessionsExample example); |
|||
|
|||
ChatSessions selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ChatSessions record, @Param("example") ChatSessionsExample example); |
|||
|
|||
int updateByExample(@Param("record") ChatSessions record, @Param("example") ChatSessionsExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ChatSessions record); |
|||
|
|||
int updateByPrimaryKey(ChatSessions record); |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
package com.research.system.service; |
|||
|
|||
import com.research.common.core.domain.BaseDto; |
|||
import com.research.system.domain.dto.SessionDto; |
|||
import com.research.system.domain.vo.SessionVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service |
|||
* @Date 2025/11/24 9:34 |
|||
* @description: |
|||
*/ |
|||
public interface SessionService { |
|||
|
|||
List<SessionVo.TxlResult> queryTxl(SessionDto.Query dto); |
|||
|
|||
SessionVo.MessageLogResult queryLog(BaseDto<SessionDto.SessionId> dto); |
|||
|
|||
Integer send(SessionDto.SendMessage dto); |
|||
|
|||
Long addSession(SessionDto.CreateSession dto); |
|||
|
|||
Integer delSession(SessionDto.Delete dto); |
|||
|
|||
Integer delLog(SessionDto.Delete dto); |
|||
|
|||
} |
|||
@ -0,0 +1,173 @@ |
|||
package com.research.system.service.impl; |
|||
|
|||
import cn.hutool.core.collection.CollUtil; |
|||
import cn.hutool.core.util.IdUtil; |
|||
import com.github.pagehelper.PageHelper; |
|||
import com.github.pagehelper.PageInfo; |
|||
import com.research.common.core.domain.BaseDto; |
|||
import com.research.common.core.domain.entity.SysUser; |
|||
import com.research.common.utils.SecurityUtils; |
|||
import com.research.system.domain.dto.SessionDto; |
|||
import com.research.system.domain.po.*; |
|||
import com.research.system.domain.vo.SessionVo; |
|||
import com.research.system.persist.dao.SessionDao; |
|||
import com.research.system.persist.mapper.ChatMessageReadStatusMapper; |
|||
import com.research.system.persist.mapper.ChatSessionMembersMapper; |
|||
import com.research.system.persist.mapper.ChatSessionMessagesMapper; |
|||
import com.research.system.persist.mapper.ChatSessionsMapper; |
|||
import com.research.system.service.ISysUserService; |
|||
import com.research.system.service.SessionService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
import java.util.Objects; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.research.system.service.impl |
|||
* @Date 2025/11/24 9:47 |
|||
* @description: |
|||
*/ |
|||
@Service |
|||
public class SessionServiceImpl implements SessionService { |
|||
|
|||
@Resource |
|||
private SessionDao sessionDao; |
|||
@Resource |
|||
private ChatSessionMessagesMapper chatSessionMessagesMapper; |
|||
@Resource |
|||
private ChatSessionsMapper chatSessionsMapper; |
|||
@Resource |
|||
private ChatSessionMembersMapper chatSessionMembersMapper; |
|||
@Resource |
|||
private ISysUserService sysUserService; |
|||
@Resource |
|||
private ChatMessageReadStatusMapper chatMessageReadStatusMapper; |
|||
|
|||
@Override |
|||
public List<SessionVo.TxlResult> queryTxl(SessionDto.Query dto) { |
|||
List<SessionVo.TxlResult> txlResults = sessionDao.queryTxl(dto); |
|||
if (CollUtil.isNotEmpty(txlResults)) { |
|||
for (SessionVo.TxlResult txlResult : txlResults) { |
|||
if (txlResult.getSessionId() != null && txlResult.getSessionId() > 0) { |
|||
continue; |
|||
} |
|||
//查询会话接收人
|
|||
SessionDto.CreateSession createSession = new SessionDto.CreateSession(); |
|||
createSession.setSessionName(txlResult.getSessionName()); |
|||
createSession.setType(txlResult.getSessionType()); |
|||
createSession.setMemberList(CollUtil.newArrayList(txlResult.getSenderId())); |
|||
Long addSession = addSession(createSession); |
|||
txlResult.setSessionId(addSession); |
|||
} |
|||
} |
|||
return txlResults; |
|||
} |
|||
|
|||
@Override |
|||
public SessionVo.MessageLogResult queryLog(BaseDto<SessionDto.SessionId> dto) { |
|||
SessionVo.MessageLogResult messageLogResult = new SessionVo.MessageLogResult(); |
|||
messageLogResult.setSessionInfo(sessionDao.querySessionInfo(dto.getParam())); |
|||
if (dto.getPageNum() > 0) { |
|||
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); |
|||
} |
|||
messageLogResult.setLogList(new PageInfo<>(sessionDao.queryLogList(dto.getParam()))); |
|||
messageLogResult.setMemberList(sessionDao.queryMemberList(dto.getParam())); |
|||
return messageLogResult; |
|||
} |
|||
|
|||
@Override |
|||
public Integer send(SessionDto.SendMessage dto) { |
|||
ChatSessionMessages chatSessionMessages = new ChatSessionMessages(); |
|||
chatSessionMessages.setId(IdUtil.getSnowflakeNextId()); |
|||
chatSessionMessages.setSessionId(dto.getSessionId()); |
|||
chatSessionMessages.setSenderId(SecurityUtils.getUserId()); |
|||
chatSessionMessages.setContentType(dto.getContentType()); |
|||
chatSessionMessages.setContent(dto.getContent()); |
|||
chatSessionMessages.setReferencedMessageId(dto.getReferencedMessageId()); |
|||
chatSessionMessages.setMentionedUsers(dto.getMentionedUsers()); |
|||
chatSessionMessages.setCreateBy(SecurityUtils.getUsername()); |
|||
chatSessionMessages.setCreateTime(new java.util.Date()); |
|||
chatSessionMessagesMapper.insertSelective(chatSessionMessages); |
|||
|
|||
//查询会话的人员
|
|||
ChatSessionMembersExample chatSessionMembersExample = new ChatSessionMembersExample(); |
|||
chatSessionMembersExample.createCriteria().andSessionIdEqualTo(dto.getSessionId()).andDelFlagEqualTo((byte) 0); |
|||
List<ChatSessionMembers> chatSessionMembers = chatSessionMembersMapper.selectByExample(chatSessionMembersExample); |
|||
if (CollUtil.isNotEmpty(chatSessionMembers)) { |
|||
for (ChatSessionMembers chatSessionMember : chatSessionMembers) { |
|||
ChatMessageReadStatus chatMessageReadStatus = new ChatMessageReadStatus(); |
|||
chatMessageReadStatus.setId(IdUtil.getSnowflakeNextId()); |
|||
chatMessageReadStatus.setSessionId(dto.getSessionId()); |
|||
chatMessageReadStatus.setSessionMemberId(chatSessionMember.getSessionMemberId()); |
|||
chatMessageReadStatus.setSessionMessageId(chatSessionMessages.getId()); |
|||
if (Objects.equals(chatSessionMember.getSessionMemberId(), SecurityUtils.getUserId())) { |
|||
chatMessageReadStatus.setReadStatus((byte) 1); |
|||
}else { |
|||
chatMessageReadStatus.setReadStatus((byte) 0); |
|||
} |
|||
chatMessageReadStatus.setDelStatus((byte) 0); |
|||
chatMessageReadStatusMapper.insertSelective(chatMessageReadStatus); |
|||
} |
|||
} |
|||
return 1; |
|||
} |
|||
|
|||
@Override |
|||
public Long addSession(SessionDto.CreateSession dto) { |
|||
ChatSessions chatSessions = new ChatSessions(); |
|||
chatSessions.setSessionName(dto.getSessionName()); |
|||
chatSessions.setSessionType(dto.getType()); |
|||
chatSessions.setCreatedBy(SecurityUtils.getUserId()); |
|||
chatSessions.setCreatedAt(new java.util.Date()); |
|||
if (dto.getType() == 0) { |
|||
SysUser sysUser = sysUserService.selectUserById(dto.getMemberList().get(0)); |
|||
if (sysUser != null) { |
|||
chatSessions.setAvatarUrl(sysUser.getAvatar()); |
|||
} |
|||
} |
|||
chatSessions.setCreateBy(SecurityUtils.getUserId() + ""); |
|||
chatSessions.setId(IdUtil.getSnowflakeNextId()); |
|||
chatSessionsMapper.insertSelective(chatSessions); |
|||
|
|||
|
|||
for (Long aLong : dto.getMemberList()) { |
|||
SysUser sysUser = sysUserService.selectUserById(aLong); |
|||
if (sysUser == null) { |
|||
continue; |
|||
} |
|||
|
|||
ChatSessionMembers chatSessionMembers = new ChatSessionMembers(); |
|||
chatSessionMembers.setId(IdUtil.getSnowflakeNextId()); |
|||
chatSessionMembers.setSessionId(chatSessions.getId()); |
|||
chatSessionMembers.setSessionMemberId(aLong); |
|||
chatSessionMembers.setIsCreator(Objects.equals(aLong, SecurityUtils.getUserId()) ? (byte) 1 :(byte) 0); |
|||
chatSessionMembers.setIsAdmin(Objects.equals(aLong, SecurityUtils.getUserId()) ? (byte) 1 :(byte) 0); |
|||
chatSessionMembers.setSessionAlias(""); |
|||
chatSessionMembers.setCreateBy(SecurityUtils.getUsername()); |
|||
chatSessionMembers.setCreateTime(new java.util.Date()); |
|||
chatSessionMembersMapper.insertSelective(chatSessionMembers); |
|||
} |
|||
|
|||
return chatSessions.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public Integer delSession(SessionDto.Delete dto) { |
|||
ChatSessionsExample chatSessionsExample = new ChatSessionsExample(); |
|||
chatSessionsExample.createCriteria().andIdIn(dto.getIdList()); |
|||
ChatSessions chatSessions = new ChatSessions(); |
|||
chatSessions.setDelFlag((byte) 1); |
|||
return chatSessionsMapper.updateByExampleSelective(chatSessions, chatSessionsExample); |
|||
} |
|||
|
|||
@Override |
|||
public Integer delLog(SessionDto.Delete dto) { |
|||
ChatSessionMessagesExample chatSessionMessagesExample = new ChatSessionMessagesExample(); |
|||
chatSessionMessagesExample.createCriteria().andIdIn(dto.getIdList()); |
|||
ChatSessionMessages chatSessionMessages = new ChatSessionMessages(); |
|||
chatSessionMessages.setDelFlag((byte) 1); |
|||
return chatSessionMessagesMapper.updateByExampleSelective(chatSessionMessages, chatSessionMessagesExample); |
|||
} |
|||
} |
|||
@ -0,0 +1,94 @@ |
|||
<?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.research.system.persist.dao.SessionDao"> |
|||
|
|||
<select id="queryTxl" resultType="com.research.system.domain.vo.SessionVo$TxlResult"> |
|||
|
|||
select * from |
|||
|
|||
( |
|||
SELECT |
|||
DISTINCT s.id as sessionId, |
|||
s.session_name as sessionName, |
|||
s.session_type as sessionType, |
|||
s.avatar_url as sessionAvatar, |
|||
m.content_type as contentType, |
|||
m.content as lastMessage, |
|||
m.create_time as lastMessageTime, |
|||
m.sender_id as senderId, |
|||
s.create_time as createTime |
|||
FROM |
|||
chat_sessions s |
|||
LEFT JOIN chat_session_messages m on s.id = m.session_id |
|||
where s.created_by = #{userId} |
|||
<if test="nickname != null and nickname != ''"> |
|||
and s.session_name like concat('%',#{nickname},'%') |
|||
</if> |
|||
GROUP BY s.id |
|||
UNION ALL |
|||
|
|||
SELECT |
|||
'', |
|||
l.nick_name as sessionName, |
|||
0, |
|||
l.avatar as sessionAvatar, |
|||
'', |
|||
'', |
|||
null, |
|||
l.user_id as senderId, |
|||
null |
|||
FROM |
|||
chat_contact_list l |
|||
LEFT JOIN chat_session_members sm on sm.session_member_id = l.user_id and sm.is_creator = 1 |
|||
LEFT JOIN chat_sessions cs on sm.session_id = cs.id and session_type = 0 |
|||
<where> |
|||
<if test="nickname != null and nickname != ''"> |
|||
and l.nick_name like concat('%',#{nickname},'%') |
|||
</if> |
|||
</where> |
|||
)a |
|||
order by lastMessageTime desc, createTime desc |
|||
|
|||
</select> |
|||
|
|||
<select id="querySessionInfo" resultType="com.research.system.domain.vo.SessionVo$MessageLogResult$SessionInfo"> |
|||
|
|||
SELECT |
|||
s.id AS sessionId, |
|||
s.session_name as sessionName, |
|||
s.avatar_url AS sessionAvatar, |
|||
s.session_type as sessionType, |
|||
s.created_at AS createTime |
|||
FROM chat_sessions s |
|||
WHERE s.id = #{sessionId} |
|||
</select> |
|||
|
|||
<select id="queryLogList" resultType="com.research.system.domain.vo.SessionVo$MessageLogResult$LogList"> |
|||
SELECT |
|||
m.id AS messageId, |
|||
m.sender_id AS senderId, |
|||
m.content, |
|||
m.content_type as contentType, |
|||
m.create_time AS sendTime, |
|||
s.read_status as readStatus |
|||
FROM chat_session_messages m |
|||
left join chat_message_read_status s on m.session_id = s.session_id and m.id = s.session_message_id and s.del_status = 0 |
|||
WHERE m.session_id = #{sessionId} |
|||
ORDER BY m.create_time DESC |
|||
</select> |
|||
|
|||
<select id="queryMemberList" resultType="com.research.system.domain.vo.SessionVo$MessageLogResult$MemberInfo"> |
|||
SELECT |
|||
c.user_name, |
|||
c.avatar, |
|||
c.nick_name, |
|||
c.phonenumber, |
|||
c.sex, |
|||
c.status, |
|||
c.org_id, |
|||
c.org_name |
|||
FROM chat_session_members sm |
|||
INNER JOIN chat_contact_list c ON sm.session_member_id = c.user_id |
|||
WHERE sm.session_id = #{sessionId} |
|||
</select> |
|||
</mapper> |
|||
@ -0,0 +1,215 @@ |
|||
<?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.research.system.persist.mapper.ChatContactListMapper"> |
|||
<resultMap id="BaseResultMap" type="com.research.system.domain.po.ChatContactList"> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="user_name" jdbcType="VARCHAR" property="userName" /> |
|||
<result column="nick_name" jdbcType="VARCHAR" property="nickName" /> |
|||
<result column="avatar" jdbcType="VARCHAR" property="avatar" /> |
|||
<result column="phonenumber" jdbcType="VARCHAR" property="phonenumber" /> |
|||
<result column="sex" jdbcType="CHAR" property="sex" /> |
|||
<result column="status" jdbcType="CHAR" property="status" /> |
|||
<result column="org_id" jdbcType="BIGINT" property="orgId" /> |
|||
<result column="org_name" jdbcType="VARCHAR" property="orgName" /> |
|||
</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"> |
|||
user_id, user_name, nick_name, avatar, phonenumber, sex, status, org_id, org_name |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.research.system.domain.po.ChatContactListExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from chat_contact_list |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<insert id="insert" parameterType="com.research.system.domain.po.ChatContactList"> |
|||
insert into chat_contact_list (user_id, user_name, nick_name, |
|||
avatar, phonenumber, sex, |
|||
status, org_id, org_name) |
|||
values (#{userId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, #{nickName,jdbcType=VARCHAR}, |
|||
#{avatar,jdbcType=VARCHAR}, #{phonenumber,jdbcType=VARCHAR}, #{sex,jdbcType=CHAR}, |
|||
#{status,jdbcType=CHAR}, #{orgId,jdbcType=BIGINT}, #{orgName,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.research.system.domain.po.ChatContactList"> |
|||
insert into chat_contact_list |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="userName != null"> |
|||
user_name, |
|||
</if> |
|||
<if test="nickName != null"> |
|||
nick_name, |
|||
</if> |
|||
<if test="avatar != null"> |
|||
avatar, |
|||
</if> |
|||
<if test="phonenumber != null"> |
|||
phonenumber, |
|||
</if> |
|||
<if test="sex != null"> |
|||
sex, |
|||
</if> |
|||
<if test="status != null"> |
|||
status, |
|||
</if> |
|||
<if test="orgId != null"> |
|||
org_id, |
|||
</if> |
|||
<if test="orgName != null"> |
|||
org_name, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userName != null"> |
|||
#{userName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="nickName != null"> |
|||
#{nickName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="avatar != null"> |
|||
#{avatar,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="phonenumber != null"> |
|||
#{phonenumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sex != null"> |
|||
#{sex,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="status != null"> |
|||
#{status,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="orgId != null"> |
|||
#{orgId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="orgName != null"> |
|||
#{orgName,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.research.system.domain.po.ChatContactListExample" resultType="java.lang.Long"> |
|||
select count(*) from chat_contact_list |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update chat_contact_list |
|||
<set> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.userName != null"> |
|||
user_name = #{record.userName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.nickName != null"> |
|||
nick_name = #{record.nickName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.avatar != null"> |
|||
avatar = #{record.avatar,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.phonenumber != null"> |
|||
phonenumber = #{record.phonenumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.sex != null"> |
|||
sex = #{record.sex,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.status != null"> |
|||
status = #{record.status,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.orgId != null"> |
|||
org_id = #{record.orgId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.orgName != null"> |
|||
org_name = #{record.orgName,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update chat_contact_list |
|||
set user_id = #{record.userId,jdbcType=BIGINT}, |
|||
user_name = #{record.userName,jdbcType=VARCHAR}, |
|||
nick_name = #{record.nickName,jdbcType=VARCHAR}, |
|||
avatar = #{record.avatar,jdbcType=VARCHAR}, |
|||
phonenumber = #{record.phonenumber,jdbcType=VARCHAR}, |
|||
sex = #{record.sex,jdbcType=CHAR}, |
|||
status = #{record.status,jdbcType=CHAR}, |
|||
org_id = #{record.orgId,jdbcType=BIGINT}, |
|||
org_name = #{record.orgName,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
</mapper> |
|||
@ -0,0 +1,300 @@ |
|||
<?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.research.system.persist.mapper.ChatMessageReadStatusMapper"> |
|||
<resultMap id="BaseResultMap" type="com.research.system.domain.po.ChatMessageReadStatus"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="session_id" jdbcType="BIGINT" property="sessionId" /> |
|||
<result column="session_message_id" jdbcType="BIGINT" property="sessionMessageId" /> |
|||
<result column="session_member_id" jdbcType="BIGINT" property="sessionMemberId" /> |
|||
<result column="read_status" jdbcType="TINYINT" property="readStatus" /> |
|||
<result column="del_status" jdbcType="TINYINT" property="delStatus" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
</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, session_id, session_message_id, session_member_id, read_status, del_status, create_by, |
|||
create_time, update_by, update_time, del_flag |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.research.system.domain.po.ChatMessageReadStatusExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from chat_message_read_status |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from chat_message_read_status |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from chat_message_read_status |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.research.system.domain.po.ChatMessageReadStatus"> |
|||
insert into chat_message_read_status (id, session_id, session_message_id, |
|||
session_member_id, read_status, del_status, |
|||
create_by, create_time, update_by, |
|||
update_time, del_flag) |
|||
values (#{id,jdbcType=BIGINT}, #{sessionId,jdbcType=BIGINT}, #{sessionMessageId,jdbcType=BIGINT}, |
|||
#{sessionMemberId,jdbcType=BIGINT}, #{readStatus,jdbcType=TINYINT}, #{delStatus,jdbcType=TINYINT}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.research.system.domain.po.ChatMessageReadStatus"> |
|||
insert into chat_message_read_status |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="sessionId != null"> |
|||
session_id, |
|||
</if> |
|||
<if test="sessionMessageId != null"> |
|||
session_message_id, |
|||
</if> |
|||
<if test="sessionMemberId != null"> |
|||
session_member_id, |
|||
</if> |
|||
<if test="readStatus != null"> |
|||
read_status, |
|||
</if> |
|||
<if test="delStatus != null"> |
|||
del_status, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionId != null"> |
|||
#{sessionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionMessageId != null"> |
|||
#{sessionMessageId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionMemberId != null"> |
|||
#{sessionMemberId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="readStatus != null"> |
|||
#{readStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="delStatus != null"> |
|||
#{delStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.research.system.domain.po.ChatMessageReadStatusExample" resultType="java.lang.Long"> |
|||
select count(*) from chat_message_read_status |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update chat_message_read_status |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sessionId != null"> |
|||
session_id = #{record.sessionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sessionMessageId != null"> |
|||
session_message_id = #{record.sessionMessageId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sessionMemberId != null"> |
|||
session_member_id = #{record.sessionMemberId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.readStatus != null"> |
|||
read_status = #{record.readStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.delStatus != null"> |
|||
del_status = #{record.delStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update chat_message_read_status |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
session_id = #{record.sessionId,jdbcType=BIGINT}, |
|||
session_message_id = #{record.sessionMessageId,jdbcType=BIGINT}, |
|||
session_member_id = #{record.sessionMemberId,jdbcType=BIGINT}, |
|||
read_status = #{record.readStatus,jdbcType=TINYINT}, |
|||
del_status = #{record.delStatus,jdbcType=TINYINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.ChatMessageReadStatus"> |
|||
update chat_message_read_status |
|||
<set> |
|||
<if test="sessionId != null"> |
|||
session_id = #{sessionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionMessageId != null"> |
|||
session_message_id = #{sessionMessageId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionMemberId != null"> |
|||
session_member_id = #{sessionMemberId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="readStatus != null"> |
|||
read_status = #{readStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="delStatus != null"> |
|||
del_status = #{delStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.ChatMessageReadStatus"> |
|||
update chat_message_read_status |
|||
set session_id = #{sessionId,jdbcType=BIGINT}, |
|||
session_message_id = #{sessionMessageId,jdbcType=BIGINT}, |
|||
session_member_id = #{sessionMemberId,jdbcType=BIGINT}, |
|||
read_status = #{readStatus,jdbcType=TINYINT}, |
|||
del_status = #{delStatus,jdbcType=TINYINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
|||
@ -0,0 +1,300 @@ |
|||
<?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.research.system.persist.mapper.ChatSessionMembersMapper"> |
|||
<resultMap id="BaseResultMap" type="com.research.system.domain.po.ChatSessionMembers"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="session_id" jdbcType="BIGINT" property="sessionId" /> |
|||
<result column="session_member_id" jdbcType="BIGINT" property="sessionMemberId" /> |
|||
<result column="is_creator" jdbcType="TINYINT" property="isCreator" /> |
|||
<result column="is_admin" jdbcType="TINYINT" property="isAdmin" /> |
|||
<result column="session_alias" jdbcType="VARCHAR" property="sessionAlias" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
</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, session_id, session_member_id, is_creator, is_admin, session_alias, create_by, |
|||
create_time, update_by, update_time, del_flag |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.research.system.domain.po.ChatSessionMembersExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from chat_session_members |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from chat_session_members |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from chat_session_members |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.research.system.domain.po.ChatSessionMembers"> |
|||
insert into chat_session_members (id, session_id, session_member_id, |
|||
is_creator, is_admin, session_alias, |
|||
create_by, create_time, update_by, |
|||
update_time, del_flag) |
|||
values (#{id,jdbcType=BIGINT}, #{sessionId,jdbcType=BIGINT}, #{sessionMemberId,jdbcType=BIGINT}, |
|||
#{isCreator,jdbcType=TINYINT}, #{isAdmin,jdbcType=TINYINT}, #{sessionAlias,jdbcType=VARCHAR}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.research.system.domain.po.ChatSessionMembers"> |
|||
insert into chat_session_members |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="sessionId != null"> |
|||
session_id, |
|||
</if> |
|||
<if test="sessionMemberId != null"> |
|||
session_member_id, |
|||
</if> |
|||
<if test="isCreator != null"> |
|||
is_creator, |
|||
</if> |
|||
<if test="isAdmin != null"> |
|||
is_admin, |
|||
</if> |
|||
<if test="sessionAlias != null"> |
|||
session_alias, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionId != null"> |
|||
#{sessionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionMemberId != null"> |
|||
#{sessionMemberId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="isCreator != null"> |
|||
#{isCreator,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="isAdmin != null"> |
|||
#{isAdmin,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="sessionAlias != null"> |
|||
#{sessionAlias,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.research.system.domain.po.ChatSessionMembersExample" resultType="java.lang.Long"> |
|||
select count(*) from chat_session_members |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update chat_session_members |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sessionId != null"> |
|||
session_id = #{record.sessionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sessionMemberId != null"> |
|||
session_member_id = #{record.sessionMemberId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.isCreator != null"> |
|||
is_creator = #{record.isCreator,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.isAdmin != null"> |
|||
is_admin = #{record.isAdmin,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.sessionAlias != null"> |
|||
session_alias = #{record.sessionAlias,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update chat_session_members |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
session_id = #{record.sessionId,jdbcType=BIGINT}, |
|||
session_member_id = #{record.sessionMemberId,jdbcType=BIGINT}, |
|||
is_creator = #{record.isCreator,jdbcType=TINYINT}, |
|||
is_admin = #{record.isAdmin,jdbcType=TINYINT}, |
|||
session_alias = #{record.sessionAlias,jdbcType=VARCHAR}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.ChatSessionMembers"> |
|||
update chat_session_members |
|||
<set> |
|||
<if test="sessionId != null"> |
|||
session_id = #{sessionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionMemberId != null"> |
|||
session_member_id = #{sessionMemberId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="isCreator != null"> |
|||
is_creator = #{isCreator,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="isAdmin != null"> |
|||
is_admin = #{isAdmin,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="sessionAlias != null"> |
|||
session_alias = #{sessionAlias,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.ChatSessionMembers"> |
|||
update chat_session_members |
|||
set session_id = #{sessionId,jdbcType=BIGINT}, |
|||
session_member_id = #{sessionMemberId,jdbcType=BIGINT}, |
|||
is_creator = #{isCreator,jdbcType=TINYINT}, |
|||
is_admin = #{isAdmin,jdbcType=TINYINT}, |
|||
session_alias = #{sessionAlias,jdbcType=VARCHAR}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
|||
@ -0,0 +1,317 @@ |
|||
<?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.research.system.persist.mapper.ChatSessionMessagesMapper"> |
|||
<resultMap id="BaseResultMap" type="com.research.system.domain.po.ChatSessionMessages"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="session_id" jdbcType="BIGINT" property="sessionId" /> |
|||
<result column="sender_id" jdbcType="BIGINT" property="senderId" /> |
|||
<result column="content_type" jdbcType="TINYINT" property="contentType" /> |
|||
<result column="content" jdbcType="VARCHAR" property="content" /> |
|||
<result column="referenced_message_id" jdbcType="BIGINT" property="referencedMessageId" /> |
|||
<result column="mentioned_users" jdbcType="VARCHAR" property="mentionedUsers" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
</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, session_id, sender_id, content_type, content, referenced_message_id, mentioned_users, |
|||
create_by, create_time, update_by, update_time, del_flag |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.research.system.domain.po.ChatSessionMessagesExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from chat_session_messages |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from chat_session_messages |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from chat_session_messages |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.research.system.domain.po.ChatSessionMessages"> |
|||
insert into chat_session_messages (id, session_id, sender_id, |
|||
content_type, content, referenced_message_id, |
|||
mentioned_users, create_by, create_time, |
|||
update_by, update_time, del_flag |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{sessionId,jdbcType=BIGINT}, #{senderId,jdbcType=BIGINT}, |
|||
#{contentType,jdbcType=TINYINT}, #{content,jdbcType=VARCHAR}, #{referencedMessageId,jdbcType=BIGINT}, |
|||
#{mentionedUsers,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.research.system.domain.po.ChatSessionMessages"> |
|||
insert into chat_session_messages |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="sessionId != null"> |
|||
session_id, |
|||
</if> |
|||
<if test="senderId != null"> |
|||
sender_id, |
|||
</if> |
|||
<if test="contentType != null"> |
|||
content_type, |
|||
</if> |
|||
<if test="content != null"> |
|||
content, |
|||
</if> |
|||
<if test="referencedMessageId != null"> |
|||
referenced_message_id, |
|||
</if> |
|||
<if test="mentionedUsers != null"> |
|||
mentioned_users, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionId != null"> |
|||
#{sessionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="senderId != null"> |
|||
#{senderId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="contentType != null"> |
|||
#{contentType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="content != null"> |
|||
#{content,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="referencedMessageId != null"> |
|||
#{referencedMessageId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="mentionedUsers != null"> |
|||
#{mentionedUsers,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.research.system.domain.po.ChatSessionMessagesExample" resultType="java.lang.Long"> |
|||
select count(*) from chat_session_messages |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update chat_session_messages |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sessionId != null"> |
|||
session_id = #{record.sessionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.senderId != null"> |
|||
sender_id = #{record.senderId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.contentType != null"> |
|||
content_type = #{record.contentType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.content != null"> |
|||
content = #{record.content,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.referencedMessageId != null"> |
|||
referenced_message_id = #{record.referencedMessageId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.mentionedUsers != null"> |
|||
mentioned_users = #{record.mentionedUsers,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update chat_session_messages |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
session_id = #{record.sessionId,jdbcType=BIGINT}, |
|||
sender_id = #{record.senderId,jdbcType=BIGINT}, |
|||
content_type = #{record.contentType,jdbcType=TINYINT}, |
|||
content = #{record.content,jdbcType=VARCHAR}, |
|||
referenced_message_id = #{record.referencedMessageId,jdbcType=BIGINT}, |
|||
mentioned_users = #{record.mentionedUsers,jdbcType=VARCHAR}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.ChatSessionMessages"> |
|||
update chat_session_messages |
|||
<set> |
|||
<if test="sessionId != null"> |
|||
session_id = #{sessionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="senderId != null"> |
|||
sender_id = #{senderId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="contentType != null"> |
|||
content_type = #{contentType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="content != null"> |
|||
content = #{content,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="referencedMessageId != null"> |
|||
referenced_message_id = #{referencedMessageId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="mentionedUsers != null"> |
|||
mentioned_users = #{mentionedUsers,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.ChatSessionMessages"> |
|||
update chat_session_messages |
|||
set session_id = #{sessionId,jdbcType=BIGINT}, |
|||
sender_id = #{senderId,jdbcType=BIGINT}, |
|||
content_type = #{contentType,jdbcType=TINYINT}, |
|||
content = #{content,jdbcType=VARCHAR}, |
|||
referenced_message_id = #{referencedMessageId,jdbcType=BIGINT}, |
|||
mentioned_users = #{mentionedUsers,jdbcType=VARCHAR}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
|||
@ -0,0 +1,300 @@ |
|||
<?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.research.system.persist.mapper.ChatSessionsMapper"> |
|||
<resultMap id="BaseResultMap" type="com.research.system.domain.po.ChatSessions"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="session_type" jdbcType="TINYINT" property="sessionType" /> |
|||
<result column="session_name" jdbcType="VARCHAR" property="sessionName" /> |
|||
<result column="created_by" jdbcType="BIGINT" property="createdBy" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="avatar_url" jdbcType="VARCHAR" property="avatarUrl" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
</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, session_type, session_name, created_by, created_at, avatar_url, create_by, create_time, |
|||
update_by, update_time, del_flag |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.research.system.domain.po.ChatSessionsExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from chat_sessions |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from chat_sessions |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from chat_sessions |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.research.system.domain.po.ChatSessions"> |
|||
insert into chat_sessions (id, session_type, session_name, |
|||
created_by, created_at, avatar_url, |
|||
create_by, create_time, update_by, |
|||
update_time, del_flag) |
|||
values (#{id,jdbcType=BIGINT}, #{sessionType,jdbcType=TINYINT}, #{sessionName,jdbcType=VARCHAR}, |
|||
#{createdBy,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{avatarUrl,jdbcType=VARCHAR}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.research.system.domain.po.ChatSessions"> |
|||
insert into chat_sessions |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="sessionType != null"> |
|||
session_type, |
|||
</if> |
|||
<if test="sessionName != null"> |
|||
session_name, |
|||
</if> |
|||
<if test="createdBy != null"> |
|||
created_by, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="avatarUrl != null"> |
|||
avatar_url, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sessionType != null"> |
|||
#{sessionType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="sessionName != null"> |
|||
#{sessionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdBy != null"> |
|||
#{createdBy,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="avatarUrl != null"> |
|||
#{avatarUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.research.system.domain.po.ChatSessionsExample" resultType="java.lang.Long"> |
|||
select count(*) from chat_sessions |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update chat_sessions |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sessionType != null"> |
|||
session_type = #{record.sessionType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.sessionName != null"> |
|||
session_name = #{record.sessionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createdBy != null"> |
|||
created_by = #{record.createdBy,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.avatarUrl != null"> |
|||
avatar_url = #{record.avatarUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update chat_sessions |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
session_type = #{record.sessionType,jdbcType=TINYINT}, |
|||
session_name = #{record.sessionName,jdbcType=VARCHAR}, |
|||
created_by = #{record.createdBy,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
avatar_url = #{record.avatarUrl,jdbcType=VARCHAR}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.research.system.domain.po.ChatSessions"> |
|||
update chat_sessions |
|||
<set> |
|||
<if test="sessionType != null"> |
|||
session_type = #{sessionType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="sessionName != null"> |
|||
session_name = #{sessionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdBy != null"> |
|||
created_by = #{createdBy,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="avatarUrl != null"> |
|||
avatar_url = #{avatarUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.ChatSessions"> |
|||
update chat_sessions |
|||
set session_type = #{sessionType,jdbcType=TINYINT}, |
|||
session_name = #{sessionName,jdbcType=VARCHAR}, |
|||
created_by = #{createdBy,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
avatar_url = #{avatarUrl,jdbcType=VARCHAR}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
|||
Loading…
Reference in new issue