Commit 2d482e0d294aa0672a41e936dd73bf276f5dfafb

Authored by shiyang
1 parent b6c0f1219d
Exists in master

医生端问诊统计

Showing 5 changed files with 151 additions and 0 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/TkrecordInfo.java View file @ 2d482e0
  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 tkrecord_info
  13 + */
  14 +@TableName(value ="tkrecord_info")
  15 +@Data
  16 +public class TkrecordInfo implements Serializable {
  17 + /**
  18 + * 医生id
  19 + */
  20 + @TableField(value = "did")
  21 + private Integer did;
  22 +
  23 + /**
  24 + * 本月接诊数量
  25 + */
  26 + @TableField(value = "themonth")
  27 + private Long themonth;
  28 +
  29 + /**
  30 + * 上月接诊数量
  31 + */
  32 + @TableField(value = "lastmonth")
  33 + private Long lastmonth;
  34 +
  35 + /**
  36 + * 总接诊数量
  37 + */
  38 + @TableField(value = "alltotal")
  39 + private Long alltotal;
  40 +
  41 + @TableField(exist = false)
  42 + private static final long serialVersionUID = 1L;
  43 +
  44 + @Override
  45 + public boolean equals(Object that) {
  46 + if (this == that) {
  47 + return true;
  48 + }
  49 + if (that == null) {
  50 + return false;
  51 + }
  52 + if (getClass() != that.getClass()) {
  53 + return false;
  54 + }
  55 + TkrecordInfo other = (TkrecordInfo) that;
  56 + return (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
  57 + && (this.getThemonth() == null ? other.getThemonth() == null : this.getThemonth().equals(other.getThemonth()))
  58 + && (this.getLastmonth() == null ? other.getLastmonth() == null : this.getLastmonth().equals(other.getLastmonth()))
  59 + && (this.getAlltotal() == null ? other.getAlltotal() == null : this.getAlltotal().equals(other.getAlltotal()));
  60 + }
  61 +
  62 + @Override
  63 + public int hashCode() {
  64 + final int prime = 31;
  65 + int result = 1;
  66 + result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
  67 + result = prime * result + ((getThemonth() == null) ? 0 : getThemonth().hashCode());
  68 + result = prime * result + ((getLastmonth() == null) ? 0 : getLastmonth().hashCode());
  69 + result = prime * result + ((getAlltotal() == null) ? 0 : getAlltotal().hashCode());
  70 + return result;
  71 + }
  72 +
  73 + @Override
  74 + public String toString() {
  75 + StringBuilder sb = new StringBuilder();
  76 + sb.append(getClass().getSimpleName());
  77 + sb.append(" [");
  78 + sb.append("Hash = ").append(hashCode());
  79 + sb.append(", did=").append(did);
  80 + sb.append(", themonth=").append(themonth);
  81 + sb.append(", lastmonth=").append(lastmonth);
  82 + sb.append(", alltotal=").append(alltotal);
  83 + sb.append(", serialVersionUID=").append(serialVersionUID);
  84 + sb.append("]");
  85 + return sb.toString();
  86 + }
  87 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/TkrecordInfoMapper.java View file @ 2d482e0
  1 +package com.lyms.talkonlineweb.mapper;
  2 +
  3 +import com.lyms.talkonlineweb.domain.TkrecordInfo;
  4 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  5 +
  6 +/**
  7 + * @Entity com.lyms.talkonlineweb.domain.TkrecordInfo
  8 + */
  9 +public interface TkrecordInfoMapper extends BaseMapper<TkrecordInfo> {
  10 +
  11 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/TkrecordInfoService.java View file @ 2d482e0
  1 +package com.lyms.talkonlineweb.service;
  2 +
  3 +import com.lyms.talkonlineweb.domain.TkrecordInfo;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +
  6 +/**
  7 + *
  8 + */
  9 +public interface TkrecordInfoService extends IService<TkrecordInfo> {
  10 +
  11 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/TkrecordInfoServiceImpl.java View file @ 2d482e0
  1 +package com.lyms.talkonlineweb.service.impl;
  2 +
  3 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4 +import com.lyms.talkonlineweb.domain.TkrecordInfo;
  5 +import com.lyms.talkonlineweb.service.TkrecordInfoService;
  6 +import com.lyms.talkonlineweb.mapper.TkrecordInfoMapper;
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +/**
  10 + *
  11 + */
  12 +@Service
  13 +public class TkrecordInfoServiceImpl extends ServiceImpl<TkrecordInfoMapper, TkrecordInfo>
  14 + implements TkrecordInfoService{
  15 +
  16 +}
talkonlineweb/src/main/resources/mapper/TkrecordInfoMapper.xml View file @ 2d482e0
  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.TkrecordInfoMapper">
  6 +
  7 + <resultMap id="BaseResultMap" type="com.lyms.talkonlineweb.domain.TkrecordInfo">
  8 + <result property="did" column="did" jdbcType="INTEGER"/>
  9 + <result property="themonth" column="themonth" jdbcType="DECIMAL"/>
  10 + <result property="lastmonth" column="lastmonth" jdbcType="DECIMAL"/>
  11 + <result property="alltotal" column="alltotal" jdbcType="BIGINT"/>
  12 + </resultMap>
  13 +
  14 + <sql id="Base_Column_List">
  15 + did,themonth,lastmonth,
  16 + alltotal
  17 + </sql>
  18 +</mapper>