Commit d384884275e30416ea5352e3aae128940999a0b5

Authored by changpengfei
1 parent 39211198ca
Exists in master and in 1 other branch dev

字典维护

Showing 10 changed files with 354 additions and 0 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsChatroom.java View file @ d384884
  1 +package com.lyms.talkonlineweb.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import java.io.Serializable;
  8 +import lombok.Data;
  9 +
  10 +/**
  11 + *
  12 + * @TableName lyms_chatroom
  13 + */
  14 +@TableName(value ="lyms_chatroom")
  15 +@Data
  16 +public class LymsChatroom implements Serializable {
  17 + /**
  18 + *
  19 + */
  20 + @TableId(value = "id", type = IdType.AUTO)
  21 + private Integer id;
  22 +
  23 + /**
  24 + *
  25 + */
  26 + @TableField(value = "name")
  27 + private String name;
  28 +
  29 + /**
  30 + *
  31 + */
  32 + @TableField(value = "description")
  33 + private String description;
  34 +
  35 + /**
  36 + * 客服人员ID
  37 + */
  38 + @TableField(value = "owner")
  39 + private Integer owner;
  40 +
  41 + /**
  42 + * 患者ID
  43 + */
  44 + @TableField(value = "from")
  45 + private Integer from;
  46 +
  47 + /**
  48 + * 医生ID
  49 + */
  50 + @TableField(value = "target")
  51 + private Integer target;
  52 +
  53 + @TableField(exist = false)
  54 + private static final long serialVersionUID = 1L;
  55 +
  56 + @Override
  57 + public boolean equals(Object that) {
  58 + if (this == that) {
  59 + return true;
  60 + }
  61 + if (that == null) {
  62 + return false;
  63 + }
  64 + if (getClass() != that.getClass()) {
  65 + return false;
  66 + }
  67 + LymsChatroom other = (LymsChatroom) that;
  68 + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
  69 + && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
  70 + && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
  71 + && (this.getOwner() == null ? other.getOwner() == null : this.getOwner().equals(other.getOwner()))
  72 + && (this.getFrom() == null ? other.getFrom() == null : this.getFrom().equals(other.getFrom()))
  73 + && (this.getTarget() == null ? other.getTarget() == null : this.getTarget().equals(other.getTarget()));
  74 + }
  75 +
  76 + @Override
  77 + public int hashCode() {
  78 + final int prime = 31;
  79 + int result = 1;
  80 + result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
  81 + result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
  82 + result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
  83 + result = prime * result + ((getOwner() == null) ? 0 : getOwner().hashCode());
  84 + result = prime * result + ((getFrom() == null) ? 0 : getFrom().hashCode());
  85 + result = prime * result + ((getTarget() == null) ? 0 : getTarget().hashCode());
  86 + return result;
  87 + }
  88 +
  89 + @Override
  90 + public String toString() {
  91 + StringBuilder sb = new StringBuilder();
  92 + sb.append(getClass().getSimpleName());
  93 + sb.append(" [");
  94 + sb.append("Hash = ").append(hashCode());
  95 + sb.append(", id=").append(id);
  96 + sb.append(", name=").append(name);
  97 + sb.append(", description=").append(description);
  98 + sb.append(", owner=").append(owner);
  99 + sb.append(", from=").append(from);
  100 + sb.append(", target=").append(target);
  101 + sb.append(", serialVersionUID=").append(serialVersionUID);
  102 + sb.append("]");
  103 + return sb.toString();
  104 + }
  105 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsLogs.java View file @ d384884
  1 +package com.lyms.talkonlineweb.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import java.io.Serializable;
  8 +import java.util.Date;
  9 +import lombok.Data;
  10 +
  11 +/**
  12 + *
  13 + * @TableName lyms_logs
  14 + */
  15 +@TableName(value ="lyms_logs")
  16 +@Data
  17 +public class LymsLogs implements Serializable {
  18 + /**
  19 + *
  20 + */
  21 + @TableId(value = "id", type = IdType.AUTO)
  22 + private Integer id;
  23 +
  24 + /**
  25 + *
  26 + */
  27 + @TableField(value = "class")
  28 + private String class;
  29 +
  30 + /**
  31 + *
  32 + */
  33 + @TableField(value = "func")
  34 + private String func;
  35 +
  36 + /**
  37 + *
  38 + */
  39 + @TableField(value = "lvl")
  40 + private String lvl;
  41 +
  42 + /**
  43 + *
  44 + */
  45 + @TableField(value = "logger")
  46 + private String logger;
  47 +
  48 + /**
  49 + *
  50 + */
  51 + @TableField(value = "message")
  52 + private String message;
  53 +
  54 + /**
  55 + *
  56 + */
  57 + @TableField(value = "log_date")
  58 + private Date logDate;
  59 +
  60 + @TableField(exist = false)
  61 + private static final long serialVersionUID = 1L;
  62 +
  63 + @Override
  64 + public boolean equals(Object that) {
  65 + if (this == that) {
  66 + return true;
  67 + }
  68 + if (that == null) {
  69 + return false;
  70 + }
  71 + if (getClass() != that.getClass()) {
  72 + return false;
  73 + }
  74 + LymsLogs other = (LymsLogs) that;
  75 + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
  76 + && (this.getClass() == null ? other.getClass() == null : this.getClass().equals(other.getClass()))
  77 + && (this.getFunc() == null ? other.getFunc() == null : this.getFunc().equals(other.getFunc()))
  78 + && (this.getLvl() == null ? other.getLvl() == null : this.getLvl().equals(other.getLvl()))
  79 + && (this.getLogger() == null ? other.getLogger() == null : this.getLogger().equals(other.getLogger()))
  80 + && (this.getMessage() == null ? other.getMessage() == null : this.getMessage().equals(other.getMessage()))
  81 + && (this.getLogDate() == null ? other.getLogDate() == null : this.getLogDate().equals(other.getLogDate()));
  82 + }
  83 +
  84 + @Override
  85 + public int hashCode() {
  86 + final int prime = 31;
  87 + int result = 1;
  88 + result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
  89 + result = prime * result + ((getClass() == null) ? 0 : getClass().hashCode());
  90 + result = prime * result + ((getFunc() == null) ? 0 : getFunc().hashCode());
  91 + result = prime * result + ((getLvl() == null) ? 0 : getLvl().hashCode());
  92 + result = prime * result + ((getLogger() == null) ? 0 : getLogger().hashCode());
  93 + result = prime * result + ((getMessage() == null) ? 0 : getMessage().hashCode());
  94 + result = prime * result + ((getLogDate() == null) ? 0 : getLogDate().hashCode());
  95 + return result;
  96 + }
  97 +
  98 + @Override
  99 + public String toString() {
  100 + StringBuilder sb = new StringBuilder();
  101 + sb.append(getClass().getSimpleName());
  102 + sb.append(" [");
  103 + sb.append("Hash = ").append(hashCode());
  104 + sb.append(", id=").append(id);
  105 + sb.append(", class=").append(class);
  106 + sb.append(", func=").append(func);
  107 + sb.append(", lvl=").append(lvl);
  108 + sb.append(", logger=").append(logger);
  109 + sb.append(", message=").append(message);
  110 + sb.append(", logDate=").append(logDate);
  111 + sb.append(", serialVersionUID=").append(serialVersionUID);
  112 + sb.append("]");
  113 + return sb.toString();
  114 + }
  115 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsChatroomMapper.java View file @ d384884
  1 +package com.lyms.talkonlineweb.mapper;
  2 +
  3 +import com.lyms.talkonlineweb.domain.LymsChatroom;
  4 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  5 +
  6 +/**
  7 + * @Entity com.lyms.talkonlineweb.domain.LymsChatroom
  8 + */
  9 +public interface LymsChatroomMapper extends BaseMapper<LymsChatroom> {
  10 +
  11 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsLogsMapper.java View file @ d384884
  1 +package com.lyms.talkonlineweb.mapper;
  2 +
  3 +import com.lyms.talkonlineweb.domain.LymsLogs;
  4 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  5 +
  6 +/**
  7 + * @Entity com.lyms.talkonlineweb.domain.LymsLogs
  8 + */
  9 +public interface LymsLogsMapper extends BaseMapper<LymsLogs> {
  10 +
  11 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsChatroomService.java View file @ d384884
  1 +package com.lyms.talkonlineweb.service;
  2 +
  3 +import com.lyms.talkonlineweb.domain.LymsChatroom;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +
  6 +/**
  7 + *
  8 + */
  9 +public interface LymsChatroomService extends IService<LymsChatroom> {
  10 +
  11 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsLogsService.java View file @ d384884
  1 +package com.lyms.talkonlineweb.service;
  2 +
  3 +import com.lyms.talkonlineweb.domain.LymsLogs;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +
  6 +/**
  7 + *
  8 + */
  9 +public interface LymsLogsService extends IService<LymsLogs> {
  10 +
  11 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsChatroomServiceImpl.java View file @ d384884
  1 +package com.lyms.talkonlineweb.service.impl;
  2 +
  3 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4 +import com.lyms.talkonlineweb.domain.LymsChatroom;
  5 +import com.lyms.talkonlineweb.service.LymsChatroomService;
  6 +import com.lyms.talkonlineweb.mapper.LymsChatroomMapper;
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +/**
  10 + *
  11 + */
  12 +@Service
  13 +public class LymsChatroomServiceImpl extends ServiceImpl<LymsChatroomMapper, LymsChatroom>
  14 + implements LymsChatroomService{
  15 +
  16 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsLogsServiceImpl.java View file @ d384884
  1 +package com.lyms.talkonlineweb.service.impl;
  2 +
  3 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4 +import com.lyms.talkonlineweb.domain.LymsLogs;
  5 +import com.lyms.talkonlineweb.service.LymsLogsService;
  6 +import com.lyms.talkonlineweb.mapper.LymsLogsMapper;
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +/**
  10 + *
  11 + */
  12 +@Service
  13 +public class LymsLogsServiceImpl extends ServiceImpl<LymsLogsMapper, LymsLogs>
  14 + implements LymsLogsService{
  15 +
  16 +}
talkonlineweb/src/main/resources/mapper/LymsChatroomMapper.xml View file @ d384884
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper
  3 + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 + "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.lyms.talkonlineweb.mapper.LymsChatroomMapper">
  6 +
  7 + <resultMap id="BaseResultMap" type="com.lyms.talkonlineweb.domain.LymsChatroom">
  8 + <id property="id" column="id" jdbcType="INTEGER"/>
  9 + <result property="name" column="name" jdbcType="VARCHAR"/>
  10 + <result property="description" column="description" jdbcType="VARCHAR"/>
  11 + <result property="owner" column="owner" jdbcType="INTEGER"/>
  12 + <result property="from" column="from" jdbcType="INTEGER"/>
  13 + <result property="target" column="target" jdbcType="INTEGER"/>
  14 + </resultMap>
  15 +
  16 + <sql id="Base_Column_List">
  17 + id,name,description,
  18 + owner,from,target
  19 + </sql>
  20 +</mapper>
talkonlineweb/src/main/resources/mapper/LymsLogsMapper.xml View file @ d384884
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper
  3 + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 + "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.lyms.talkonlineweb.mapper.LymsLogsMapper">
  6 +
  7 + <resultMap id="BaseResultMap" type="com.lyms.talkonlineweb.domain.LymsLogs">
  8 + <id property="id" column="id" jdbcType="INTEGER"/>
  9 + <result property="class" column="class" jdbcType="VARCHAR"/>
  10 + <result property="func" column="func" jdbcType="VARCHAR"/>
  11 + <result property="lvl" column="lvl" jdbcType="VARCHAR"/>
  12 + <result property="logger" column="logger" jdbcType="VARCHAR"/>
  13 + <result property="message" column="message" jdbcType="VARCHAR"/>
  14 + <result property="logDate" column="log_date" jdbcType="TIMESTAMP"/>
  15 + </resultMap>
  16 +
  17 + <sql id="Base_Column_List">
  18 + id,class,func,
  19 + lvl,logger,message,
  20 + log_date
  21 + </sql>
  22 +</mapper>