From 6449dc56275b7246e21d22a9f907bf0483ea5548 Mon Sep 17 00:00:00 2001 From: yundouzou <15581300976@163.com> Date: Fri, 22 Dec 2023 13:33:13 +0800 Subject: [PATCH] notice and Record --- Notice.java | 42 +++++++++++++++ PageResult.java | 29 +++++++++++ PunchClock.java | 58 +++++++++++++++++++++ PunchClockRecord.java | 115 ++++++++++++++++++++++++++++++++++++++++++ Record.java | 64 +++++++++++++++++++++++ Result.java | 28 ++++++++++ 6 files changed, 336 insertions(+) create mode 100644 Notice.java create mode 100644 PageResult.java create mode 100644 PunchClock.java create mode 100644 PunchClockRecord.java create mode 100644 Record.java create mode 100644 Result.java diff --git a/Notice.java b/Notice.java new file mode 100644 index 0000000..7e2d20d --- /dev/null +++ b/Notice.java @@ -0,0 +1,42 @@ +package com.cya.entity; + +import java.sql.Date; + +public class Notice { + + private int noticeId; + private Date date; + private String noticePerson; + private String content; + public int getNoticeId() { + return noticeId; + } + public void setNoticeId(int noticeId) { + this.noticeId = noticeId; + } + public Date getDate() { + return date; + } + public void setDate(Date date) { + this.date = date; + } + public String getNoticePerson() { + return noticePerson; + } + public void setNoticePerson(String noticePerson) { + this.noticePerson = noticePerson; + } + public String getContent() { + return content; + } + public void setContent(String content) { + this.content = content; + } + @Override + public String toString() { + return "Notice [noticeId=" + noticeId + ", date=" + date + ", noticePerson=" + noticePerson + ", content=" + + content + "]"; + } + + +} diff --git a/PageResult.java b/PageResult.java new file mode 100644 index 0000000..21e642e --- /dev/null +++ b/PageResult.java @@ -0,0 +1,29 @@ +package com.cya.entity; + +import java.io.Serializable; +import java.util.List; + +public class PageResult implements Serializable{ + + private long total; //总记录数 + private List rows; //当前页面结果(当前要现实的数据) + + public PageResult(long total,List rows) { + this.total=total; + this.rows=rows; + } + public long getTotal() { + return total; + } + public void setTotal(long total) { + this.total = total; + } + public List getRows() { + return rows; + } + public void setRows(List rows) { + this.rows = rows; + } + + +} diff --git a/PunchClock.java b/PunchClock.java new file mode 100644 index 0000000..aba4ad3 --- /dev/null +++ b/PunchClock.java @@ -0,0 +1,58 @@ +package com.cya.entity; +/** + * 打卡 + * @author 公众号【C you again】 + * + */ + +import java.sql.Date; + +import javax.xml.soap.Detail; + +public class PunchClock { + private String id; //打卡记录 + private String theme; //打卡主题 + private String detail; //说明 + private Date date; + private String person; //发起人 + public String getId() { + return id; + } + public void setId(String id) { + this.id = id; + } + public String getTheme() { + return theme; + } + public void setTheme(String theme) { + this.theme = theme; + } + public String getDetail() { + return detail; + } + public void setDetail(String detail) { + this.detail = detail; + } + public Date getDate() { + return date; + } + public void setDate(Date date) { + this.date = date; + } + public String getPerson() { + return person; + } + public void setPerson(String person) { + this.person = person; + } + @Override + public String toString() { + return "PunchClock [id=" + id + ", theme=" + theme + ", detail=" + detail + ", date=" + date + ", person=" + + person + "]"; + } + + + + + +} diff --git a/PunchClockRecord.java b/PunchClockRecord.java new file mode 100644 index 0000000..888c0e6 --- /dev/null +++ b/PunchClockRecord.java @@ -0,0 +1,115 @@ +package com.cya.entity; +/** + * 打卡记录表 + * @author 蜡笔小新 + * + */ + +import java.sql.Date; + +public class PunchClockRecord { + + private int id; //记录Id + private String punchClockId; //打卡Id; + private Date punchClockDate; //打卡时间 + private String punchClockTheme; //打卡主题 + private String punchClockDetail; //打卡说明 + private String punchClockPerson; //打卡发起人 + private String name; + private String dormName; + private String tel; + private String stuNum; //学生学号 + private int dormBuildId; ///学生寝室号 + private boolean isRecord; //是否已经打卡 + private String punckClockContent; //打卡内容 + public int getId() { + return id; + } + public void setId(int id) { + this.id = id; + } + public String getPunchClockId() { + return punchClockId; + } + public void setPunchClockId(String punchClockId) { + this.punchClockId = punchClockId; + } + public Date getPunchClockDate() { + return punchClockDate; + } + public void setPunchClockDate(Date punchClockDate) { + this.punchClockDate = punchClockDate; + } + public String getPunchClockTheme() { + return punchClockTheme; + } + public void setPunchClockTheme(String punchClockTheme) { + this.punchClockTheme = punchClockTheme; + } + public String getPunchClockDetail() { + return punchClockDetail; + } + public void setPunchClockDetail(String punchClockDetail) { + this.punchClockDetail = punchClockDetail; + } + public String getPunchClockPerson() { + return punchClockPerson; + } + public void setPunchClockPerson(String punchClockPerson) { + this.punchClockPerson = punchClockPerson; + } + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public String getDormName() { + return dormName; + } + public void setDormName(String dormName) { + this.dormName = dormName; + } + public String getTel() { + return tel; + } + public void setTel(String tel) { + this.tel = tel; + } + public String getStuNum() { + return stuNum; + } + public void setStuNum(String stuNum) { + this.stuNum = stuNum; + } + public int getDormBuildId() { + return dormBuildId; + } + public void setDormBuildId(int dormBuildId) { + this.dormBuildId = dormBuildId; + } + public boolean isRecord() { + return isRecord; + } + public void setRecord(boolean isRecord) { + this.isRecord = isRecord; + } + public String getPunckClockContent() { + return punckClockContent; + } + public void setPunckClockContent(String punckClockContent) { + this.punckClockContent = punckClockContent; + } + @Override + public String toString() { + return "PunchClockRecord [id=" + id + ", punchClockId=" + punchClockId + ", punchClockDate=" + punchClockDate + + ", punchClockTheme=" + punchClockTheme + ", punchClockDetail=" + punchClockDetail + + ", punchClockPerson=" + punchClockPerson + ", name=" + name + ", dormName=" + dormName + ", tel=" + + tel + ", stuNum=" + stuNum + ", dormBuildId=" + dormBuildId + ", isRecord=" + isRecord + + ", punckClockContent=" + punckClockContent + "]"; + } + + + + +} diff --git a/Record.java b/Record.java new file mode 100644 index 0000000..961efcd --- /dev/null +++ b/Record.java @@ -0,0 +1,64 @@ +package com.cya.entity; + +import java.sql.Date; + +public class Record { + private int recordId; + private String studentNumber; + private String studentName; + private int dormBuildId; + private String dormName; + private Date date; + private String detail; + public int getRecordId() { + return recordId; + } + public void setRecordId(int recordId) { + this.recordId = recordId; + } + public String getStudentNumber() { + return studentNumber; + } + public void setStudentNumber(String studentNumber) { + this.studentNumber = studentNumber; + } + public String getStudentName() { + return studentName; + } + public void setStudentName(String studentName) { + this.studentName = studentName; + } + public int getDormBuildId() { + return dormBuildId; + } + public void setDormBuildId(int dormBuildId) { + this.dormBuildId = dormBuildId; + } + public String getDormName() { + return dormName; + } + public void setDormName(String dormName) { + this.dormName = dormName; + } + public Date getDate() { + return date; + } + public void setDate(Date date) { + this.date = date; + } + public String getDetail() { + return detail; + } + public void setDetail(String detail) { + this.detail = detail; + } + @Override + public String toString() { + return "Record [recordId=" + recordId + ", studentNumber=" + studentNumber + ", studentName=" + studentName + + ", dormBuildId=" + dormBuildId + ", dormName=" + dormName + ", date=" + date + ", detail=" + detail + + "]"; + } + + + +} diff --git a/Result.java b/Result.java new file mode 100644 index 0000000..22935a0 --- /dev/null +++ b/Result.java @@ -0,0 +1,28 @@ +package com.cya.entity; + +public class Result { + + private boolean result; + private String message; + public boolean isResult() { + return result; + } + public void setResult(boolean result) { + this.result = result; + } + public String getMessage() { + return message; + } + public void setMessage(String message) { + this.message = message; + } + public Result(boolean result, String message) { + super(); + this.result = result; + this.message = message; + } + + public Result() { + + } +}