diff --git a/Dorm.java b/Dorm.java new file mode 100644 index 0000000..2274774 --- /dev/null +++ b/Dorm.java @@ -0,0 +1,53 @@ +package com.cya.entity; + +public class Dorm { + private int dormId; + private int dormBuildId; + private int dormNumber; + private String dormName; + private String dormType; + private String dormTel; + public int getDormId() { + return dormId; + } + public void setDormId(int dormId) { + this.dormId = dormId; + } + public int getDormBuildId() { + return dormBuildId; + } + public void setDormBuildId(int dormBuildId) { + this.dormBuildId = dormBuildId; + } + public int getDormNumber() { + return dormNumber; + } + public void setDormNumber(int dormNumber) { + this.dormNumber = dormNumber; + } + public String getDormName() { + return dormName; + } + public void setDormName(String dormName) { + this.dormName = dormName; + } + public String getDormType() { + return dormType; + } + public void setDormType(String dormType) { + this.dormType = dormType; + } + public String getDormTel() { + return dormTel; + } + public void setDormTel(String dormTel) { + this.dormTel = dormTel; + } + @Override + public String toString() { + return "Dorm [dormId=" + dormId + ", dormBuildId=" + dormBuildId + ", dormNumber=" + dormNumber + ", dormName=" + + dormName + ", dormType=" + dormType + ", dormTel=" + dormTel + "]"; + } + + +} diff --git a/DormBuild.java b/DormBuild.java new file mode 100644 index 0000000..7e0acf5 --- /dev/null +++ b/DormBuild.java @@ -0,0 +1,32 @@ +package com.cya.entity; + +public class DormBuild { + private int dormBuildId; + private String dormBuildName; + private String dormBuildDetail; + public int getDormBuildId() { + return dormBuildId; + } + public void setDormBuildId(int dormBuildId) { + this.dormBuildId = dormBuildId; + } + public String getDormBuildName() { + return dormBuildName; + } + public void setDormBuildName(String dormBuildName) { + this.dormBuildName = dormBuildName; + } + public String getDormBuildDetail() { + return dormBuildDetail; + } + public void setDormBuildDetail(String dormBuildDetail) { + this.dormBuildDetail = dormBuildDetail; + } + @Override + public String toString() { + return "DormBuild [dormBuildId=" + dormBuildId + ", dormBuildName=" + dormBuildName + ", dormBuildDetail=" + + dormBuildDetail + "]"; + } + + +} diff --git a/DormManage.java b/DormManage.java new file mode 100644 index 0000000..a4fdac8 --- /dev/null +++ b/DormManage.java @@ -0,0 +1,62 @@ +package com.cya.entity; + +public class DormManage { + private int dormManId; + private String userName; + private String password; + private int dormBuildId; + private String name; + private String sex; + private String tel; + public int getDormManId() { + return dormManId; + } + public void setDormManId(int dormManId) { + this.dormManId = dormManId; + } + public String getUserName() { + return userName; + } + public void setUserName(String userName) { + this.userName = userName; + } + public String getPassword() { + return password; + } + public void setPassword(String password) { + this.password = password; + } + public int getDormBuildId() { + return dormBuildId; + } + public void setDormBuildId(int dormBuildId) { + this.dormBuildId = dormBuildId; + } + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public String getSex() { + return sex; + } + public void setSex(String sex) { + this.sex = sex; + } + public String getTel() { + return tel; + } + public void setTel(String tel) { + this.tel = tel; + } + @Override + public String toString() { + return "DormManage [dormManId=" + dormManId + ", userName=" + userName + ", password=" + password + + ", dormBuildId=" + dormBuildId + ", name=" + name + ", sex=" + sex + ", tel=" + tel + "]"; + } + + + + +} diff --git a/IAdminService.java b/IAdminService.java new file mode 100644 index 0000000..ab7b86e --- /dev/null +++ b/IAdminService.java @@ -0,0 +1,130 @@ +package com.cya.service; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import com.cya.entity.Admin; +import com.cya.entity.DormBuild; +import com.cya.entity.DormManage; +import com.cya.entity.Notice; +import com.cya.entity.PageResult; +import com.cya.entity.PunchClock; +import com.cya.entity.PunchClockRecord; +import com.cya.entity.Record; +import com.cya.entity.Student; + +public interface IAdminService { + + /*-------------------------宿管---------------------------*/ + + public PageResult getDormManage(int pageNum, int pageSize,String filter,String key); + + public void addDormManage(DormManage dormManage); + + public DormManage getDormMangerById(int dormManId); + + public void updataDormManageById(DormManage dormManage); + + public void deleteDormManageById(Integer dormManId); + + /*-------------------------宿管---------------------------*/ + + /*-------------------------学生---------------------------*/ + + public PageResult getStudentManage(int pageNum, int pageSize,String filter,String key); + + public void addStudentManage(Student student); + + public Student getStudentMangerById(int studentId); + + public void updataStudentManageById(Student student); + + public void studentManagerDeleteById(int studentId); + + /*-------------------------学生---------------------------*/ + + + + /*-------------------------宿舍楼---------------------------*/ + + public PageResult getBuildManage(int pageNum, int pageSize,String filter,String key); + + public void addBuildManage(DormBuild dormBuild); + + public DormBuild getBuildMangerById(int dormBuildId); + + public void updataBuildManageById(DormBuild dormBuild); + + public void buildManagerDeleteById(Integer dormBuildId); + + public List getDormMangerByBuildId(Integer dormBuildId); + + public List getDormManage2(); + + public void addDormManageToBuild(Integer dormBuildId,Integer dormManId); + + public void removeaDormManageToBuild(Integer dormManId); + + /*-------------------------宿舍楼---------------------------*/ + + + + /*-------------------------考勤---------------------------*/ + + public PageResult getRecordManage(int pageNum, int pageSize,String filter,String key); + + public void recordManagerDeleteById(Integer recordId); + /*-------------------------考勤---------------------------*/ + + + /*-------------------------公告---------------------------*/ + + public PageResult getNoticeManage(Integer pageNum,Integer pageSize,String filter, String key); + + public void addNoticeManage(Notice notice); + + public Notice getNoticeMangerById(Integer noticeId); + + public void updataNoticeManageById(Notice notice); + + public void noticeManagerDeleteById(Integer noticeId); + + /*-------------------------公告---------------------------*/ + + /*-------------------------我的---------------------------*/ + + public Admin getMyMsgById(Integer adminId); + + public void updateMyMsgById(Admin admin); + + public void updatePsd(Admin admin); + + /*-------------------------我的---------------------------*/ + + + + /*-------------------------打卡---------------------------*/ + + public PageResult getPunchClockManage(int pageNum, int pageSize,String filter,String key); + + public void addPunchClockManageMsg(PunchClock punchClock); + + public PunchClock getPunchClockMangerById(String id); + + public void updataPunchClockManageMsgById(PunchClock punchClock); + + public void punchClockManagerDeleteById(String id); + + public List getStudentMsg(); + + public void insertIntoPunchClockRecord(PunchClockRecord punchClockRecord); + + public void updateIntoPunchClockRecordById(PunchClock punchClock); + + public void deletePunchClockRecordById(String id); + + /*-------------------------打卡---------------------------*/ + + +} diff --git a/IDormManageService.java b/IDormManageService.java new file mode 100644 index 0000000..2f725b1 --- /dev/null +++ b/IDormManageService.java @@ -0,0 +1,47 @@ +package com.cya.service; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import com.cya.entity.Admin; +import com.cya.entity.DormManage; +import com.cya.entity.Notice; +import com.cya.entity.PageResult; +import com.cya.entity.Record; +import com.cya.entity.Student; + +public interface IDormManageService { + + public PageResult getStudentMsgByBuildId(int pageNum, int pageSize,String filter,String key,Integer dormBuildId); + + public void studentMsgDeleteById(int studentId); + + public PageResult getRecordMsg(int pageNum, int pageSize,String filter,String key,Integer dormBuildId); + + public Record getRecordById(int recordId); + + public void updataRecordMsg(Record record); + + public void addRecordMsg(Record record); + + public void recordManagerDeleteById1(Integer recordId); + +/*-------------------------我的---------------------------*/ + + public DormManage dorm_getMyMsgById(Integer dormManId); + + public void dorm_updateMyMsgById(DormManage dormManage); + + public void dorm_updatePsd(DormManage dormManage); + + /*-------------------------我的---------------------------*/ + + public List getNoticeAll(); + + /*-------------------------打卡---------------------------*/ + + public PageResult getPunchClockRecordMsgByDormBuildId(int pageNum, int pageSize,String filter,String key,Integer dormBuildId); + + /*-------------------------打卡---------------------------*/ +} diff --git a/ILoginService.java b/ILoginService.java new file mode 100644 index 0000000..18ae5ea --- /dev/null +++ b/ILoginService.java @@ -0,0 +1,10 @@ +package com.cya.service; + +import java.util.List; + +import com.cya.entity.Login; + +public interface ILoginService { + + public List login(Login login); +} diff --git a/IStudentService.java b/IStudentService.java new file mode 100644 index 0000000..4b87e0d --- /dev/null +++ b/IStudentService.java @@ -0,0 +1,25 @@ +package com.cya.service; + +import org.apache.ibatis.annotations.Param; + +import com.cya.entity.PageResult; +import com.cya.entity.PunchClockRecord; +import com.cya.entity.Student; + +public interface IStudentService { + + public PageResult getRecordMMsgByStuNum(Integer pageNum,Integer pageSize,String filter, String key,String studentNumber); + + public Student student_getMyMsgById(Integer studentId); + + public void student_updateMyMsgById(Student student); + + public void student_updatePsd(Student student); + + public PageResult getPunchClockRecordMsgByStuNum(Integer pageNum,Integer pageSize,String filter, String key,String studentNumber); + + public PunchClockRecord getPunckColcokRecordById(Integer id); + + public void updataPunchClockRecordMsg(PunchClockRecord punchClockRecord); + +} 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() { + + } +}