Compare commits

..

36 Commits

Author SHA1 Message Date
pco4bax5y ceb24dc7d1 添加dormitory.sql
2 years ago
pco4bax5y 3c63e54af2 添加log4j.properties
2 years ago
pco4bax5y a2fe45dc2b 添加db.properties
2 years ago
pco4bax5y 4ed43eea78 添加applicationContext.xml
2 years ago
pco4bax5y 53bac722df 添加Interceptor文件
2 years ago
pco4bax5y 6be73c113f 添加VisitorDao.xml
2 years ago
pco4bax5y 1ab0d04ee1 添加添加VisitorDao.java
2 years ago
pco4bax5y d535d5b796 添加StudentDao.xml
2 years ago
pco4bax5y 9949ed6c35 Delete 'src/cn/edu/hactcm/dao/StudentDao.xml'
2 years ago
pco4bax5y d190bb3a5a 添加StudentCleanDao.xml
2 years ago
pco4bax5y 2cf5ad1e17 添加StudentDao.java
2 years ago
pco4bax5y a33dfcee9e 添加StudentCleanDao.xml
2 years ago
pco4bax5y 02b2de93b1 添加StudentCleanDao.java
2 years ago
pco4bax5y dec8652a3c 添加DormRepairDao.xml
2 years ago
pco4bax5y 4414728613 添加DormRepairDao.java
2 years ago
pco4bax5y 4890d99d71 添加DormitoryDao.xml
2 years ago
pco4bax5y 6e0be44ba9 添加DormitoryDao.java
2 years ago
pco4bax5y 4090691074 添加DormCleanDao.xml
2 years ago
pco4bax5y d4743b36a1 添加DormCleanDao.java
2 years ago
pco4bax5y 96fe719298 添加ClassDao.xml
2 years ago
pco4bax5y 395f85751e 添加ClassDao.java
2 years ago
pco4bax5y 29644391bc 添加AdminDao.xml
2 years ago
pco4bax5y 2154570767 ADD file via upload
2 years ago
pco4bax5y 45e4b43e8c Delete 'src/cn/edu/hactcm/dao'
2 years ago
pco4bax5y 41778ff0ab 添加AdminDao.java
2 years ago
pco4bax5y 9c294d2b22 添加excel文件
2 years ago
pco4bax5y 8f68a9f899 添加xcity文件
2 years ago
pco4bax5y ea612e98cf 添加admin文件
2 years ago
pco4bax5y b444a8db94 添加login
2 years ago
pco4bax5y 8c30b23729 ADD file via upload
2 years ago
pco4bax5y 87d59c26d2 ADD file via upload
2 years ago
pco4bax5y 21d81e743a ADD file via upload
2 years ago
pco4bax5y a598a43cb9 添加index文件
2 years ago
pco4bax5y e2a18dc669 ADD file via upload
2 years ago
pco4bax5y 817d8b6a2f Delete 'web/js'
2 years ago
pco4bax5y c7c4bfb4e9 Add js
2 years ago

@ -0,0 +1,247 @@
/*
Navicat MySQL Data Transfer
Designer Joyrocky
Source Server :
Source Server Version : 50725
Source Host : localhost:3306
Source Database : dormitory
Target Server Type : MYSQL
Target Server Version : 50725
File Encoding : 65001
Date: 2019-07-06 18:49:39
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `d_admin`
-- ----------------------------
DROP TABLE IF EXISTS `d_admin`;
CREATE TABLE `d_admin` (
`a_id` int(11) NOT NULL AUTO_INCREMENT,
`a_username` varchar(20) NOT NULL,
`a_password` varchar(50) NOT NULL,
`a_name` varchar(20) DEFAULT NULL,
`a_phone` bigint(20) DEFAULT NULL,
`a_power` varchar(20) DEFAULT NULL,
`a_describe` varchar(40) DEFAULT NULL,
PRIMARY KEY (`a_id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of d_admin
-- ----------------------------
INSERT INTO `d_admin` VALUES ('1', 'zxk', '696E25FDACEE8106BC5232AFC69155D6', '周荀凯', '138138138', '1', '');
INSERT INTO `d_admin` VALUES ('2', 'zj', '696E25FDACEE8106BC5232AFC69155D6', '张杰', '138138138', '2', '');
INSERT INTO `d_admin` VALUES ('3', 'zh', '696E25FDACEE8106BC5232AFC69155D6', '张欢', '138138138', '1', '');
INSERT INTO `d_admin` VALUES ('4', 'zk', '696E25FDACEE8106BC5232AFC69155D6', '赵凯', '138138138', '2', '');
INSERT INTO `d_admin` VALUES ('5', 'ywj', '696E25FDACEE8106BC5232AFC69155D6', '杨雯雯', '138138138', '1', '');
INSERT INTO `d_admin` VALUES ('6', 'wh', '696E25FDACEE8106BC5232AFC69155D6', '王皓', '138138138', '1', '');
INSERT INTO `d_admin` VALUES ('7', 'zw', '696E25FDACEE8106BC5232AFC69155D6', '张伟', '138138138', '2', '');
INSERT INTO `d_admin` VALUES ('8', 'zj', '696E25FDACEE8106BC5232AFC69155D6', '赵佳', '138138138', '2', '');
INSERT INTO `d_admin` VALUES ('9', 'wf', '696E25FDACEE8106BC5232AFC69155D6', '王凡', '138138138', '1', '');
INSERT INTO `d_admin` VALUES ('10', 'zn', '696E25FDACEE8106BC5232AFC69155D6', '张娜', '138138138', '1', '');
INSERT INTO `d_admin` VALUES ('11', 'jzh', '696E25FDACEE8106BC5232AFC69155D6', '蒋子华', '138138138', '2', '');
INSERT INTO `d_admin` VALUES ('12', 'xl', '696E25FDACEE8106BC5232AFC69155D6', '薛磊', '138138138', '2', '');
-- ----------------------------
-- Table structure for `d_class`
-- ----------------------------
DROP TABLE IF EXISTS `d_class`;
CREATE TABLE `d_class` (
`c_id` int(11) NOT NULL AUTO_INCREMENT,
`c_classid` int(11) NOT NULL,
`c_classname` varchar(30) DEFAULT NULL,
`c_counsellor` varchar(30) DEFAULT NULL,
PRIMARY KEY (`c_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of d_class
-- ----------------------------
INSERT INTO `d_class` VALUES ('1', '141', '生物', '徐超');
INSERT INTO `d_class` VALUES ('2', '151', '应化', '刘晨');
INSERT INTO `d_class` VALUES ('3', '142', '土木', '孙玲');
INSERT INTO `d_class` VALUES ('4', '161', '物流', '刘阳');
INSERT INTO `d_class` VALUES ('5', '153', '数师', '张宇');
INSERT INTO `d_class` VALUES ('6', '162', '物流', '刘阳');
INSERT INTO `d_class` VALUES ('7', '171', '自动化', '周涵涵');
INSERT INTO `d_class` VALUES ('8', '154', '土木', '孙玲');
INSERT INTO `d_class` VALUES ('9', '151', '纺织', '赵凯');
INSERT INTO `d_class` VALUES ('10', '153', '金融', '刘培');
-- ----------------------------
-- Table structure for `d_dormgrade`
-- ----------------------------
DROP TABLE IF EXISTS `d_dormgrade`;
CREATE TABLE `d_dormgrade` (
`g_id` int(11) NOT NULL AUTO_INCREMENT,
`d_id` int(11) NOT NULL,
`d_dormbuilding` varchar(20) DEFAULT NULL,
`d_grade` int(11) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`g_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of d_dormgrade
-- ----------------------------
INSERT INTO `d_dormgrade` VALUES ('1', '301', '24号楼', '6', '2019-04-25 10:51:17', '2019-05-12 17:28:38');
INSERT INTO `d_dormgrade` VALUES ('2', '302', '24号楼', '7', '2019-05-01 16:36:47', '2019-05-01 16:36:55');
INSERT INTO `d_dormgrade` VALUES ('3', '322', '24号楼', '8', '2019-05-04 16:37:42', '2019-05-04 16:37:47');
INSERT INTO `d_dormgrade` VALUES ('4', '602', '23号楼', '7', '2019-05-08 16:38:25', '2019-05-08 16:38:30');
INSERT INTO `d_dormgrade` VALUES ('5', '112', '22号楼', '7', '2019-05-12 16:38:53', '2019-05-12 16:39:00');
INSERT INTO `d_dormgrade` VALUES ('6', '222', '27号楼', '9', '2019-05-09 16:39:37', '2019-05-09 16:39:41');
INSERT INTO `d_dormgrade` VALUES ('7', '213', '27号楼', '8', '2019-05-10 16:40:02', '2019-05-10 16:40:08');
-- ----------------------------
-- Table structure for `d_dormitoryinfo`
-- ----------------------------
DROP TABLE IF EXISTS `d_dormitoryinfo`;
CREATE TABLE `d_dormitoryinfo` (
`d_id` int(11) NOT NULL AUTO_INCREMENT,
`s_dormitoryid` int(11) NOT NULL,
`d_dormbuilding` varchar(20) DEFAULT NULL,
`d_bedtotal` varchar(20) DEFAULT NULL,
`d_bed` varchar(20) DEFAULT NULL,
`a_name` varchar(20) DEFAULT NULL,
PRIMARY KEY (`d_id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of d_dormitoryinfo
-- ----------------------------
INSERT INTO `d_dormitoryinfo` VALUES ('1', '311', '24号楼', '4', '3', '周荀凯');
INSERT INTO `d_dormitoryinfo` VALUES ('2', '322', '24号楼', '4', '4', '周荀凯');
INSERT INTO `d_dormitoryinfo` VALUES ('3', '601', '23号楼', '6', '6', '张杰');
INSERT INTO `d_dormitoryinfo` VALUES ('4', '602', '23号楼', '6', '5', '张杰');
INSERT INTO `d_dormitoryinfo` VALUES ('5', '111', '22号楼', '4', '4', '杨雯雯');
INSERT INTO `d_dormitoryinfo` VALUES ('6', '112', '22号楼', '4', '3', '杨雯雯');
INSERT INTO `d_dormitoryinfo` VALUES ('7', '222', '27号楼', '6', '6', '张伟');
INSERT INTO `d_dormitoryinfo` VALUES ('8', '213', '27号楼', '4', '4', '张伟');
INSERT INTO `d_dormitoryinfo` VALUES ('9', '312', '26号楼', '6', '6', '薛磊');
INSERT INTO `d_dormitoryinfo` VALUES ('10', '313', '22号楼', '4', '4', '张磊');
INSERT INTO `d_dormitoryinfo` VALUES ('11', '323', '22号楼', '6', '5', '张磊');
INSERT INTO `d_dormitoryinfo` VALUES ('12', '301', '24号楼', '6', '6', '周荀凯');
INSERT INTO `d_dormitoryinfo` VALUES ('13', '302', '24号楼', '6', '6', '周荀凯');
INSERT INTO `d_dormitoryinfo` VALUES ('14', '423', '29号楼', '4', '3', '郭浩然');
-- ----------------------------
-- Table structure for `d_dormrepair`
-- ----------------------------
DROP TABLE IF EXISTS `d_dormrepair`;
CREATE TABLE `d_dormrepair` (
`r_id` int(11) NOT NULL AUTO_INCREMENT,
`d_id` int(11) NOT NULL,
`d_dormbuilding` varchar(20) NOT NULL,
`r_name` varchar(20) DEFAULT NULL,
`reason` varchar(50) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`r_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of d_dormrepair
-- ----------------------------
INSERT INTO `d_dormrepair` VALUES ('1', '301', '24号楼', '王涛', '水池', '2019-05-13 22:39:58', '2019-05-13 22:39:58');
INSERT INTO `d_dormrepair` VALUES ('2', '322', '24号楼', '王涛', '灯管', '2019-05-11 16:29:20', '2019-05-14 16:29:35');
INSERT INTO `d_dormrepair` VALUES ('3', '601', '23号楼', '冯军', '水龙头', '2019-05-15 16:31:14', '2019-05-14 16:31:20');
INSERT INTO `d_dormrepair` VALUES ('4', '601', '23号楼', '冯军', '插孔', '2019-05-15 16:31:56', '2019-05-15 16:32:04');
INSERT INTO `d_dormrepair` VALUES ('5', '213', '27号楼', '冯军', '排风扇', '2019-05-18 16:32:54', '2019-05-14 16:33:00');
INSERT INTO `d_dormrepair` VALUES ('6', '312', '26号楼', '彭建国', '空调', '2019-05-20 16:33:56', '2019-05-20 16:34:01');
-- ----------------------------
-- Table structure for `d_stgrade`
-- ----------------------------
DROP TABLE IF EXISTS `d_stgrade`;
CREATE TABLE `d_stgrade` (
`g_id` int(11) NOT NULL AUTO_INCREMENT,
`s_studentid` int(11) NOT NULL,
`s_name` varchar(20) DEFAULT NULL,
`s_grade` int(11) DEFAULT NULL,
`s_classid` int(11) DEFAULT NULL,
`s_dormitoryid` int(11) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`g_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of d_stgrade
-- ----------------------------
INSERT INTO `d_stgrade` VALUES ('1', '1413032001', '张杰', '6', '141', '301', '2019-04-26 09:56:51', '2019-04-26 11:02:13');
INSERT INTO `d_stgrade` VALUES ('2', '1413032002', '赵凯', '7', '141', '301', '2019-05-01 17:00:05', '2019-05-01 17:00:13');
INSERT INTO `d_stgrade` VALUES ('3', '1413032003', '许文文', '6', '141', '301', '2019-05-06 17:00:54', '2019-05-06 17:01:01');
INSERT INTO `d_stgrade` VALUES ('4', '1413032003', '许文文', '7', '141', '301', '2019-05-16 17:01:33', '2019-05-16 17:02:15');
INSERT INTO `d_stgrade` VALUES ('5', '1413032004', '王浩', '7', '141', '301', '2019-05-10 17:03:03', '2019-05-10 17:03:09');
INSERT INTO `d_stgrade` VALUES ('6', '1413032005', '张伟', '8', '141', '301', '2019-05-14 17:03:53', '2019-05-14 17:03:56');
INSERT INTO `d_stgrade` VALUES ('7', '1513112412', '赵跃', '9', '151', '112', '2019-05-08 17:05:04', '2019-05-08 17:05:07');
INSERT INTO `d_stgrade` VALUES ('8', '1513112412', '赵跃', '9', '151', '112', '2019-05-17 17:05:34', '2019-05-17 17:05:39');
INSERT INTO `d_stgrade` VALUES ('9', '1513122418', '田野', '8', '151', '213', '2019-05-15 17:06:28', '2019-05-15 17:06:35');
INSERT INTO `d_stgrade` VALUES ('10', '1513122419', '张嘉佳', '8', '151', '213', '2019-05-15 17:07:09', '2019-05-15 17:07:13');
-- ----------------------------
-- Table structure for `d_student`
-- ----------------------------
DROP TABLE IF EXISTS `d_student`;
CREATE TABLE `d_student` (
`s_id` int(11) NOT NULL AUTO_INCREMENT,
`s_studentid` int(11) NOT NULL,
`s_name` varchar(20) DEFAULT NULL,
`s_sex` varchar(20) DEFAULT NULL,
`s_age` int(11) DEFAULT NULL,
`s_phone` bigint(20) DEFAULT NULL,
`s_classid` int(11) NOT NULL,
`s_classname` varchar(20) DEFAULT NULL,
`s_dormitoryid` int(11) NOT NULL,
PRIMARY KEY (`s_id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of d_student
-- ----------------------------
INSERT INTO `d_student` VALUES ('1', '1413032001', '张杰', '', '22', '138138138', '141', '生物', '301');
INSERT INTO `d_student` VALUES ('2', '1413032002', '赵凯', '', '22', '138138138', '141', '生物', '301');
INSERT INTO `d_student` VALUES ('3', '1413032003', '许文文', '', '21', '138138138', '141', '生物', '301');
INSERT INTO `d_student` VALUES ('4', '1413032004', '王浩', '', '22', '138138138', '141', '生物', '301');
INSERT INTO `d_student` VALUES ('5', '1413032005', '张伟', '', '22', '138138138', '141', '土木', '301');
INSERT INTO `d_student` VALUES ('6', '1413032006', '郭顶', '', '21', '138138138', '141', '土木', '301');
INSERT INTO `d_student` VALUES ('7', '1513112411', '曹原', '', '20', '138138138', '151', '应化', '112');
INSERT INTO `d_student` VALUES ('8', '1513112412', '赵跃', '', '21', '138138138', '151', '纺织', '112');
INSERT INTO `d_student` VALUES ('9', '1513112413', '孙畅', '', '21', '138138138', '151', '纺织', '112');
INSERT INTO `d_student` VALUES ('10', '1513122417', '周帆', '', '21', '138138138', '161', '物流', '213');
INSERT INTO `d_student` VALUES ('11', '1513122418', '田野', '', '21', '138138138', '153', '数师', '213');
INSERT INTO `d_student` VALUES ('12', '1513122419', '张嘉佳', '', '20', '138138138', '153', '金融', '213');
INSERT INTO `d_student` VALUES ('13', '1513122420', '陈昊', '', '21', '138138138', '153', '金融', '213');
-- ----------------------------
-- Table structure for `d_visitor`
-- ----------------------------
DROP TABLE IF EXISTS `d_visitor`;
CREATE TABLE `d_visitor` (
`v_id` int(11) NOT NULL AUTO_INCREMENT,
`v_name` varchar(20) DEFAULT NULL,
`v_phone` bigint(20) DEFAULT NULL,
`v_dormitoryid` int(11) DEFAULT NULL,
`v_dormbuilding` varchar(20) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
PRIMARY KEY (`v_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of d_visitor
-- ----------------------------
INSERT INTO `d_visitor` VALUES ('1', '郑杰', '138138138', '301', '24号楼', '2019-05-14 13:26:13');
INSERT INTO `d_visitor` VALUES ('2', '李博', '138138138', '322', '24号楼', '2019-05-12 19:36:23');
INSERT INTO `d_visitor` VALUES ('3', '张盈盈', '138138138', '601', '23号楼', '2019-05-13 19:37:11');
INSERT INTO `d_visitor` VALUES ('4', '王涛', '138138138', '111', '22号楼', '2019-05-15 19:37:46');
INSERT INTO `d_visitor` VALUES ('5', '胡浩', '138138138', '222', '27号楼', '2019-05-16 19:38:27');
INSERT INTO `d_visitor` VALUES ('6', '陈昊', '138138138', '213', '27号楼', '2019-05-18 19:39:03');
INSERT INTO `d_visitor` VALUES ('7', '刘军', '138138138', '213', '27号楼', '2019-05-20 19:39:42');
INSERT INTO `d_visitor` VALUES ('8', '黄智', '138138138', '312', '26号楼', '2019-05-22 19:46:38');
INSERT INTO `d_visitor` VALUES ('9', '郑杰', '123123123', '311', '24号楼', '2019-05-16 16:59:06');

@ -1,57 +0,0 @@
package cn.edu.hactcm.util;
import java.security.MessageDigest;
public class MD5Util {
private static String byteArrayToHexString(byte b[]) {
StringBuffer resultSb = new StringBuffer();
for (int i = 0; i < b.length; i++)
resultSb.append(byteToHexString(b[i]));
return resultSb.toString();
}
private static String byteToHexString(byte b) {
int n = b;
if (n < 0)
n += 256;
int d1 = n / 16;
int d2 = n % 16;
return hexDigits[d1] + hexDigits[d2];
}
/**
* MD5
*
* @param origin
* @param charsetname
* @return
*/
private static String MD5Encode(String origin, String charsetname) {
String resultString = null;
try {
resultString = new String(origin);
MessageDigest md = MessageDigest.getInstance("MD5");
if (charsetname == null || "".equals(charsetname))
resultString = byteArrayToHexString(md.digest(resultString.getBytes()));
else
resultString = byteArrayToHexString(md.digest(resultString.getBytes(charsetname)));
} catch (Exception exception) {
}
return resultString.toUpperCase();
}
public static String MD5EncodeUtf8(String origin) {
//盐值Salt加密
//origin = origin + PropertiesUtil.getProperty("password.salt", "");
return MD5Encode(origin, "utf-8");
}
private static final String hexDigits[] = {"0", "1", "2", "3", "4", "5",
"6", "7", "8", "9", "a", "b", "c", "d", "e", "f"};
}

@ -1,46 +0,0 @@
package cn.edu.hactcm.util;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;
public class PropertiesUtil {
private static Logger logger = LoggerFactory.getLogger(PropertiesUtil.class);
private static Properties props;
static {
String fileName = "mmall.properties";
props = new Properties();
try {
props.load(new InputStreamReader(PropertiesUtil.class.getClassLoader().getResourceAsStream(fileName),"UTF-8"));
} catch (IOException e) {
logger.error("配置文件读取异常",e);
}
}
public static String getProperty(String key){
String value = props.getProperty(key.trim());
if(StringUtils.isBlank(value)){
return null;
}
return value.trim();
}
public static String getProperty(String key,String defaultValue){
String value = props.getProperty(key.trim());
if(StringUtils.isBlank(value)){
value = defaultValue;
}
return value.trim();
}
}

@ -1,22 +0,0 @@
package cn.edu.hactcm.service;
import cn.edu.hactcm.po.Admin;
import cn.edu.hactcm.po.PageInfo;
import java.util.List;
/**
* Service
*/
public interface AdminService {
// 通过账号和密码查询用户
public Admin findAdmin(Admin admin);
//找到所有所有数据
public List<Admin> getAll();
//分页查询
public PageInfo<Admin> findPageInfo(String a_username, String a_describe,Integer a_id, Integer pageIndex, Integer pageSize);
public int addAdmin(Admin admin); //添加管理员信息
public int deleteAdmin(Integer a_id); //删除管理员信息
public int updateAdmin(Admin admin); //修改管理员信息
public Admin findAdminById(Integer a_id);
}

@ -1,21 +0,0 @@
package cn.edu.hactcm.service;
import cn.edu.hactcm.po.Class;
import cn.edu.hactcm.po.PageInfo;
import java.util.List;
/**
* Service
*/
public interface ClassService {
//分页查询
public PageInfo<Class> findPageInfo(String c_classname, String c_counsellor, Integer c_classid, Integer pageIndex, Integer pageSize);
public int deleteClass(Integer c_id); //删除班级信息
public int addClass(Class ucalss); //添加班级信息
public Class findClassById(Integer c_id);
public int updateClass(Class uclass); //修改班级信息
public List<Class> findClassStudent(Class uclass);//查询班级人员信息
public List<Class> getAll();
}

@ -1,17 +0,0 @@
package cn.edu.hactcm.service;
import cn.edu.hactcm.po.DormClean;
import cn.edu.hactcm.po.PageInfo;
import java.util.List;
public interface DormCleanService {
//分页查询
public PageInfo<DormClean> findPageInfo(Integer d_id, String d_dormbuilding, Integer pageIndex, Integer pageSize);
public int addDormClean(DormClean dormclean); //添加宿舍信息
public int deleteDormClean(Integer g_id); //删除宿舍信息
public int updateDormClean(DormClean dormclean); //修改宿舍信息
public DormClean findDormCleanById(Integer g_id);
public List<DormClean> getAll();
}

@ -1,18 +0,0 @@
package cn.edu.hactcm.service;
import cn.edu.hactcm.po.DormRepair;
import cn.edu.hactcm.po.PageInfo;
import java.util.List;
public interface DormRepairService {
//分页查询
public PageInfo<DormRepair> findPageInfo(Integer d_id, String d_dormbuilding, Integer pageIndex, Integer pageSize);
public int addDormRepair(DormRepair dormrepair); //添加宿舍信息
public int deleteDormRepair(Integer r_id); //删除宿舍信息
public int updateDormRepair(DormRepair dormrepair); //修改宿舍信息
public DormRepair findDormRepairById(Integer r_id);
public List<DormRepair> getAll();
}

@ -1,24 +0,0 @@
package cn.edu.hactcm.service;
import cn.edu.hactcm.po.Dormitory;
import cn.edu.hactcm.po.PageInfo;
import java.util.List;
/**
* Service
*/
public interface DormitoryService {
//分页查询
public PageInfo<Dormitory> findPageInfo(String a_name, Integer s_dormitoryid,String d_dormbuilding, Integer pageIndex, Integer pageSize);
public int addDormitory(Dormitory dormitory); //添加宿舍信息
public int deleteDormitory(Integer d_id); //删除宿舍信息
public int updateDormitory(Dormitory dormitory); //修改宿舍信息
public Dormitory findDormitoryById(Integer d_id);
public List<Dormitory> findDormitoryStudent(Dormitory dormitory);//查询宿舍人员信息
public List<Dormitory> getAll();
}

@ -1,17 +0,0 @@
package cn.edu.hactcm.service;
import cn.edu.hactcm.po.PageInfo;
import cn.edu.hactcm.po.StudentClean;
import java.util.List;
public interface StudentCleanService {
//分页查询
public PageInfo<StudentClean> findPageInfo(Integer s_studentid, String s_name, Integer s_dormitoryid, Integer pageIndex, Integer pageSize);
public int addStudentClean(StudentClean studentclean); //添加宿舍信息
public int deleteStudentClean(Integer g_id); //删除宿舍信息
public int updateStudentClean(StudentClean studentclean); //修改宿舍信息
public StudentClean findStudentCleanById(Integer g_id);
public List<StudentClean> getAll();
}

@ -1,22 +0,0 @@
package cn.edu.hactcm.service;
import cn.edu.hactcm.po.PageInfo;
import cn.edu.hactcm.po.Student;
import java.util.List;
/**
* Service
*/
public interface StudentService {
//分页查询
public PageInfo<Student> findPageInfo(String s_name,Integer s_studentid,Integer s_classid,
String s_classname, Integer pageIndex, Integer pageSize);
public int deleteStudent(Integer s_id); //通过id删除学生信息
public int addStudent(Student student); //添加学生信息
public int updateStudent(Student student); //修改学生信息
public Student findStudentById(Integer s_id);
public List<Student> getAll();
}

@ -1,13 +0,0 @@
package cn.edu.hactcm.service;
import cn.edu.hactcm.po.PageInfo;
import cn.edu.hactcm.po.Visitor;
import java.util.List;
public interface VisitorService {
//分页查询
public PageInfo<Visitor> findPageInfo(String v_name, Integer v_phone , Integer pageIndex, Integer pageSize);
public int addVisitor(Visitor visitor); //添加访客信息
public List<Visitor> getAll();
}

@ -1,79 +0,0 @@
package com.itheima.service.impl;
import com.itheima.dao.AdminDao;
import com.itheima.po.Admin;
import com.itheima.po.PageInfo;
import com.itheima.service.AdminService;
import com.itheima.util.MD5Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Service
*/
@Service("adminService")
@Transactional
public class AdminServiceImpl implements AdminService {
// 注入UserDao
@Autowired
private AdminDao adminDao;
//管理登陆查询
@Override
public Admin findAdmin(Admin admin) {
Admin a = adminDao.findAdmin(admin);
return a;
}
@Override
public List<Admin> getAll(){
List<Admin> adminList = adminDao.getAll();
return adminList;
}
@Override
public PageInfo<Admin> findPageInfo(String a_username, String a_describe,Integer a_id,Integer pageIndex, Integer pageSize) {
PageInfo<Admin> pi = new PageInfo<Admin>();
pi.setPageIndex(pageIndex);
pi.setPageSize(pageSize);
//获取总条数
Integer totalCount = adminDao.totalCount(a_username,a_describe,a_id);
if (totalCount>0){
pi.setTotalCount(totalCount);
//每一页显示管理员信息数
//currentPage = (pageIndex-1)*pageSize 当前页码数减1*最大条数=开始行数
List<Admin> adminList = adminDao.getAdminList(a_username,a_describe,a_id,
(pi.getPageIndex()-1)*pi.getPageSize(),pi.getPageSize());
pi.setList(adminList);
}
return pi;
}
//添加管理员信息
@Override
public int addAdmin(Admin admin) {
return adminDao.addAdmin(admin);
}
//通过id删除管理员信息
@Override
public int deleteAdmin(Integer a_id) {
return adminDao.deleteAdmin(a_id);
}
//修改管理员信息
@Override
public int updateAdmin(Admin admin) {
return adminDao.updateAdmin(admin);
}
@Override
public Admin findAdminById (Integer a_id){
Admin a = adminDao.findAdminById(a_id);
return a;
}
}

@ -1,79 +0,0 @@
package com.itheima.service.impl;
import com.itheima.dao.ClassDao;
import com.itheima.po.Class;
import com.itheima.po.PageInfo;
import com.itheima.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Service
*/
@Service("classService")
@Transactional
public class ClassServiceImpl implements ClassService {
// classDao
@Autowired
private ClassDao classDao;
//分页查询
@Override
public PageInfo<Class> findPageInfo(String c_classname, String c_counsellor, Integer c_classid, Integer pageIndex, Integer pageSize) {
PageInfo<Class> pi = new PageInfo<Class>();
pi.setPageIndex(pageIndex);
pi.setPageSize(pageSize);
//获取总条数
Integer totalCount = classDao.totalCount(c_classname,c_classid,c_counsellor);
if (totalCount>0){
pi.setTotalCount(totalCount);
//每一页显示班级信息数
//currentPage = (pageIndex-1)*pageSize 当前页码数减1*最大条数=开始行数
List<Class> classList = classDao.getClassList(c_classname,c_classid,c_counsellor,
(pi.getPageIndex()-1)*pi.getPageSize(),pi.getPageSize());
pi.setList(classList);
}
return pi;
}
@Override
public List<Class> getAll(){
List<Class> classList = classDao.getAll();
return classList;
}
//通过id删除班级信息
@Override
public int deleteClass(Integer c_id) {
return classDao.deleteClass(c_id);
}
//添加班级信息
@Override
public int addClass(Class uclass) {
return classDao.addClass(uclass);
}
@Override
public Class findClassById (Integer c_id){
Class c = classDao.findClassById(c_id);
return c;
}
//修改班级信息
@Override
public int updateClass(Class uclass) {
return classDao.updateClass(uclass);
}
//查询宿舍人员信息
@Override
public List<Class> findClassStudent(Class uclass) {
List<Class> c = classDao.findClassStudent(uclass);
return c;
}
}

@ -1,77 +0,0 @@
package com.itheima.service.impl;
import com.itheima.dao.DormCleanDao;
import com.itheima.po.DormClean;
import com.itheima.po.PageInfo;
import com.itheima.service.DormCleanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* @program: dormitorySystem
* @description: 宿
* @author: Joyrocky
* @create: 2019-04-24 15:19
**/
@Service("dormCleanService")
@Transactional
public class DormCleanServiceImpl implements DormCleanService {
// classDao
@Autowired
private DormCleanDao dormCleanDao;
//分页查询
@Override
public PageInfo<DormClean> findPageInfo(Integer d_id, String d_dormbuilding, Integer pageIndex, Integer pageSize) {
PageInfo<DormClean> pi = new PageInfo<DormClean>();
pi.setPageIndex(pageIndex);
pi.setPageSize(pageSize);
//获取总条数
Integer totalCount = dormCleanDao.totalCount(d_id,d_dormbuilding);
if (totalCount>0){
pi.setTotalCount(totalCount);
//每一页显示宿舍信息数
//currentPage = (pageIndex-1)*pageSize 当前页码数减1*最大条数=开始行数
List<DormClean> dormCleanList = dormCleanDao.getDormCleanList(d_id,d_dormbuilding,
(pi.getPageIndex()-1)*pi.getPageSize(),pi.getPageSize());
pi.setList(dormCleanList);
}
return pi;
}
@Override
public List<DormClean> getAll(){
List<DormClean> dormCleanList = dormCleanDao.getAll();
return dormCleanList;
}
//添加宿舍卫生信息
@Override
public int addDormClean(DormClean dormclean) {
return dormCleanDao.addDormClean(dormclean);
}
//通过id删除宿舍卫生信息
@Override
public int deleteDormClean(Integer g_id) {
return dormCleanDao.deleteDormClean(g_id);
}
//修改宿舍卫生信息
@Override
public int updateDormClean(DormClean dormclean) {
return dormCleanDao.updateDormClean(dormclean);
}
@Override
public DormClean findDormCleanById (Integer g_id){
DormClean d = dormCleanDao.findDormCleanById(g_id);
return d;
}
}

@ -1,77 +0,0 @@
package com.itheima.service.impl;
import com.itheima.dao.DormRepairDao;
import com.itheima.po.DormRepair;
import com.itheima.po.PageInfo;
import com.itheima.service.DormRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* @program: dormitorySystem
* @description:
* @author: Joyrocky
* @create: 2019-04-28 00:24
**/
@Service("dormRepairService")
@Transactional
public class DormRepairServiceImpl implements DormRepairService {
// classDao
@Autowired
private DormRepairDao dormRepairDao;
//分页查询
@Override
public PageInfo<DormRepair> findPageInfo(Integer d_id, String d_dormbuilding, Integer pageIndex, Integer pageSize) {
PageInfo<DormRepair> pi = new PageInfo<DormRepair>();
pi.setPageIndex(pageIndex);
pi.setPageSize(pageSize);
//获取总条数
Integer totalCount = dormRepairDao.totalCount(d_id,d_dormbuilding);
if (totalCount>0){
pi.setTotalCount(totalCount);
//每一页显示宿舍信息数
//currentPage = (pageIndex-1)*pageSize 当前页码数减1*最大条数=开始行数
List<DormRepair> dormRepairList = dormRepairDao.getDormRepairList(d_id,d_dormbuilding,
(pi.getPageIndex()-1)*pi.getPageSize(),pi.getPageSize());
pi.setList(dormRepairList);
}
return pi;
}
@Override
public List<DormRepair> getAll(){
List<DormRepair> dormRepairList = dormRepairDao.getAll();
return dormRepairList;
}
//添加宿舍信息
@Override
public int addDormRepair(DormRepair dormrepair) {
return dormRepairDao.addDormRepair(dormrepair);
}
//通过id删除宿舍信息
@Override
public int deleteDormRepair(Integer r_id) {
return dormRepairDao.deleteDormRepair(r_id);
}
//修改宿舍信息
@Override
public int updateDormRepair(DormRepair dormrepair) {
return dormRepairDao.updateDormRepair(dormrepair);
}
@Override
public DormRepair findDormRepairById (Integer r_id){
DormRepair d = dormRepairDao.findDormRepairById(r_id);
return d;
}
}

@ -1,82 +0,0 @@
package com.itheima.service.impl;
import com.itheima.dao.DormitoryDao;
import com.itheima.po.Dormitory;
import com.itheima.po.PageInfo;
import com.itheima.service.DormitoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Service
*/
@Service("dormitoryService")
@Transactional
public class DormitoryServiceImpl implements DormitoryService {
// classDao
@Autowired
private DormitoryDao dormitoryDao;
//分页查询
@Override
public PageInfo<Dormitory> findPageInfo(String a_name, Integer s_dormitoryid,String d_dormbuilding, Integer pageIndex, Integer pageSize) {
PageInfo<Dormitory> pi = new PageInfo<Dormitory>();
pi.setPageIndex(pageIndex);
pi.setPageSize(pageSize);
//获取总条数
Integer totalCount = dormitoryDao.totalCount(a_name,s_dormitoryid,d_dormbuilding);
if (totalCount>0){
pi.setTotalCount(totalCount);
//每一页显示宿舍信息数
//currentPage = (pageIndex-1)*pageSize 当前页码数减1*最大条数=开始行数
List<Dormitory> dormitoryList = dormitoryDao.getDormitoryList(a_name,s_dormitoryid,d_dormbuilding,
(pi.getPageIndex()-1)*pi.getPageSize(),pi.getPageSize());
pi.setList(dormitoryList);
}
return pi;
}
@Override
public List<Dormitory> getAll(){
List<Dormitory> dormitoryList = dormitoryDao.getAll();
return dormitoryList;
}
//添加宿舍信息
@Override
public int addDormitory(Dormitory dormitory) {
return dormitoryDao.addDormitory(dormitory);
}
//通过id删除宿舍信息
@Override
public int deleteDormitory(Integer d_id) {
return dormitoryDao.deleteDormitory(d_id);
}
//修改宿舍信息
@Override
public int updateDormitory(Dormitory dormitory) {
return dormitoryDao.updateDormitory(dormitory);
}
@Override
public Dormitory findDormitoryById (Integer d_id){
Dormitory d = dormitoryDao.findDormitoryById(d_id);
return d;
}
//查询宿舍人员信息
@Override
public List<Dormitory> findDormitoryStudent(Dormitory dormitory) {
List<Dormitory> d = dormitoryDao.findDormitoryStudent(dormitory);
return d;
}
}

@ -1,77 +0,0 @@
package com.itheima.service.impl;
import com.itheima.dao.StudentCleanDao;
import com.itheima.po.PageInfo;
import com.itheima.po.StudentClean;
import com.itheima.service.StudentCleanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* @program: dormitorySystem
* @description:
* @author: Joyrocky
* @create: 2019-04-25 12:16
**/
@Service("studentCleanService")
@Transactional
public class StudentCleanServiceImpl implements StudentCleanService {
// classDao
@Autowired
private StudentCleanDao studentCleanDao;
//分页查询
@Override
public PageInfo<StudentClean> findPageInfo(Integer s_studentid, String s_name, Integer s_dormitoryid, Integer pageIndex, Integer pageSize) {
PageInfo<StudentClean> pi = new PageInfo<StudentClean>();
pi.setPageIndex(pageIndex);
pi.setPageSize(pageSize);
//获取总条数
Integer totalCount = studentCleanDao.totalCount(s_studentid,s_name,s_dormitoryid);
if (totalCount>0){
pi.setTotalCount(totalCount);
//每一页显示宿舍信息数
//currentPage = (pageIndex-1)*pageSize 当前页码数减1*最大条数=开始行数
List<StudentClean> studentCleanList = studentCleanDao.getStudentCleanList(s_studentid,s_name,s_dormitoryid,
(pi.getPageIndex()-1)*pi.getPageSize(),pi.getPageSize());
pi.setList(studentCleanList);
}
return pi;
}
@Override
public List<StudentClean> getAll(){
List<StudentClean> studentCleanList = studentCleanDao.getAll();
return studentCleanList;
}
//添加宿舍卫生信息
@Override
public int addStudentClean(StudentClean studentclean) {
return studentCleanDao.addStudentClean(studentclean);
}
//通过id删除宿舍卫生信息
@Override
public int deleteStudentClean(Integer g_id) {
return studentCleanDao.deleteStudentClean(g_id);
}
//修改宿舍卫生信息
@Override
public int updateStudentClean(StudentClean studentclean) {
return studentCleanDao.updateStudentClean(studentclean);
}
@Override
public StudentClean findStudentCleanById (Integer g_id){
StudentClean d = studentCleanDao.findStudentCleanById(g_id);
return d;
}
}

@ -1,72 +0,0 @@
package com.itheima.service.impl;
import com.itheima.dao.StudentDao;
import com.itheima.po.PageInfo;
import com.itheima.po.Student;
import com.itheima.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Service
*/
@Service("studentService")
@Transactional
public class StudentServiceImpl implements StudentService {
// 注入studentDao
@Autowired
private StudentDao studentDao;
//分页查询
@Override
public PageInfo<Student> findPageInfo(String s_name, Integer s_studentid,Integer s_classid,
String s_classname, Integer pageIndex, Integer pageSize) {
PageInfo<Student> pi = new PageInfo<Student>();
pi.setPageIndex(pageIndex);
pi.setPageSize(pageSize);
//获取总条数
Integer totalCount = studentDao.totalCount(s_name,s_studentid,s_classid,s_classname);
if (totalCount>0){
pi.setTotalCount(totalCount);
//每一页显示学生信息数
//currentPage = (pageIndex-1)*pageSize 当前页码数减1*最大条数=开始行数
List<Student> studentList = studentDao.getStudentList(s_name,s_studentid,s_classid,s_classname,
(pi.getPageIndex()-1)*pi.getPageSize(),pi.getPageSize());
pi.setList(studentList);
}
return pi;
}
@Override
public List<Student> getAll(){
List<Student> studentList = studentDao.getAll();
return studentList;
}
//通过id删除学生信息
@Override
public int deleteStudent(Integer s_id) {
return studentDao.deleteStudent(s_id);
}
//添加学生信息
@Override
public int addStudent(Student student) {
return studentDao.addStudent(student);
}
//修改学生信息
@Override
public int updateStudent(Student student) { return studentDao.updateStudent(student); }
@Override
public Student findStudentById (Integer s_id){
Student s = studentDao.findStudentById(s_id);
return s;
}
}

@ -1,58 +0,0 @@
package com.itheima.service.impl;
import com.itheima.dao.VisitorDao;
import com.itheima.po.PageInfo;
import com.itheima.po.Visitor;
import com.itheima.service.VisitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* @program: dormitorySystem
* @description: 访
* @author: Joyrocky
* @create: 2019-05-14 12:39
**/
@Service("visitorService")
@Transactional
public class VisitorServiceImpl implements VisitorService {
// 注入studentDao
@Autowired
private VisitorDao visitorDao;
//分页查询
@Override
public PageInfo<Visitor> findPageInfo(String v_name, Integer v_phone , Integer pageIndex, Integer pageSize) {
PageInfo<Visitor> pi = new PageInfo<Visitor>();
pi.setPageIndex(pageIndex);
pi.setPageSize(pageSize);
//获取总条数
Integer totalCount = visitorDao.totalCount(v_name,v_phone);
if (totalCount>0){
pi.setTotalCount(totalCount);
//每一页显示学生信息数
//currentPage = (pageIndex-1)*pageSize 当前页码数减1*最大条数=开始行数
List<Visitor> visitorList = visitorDao.getVisitorList(v_name,v_phone,
(pi.getPageIndex()-1)*pi.getPageSize(),pi.getPageSize());
pi.setList(visitorList);
}
return pi;
}
@Override
public List<Visitor> getAll(){
List<Visitor> visitorList = visitorDao.getAll();
return visitorList;
}
//添加学生信息
@Override
public int addVisitor(Visitor visitor) {
return visitorDao.addVisitor(visitor);
}
}

@ -1,57 +0,0 @@
package cn.edu.hactcm.util;
import java.security.MessageDigest;
public class MD5Util {
private static String byteArrayToHexString(byte b[]) {
StringBuffer resultSb = new StringBuffer();
for (int i = 0; i < b.length; i++)
resultSb.append(byteToHexString(b[i]));
return resultSb.toString();
}
private static String byteToHexString(byte b) {
int n = b;
if (n < 0)
n += 256;
int d1 = n / 16;
int d2 = n % 16;
return hexDigits[d1] + hexDigits[d2];
}
/**
* MD5
*
* @param origin
* @param charsetname
* @return
*/
private static String MD5Encode(String origin, String charsetname) {
String resultString = null;
try {
resultString = new String(origin);
MessageDigest md = MessageDigest.getInstance("MD5");
if (charsetname == null || "".equals(charsetname))
resultString = byteArrayToHexString(md.digest(resultString.getBytes()));
else
resultString = byteArrayToHexString(md.digest(resultString.getBytes(charsetname)));
} catch (Exception exception) {
}
return resultString.toUpperCase();
}
public static String MD5EncodeUtf8(String origin) {
//盐值Salt加密
//origin = origin + PropertiesUtil.getProperty("password.salt", "");
return MD5Encode(origin, "utf-8");
}
private static final String hexDigits[] = {"0", "1", "2", "3", "4", "5",
"6", "7", "8", "9", "a", "b", "c", "d", "e", "f"};
}

@ -1,46 +0,0 @@
package cn.edu.hactcm.util;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;
public class PropertiesUtil {
private static Logger logger = LoggerFactory.getLogger(PropertiesUtil.class);
private static Properties props;
static {
String fileName = "mmall.properties";
props = new Properties();
try {
props.load(new InputStreamReader(PropertiesUtil.class.getClassLoader().getResourceAsStream(fileName),"UTF-8"));
} catch (IOException e) {
logger.error("配置文件读取异常",e);
}
}
public static String getProperty(String key){
String value = props.getProperty(key.trim());
if(StringUtils.isBlank(value)){
return null;
}
return value.trim();
}
public static String getProperty(String key,String defaultValue){
String value = props.getProperty(key.trim());
if(StringUtils.isBlank(value)){
value = defaultValue;
}
return value.trim();
}
}

File diff suppressed because one or more lines are too long

@ -1,187 +0,0 @@
/** layui-v2.4.5 MIT License By https://www.layui.com */
;!function (e) {
"use strict";
var t = document, o = {modules: {}, status: {}, timeout: 10, event: {}}, n = function () {
this.v = "2.4.5"
}, r = function () {
var e = t.currentScript ? t.currentScript.src : function () {
for (var e, o = t.scripts, n = o.length - 1, r = n; r > 0; r--) if ("interactive" === o[r].readyState) {
e = o[r].src;
break
}
return e || o[n].src
}();
return e.substring(0, e.lastIndexOf("/") + 1)
}(), i = function (t) {
e.console && console.error && console.error("Layui hint: " + t)
}, a = "undefined" != typeof opera && "[object Opera]" === opera.toString(), u = {
layer: "modules/layer",
laydate: "modules/laydate",
laypage: "modules/laypage",
laytpl: "modules/laytpl",
layim: "modules/layim",
layedit: "modules/layedit",
form: "modules/form",
upload: "modules/upload",
tree: "modules/tree",
table: "modules/table",
element: "modules/element",
rate: "modules/rate",
colorpicker: "modules/colorpicker",
slider: "modules/slider",
carousel: "modules/carousel",
flow: "modules/flow",
util: "modules/util",
code: "modules/code",
jquery: "modules/jquery",
mobile: "modules/mobile",
"layui.all": "../layui.all"
};
n.prototype.cache = o, n.prototype.define = function (e, t) {
var n = this, r = "function" == typeof e, i = function () {
var e = function (e, t) {
layui[e] = t, o.status[e] = !0
};
return "function" == typeof t && t(function (n, r) {
e(n, r), o.callback[n] = function () {
t(e)
}
}), this
};
return r && (t = e, e = []), layui["layui.all"] || !layui["layui.all"] && layui["layui.mobile"] ? i.call(n) : (n.use(e, i), n)
}, n.prototype.use = function (e, n, l) {
function s(e, t) {
var n = "PLaySTATION 3" === navigator.platform ? /^complete$/ : /^(complete|loaded)$/;
("load" === e.type || n.test((e.currentTarget || e.srcElement).readyState)) && (o.modules[f] = t, d.removeChild(v), function r() {
return ++m > 1e3 * o.timeout / 4 ? i(f + " is not a valid module") : void (o.status[f] ? c() : setTimeout(r, 4))
}())
}
function c() {
l.push(layui[f]), e.length > 1 ? y.use(e.slice(1), n, l) : "function" == typeof n && n.apply(layui, l)
}
var y = this, p = o.dir = o.dir ? o.dir : r, d = t.getElementsByTagName("head")[0];
e = "string" == typeof e ? [e] : e, window.jQuery && jQuery.fn.on && (y.each(e, function (t, o) {
"jquery" === o && e.splice(t, 1)
}), layui.jquery = layui.$ = jQuery);
var f = e[0], m = 0;
if (l = l || [], o.host = o.host || (p.match(/\/\/([\s\S]+?)\//) || ["//" + location.host + "/"])[0], 0 === e.length || layui["layui.all"] && u[f] || !layui["layui.all"] && layui["layui.mobile"] && u[f]) return c(), y;
if (o.modules[f]) !function g() {
return ++m > 1e3 * o.timeout / 4 ? i(f + " is not a valid module") : void ("string" == typeof o.modules[f] && o.status[f] ? c() : setTimeout(g, 4))
}(); else {
var v = t.createElement("script"),
h = (u[f] ? p + "lay/" : /^\{\/\}/.test(y.modules[f]) ? "" : o.base || "") + (y.modules[f] || f) + ".js";
h = h.replace(/^\{\/\}/, ""), v.async = !0, v.charset = "utf-8", v.src = h + function () {
var e = o.version === !0 ? o.v || (new Date).getTime() : o.version || "";
return e ? "?v=" + e : ""
}(), d.appendChild(v), !v.attachEvent || v.attachEvent.toString && v.attachEvent.toString().indexOf("[native code") < 0 || a ? v.addEventListener("load", function (e) {
s(e, h)
}, !1) : v.attachEvent("onreadystatechange", function (e) {
s(e, h)
}), o.modules[f] = h
}
return y
}, n.prototype.getStyle = function (t, o) {
var n = t.currentStyle ? t.currentStyle : e.getComputedStyle(t, null);
return n[n.getPropertyValue ? "getPropertyValue" : "getAttribute"](o)
}, n.prototype.link = function (e, n, r) {
var a = this, u = t.createElement("link"), l = t.getElementsByTagName("head")[0];
"string" == typeof n && (r = n);
var s = (r || e).replace(/\.|\//g, ""), c = u.id = "layuicss-" + s, y = 0;
return u.rel = "stylesheet", u.href = e + (o.debug ? "?v=" + (new Date).getTime() : ""), u.media = "all", t.getElementById(c) || l.appendChild(u), "function" != typeof n ? a : (function p() {
return ++y > 1e3 * o.timeout / 100 ? i(e + " timeout") : void (1989 === parseInt(a.getStyle(t.getElementById(c), "width")) ? function () {
n()
}() : setTimeout(p, 100))
}(), a)
}, o.callback = {}, n.prototype.factory = function (e) {
if (layui[e]) return "function" == typeof o.callback[e] ? o.callback[e] : null
}, n.prototype.addcss = function (e, t, n) {
return layui.link(o.dir + "css/" + e, t, n)
}, n.prototype.img = function (e, t, o) {
var n = new Image;
return n.src = e, n.complete ? t(n) : (n.onload = function () {
n.onload = null, "function" == typeof t && t(n)
}, void (n.onerror = function (e) {
n.onerror = null, "function" == typeof o && o(e)
}))
}, n.prototype.config = function (e) {
e = e || {};
for (var t in e) o[t] = e[t];
return this
}, n.prototype.modules = function () {
var e = {};
for (var t in u) e[t] = u[t];
return e
}(), n.prototype.extend = function (e) {
var t = this;
e = e || {};
for (var o in e) t[o] || t.modules[o] ? i("模块名 " + o + " 已被占用") : t.modules[o] = e[o];
return t
}, n.prototype.router = function (e) {
var t = this, e = e || location.hash, o = {path: [], search: {}, hash: (e.match(/[^#](#.*$)/) || [])[1] || ""};
return /^#\//.test(e) ? (e = e.replace(/^#\//, ""), o.href = "/" + e, e = e.replace(/([^#])(#.*$)/, "$1").split("/") || [], t.each(e, function (e, t) {
/^\w+=/.test(t) ? function () {
t = t.split("="), o.search[t[0]] = t[1]
}() : o.path.push(t)
}), o) : o
}, n.prototype.data = function (t, o, n) {
if (t = t || "layui", n = n || localStorage, e.JSON && e.JSON.parse) {
if (null === o) return delete n[t];
o = "object" == typeof o ? o : {key: o};
try {
var r = JSON.parse(n[t])
} catch (i) {
var r = {}
}
return "value" in o && (r[o.key] = o.value), o.remove && delete r[o.key], n[t] = JSON.stringify(r), o.key ? r[o.key] : r
}
}, n.prototype.sessionData = function (e, t) {
return this.data(e, t, sessionStorage)
}, n.prototype.device = function (t) {
var o = navigator.userAgent.toLowerCase(), n = function (e) {
var t = new RegExp(e + "/([^\\s\\_\\-]+)");
return e = (o.match(t) || [])[1], e || !1
}, r = {
os: function () {
return /windows/.test(o) ? "windows" : /linux/.test(o) ? "linux" : /iphone|ipod|ipad|ios/.test(o) ? "ios" : /mac/.test(o) ? "mac" : void 0
}(), ie: function () {
return !!(e.ActiveXObject || "ActiveXObject" in e) && ((o.match(/msie\s(\d+)/) || [])[1] || "11")
}(), weixin: n("micromessenger")
};
return t && !r[t] && (r[t] = n(t)), r.android = /android/.test(o), r.ios = "ios" === r.os, r
}, n.prototype.hint = function () {
return {error: i}
}, n.prototype.each = function (e, t) {
var o, n = this;
if ("function" != typeof t) return n;
if (e = e || [], e.constructor === Object) {
for (o in e) if (t.call(e[o], o, e[o])) break
} else for (o = 0; o < e.length && !t.call(e[o], o, e[o]); o++) ;
return n
}, n.prototype.sort = function (e, t, o) {
var n = JSON.parse(JSON.stringify(e || []));
return t ? (n.sort(function (e, o) {
var n = /^-?\d+$/, r = e[t], i = o[t];
return n.test(r) && (r = parseFloat(r)), n.test(i) && (i = parseFloat(i)), r && !i ? 1 : !r && i ? -1 : r > i ? 1 : r < i ? -1 : 0
}), o && n.reverse(), n) : n
}, n.prototype.stope = function (t) {
t = t || e.event;
try {
t.stopPropagation()
} catch (o) {
t.cancelBubble = !0
}
}, n.prototype.onevent = function (e, t, o) {
return "string" != typeof e || "function" != typeof o ? this : n.event(e, t, null, o)
}, n.prototype.event = n.event = function (e, t, n, r) {
var i = this, a = null, u = t.match(/\((.*)\)$/) || [], l = (e + "." + t).replace(u[0], ""), s = u[1] || "",
c = function (e, t) {
var o = t && t.call(i, n);
o === !1 && null === a && (a = !1)
};
return r ? (o.event[l] = o.event[l] || {}, o.event[l][s] = [r], this) : (layui.each(o.event[l], function (e, t) {
return "{*}" === s ? void layui.each(t, c) : ("" === e && layui.each(t, c), void (s && e === s && layui.each(t, c)))
}), a)
}, e.layui = new n
}(window);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,2 +0,0 @@
/** layui-v2.4.5 MIT License By https://www.layui.com */
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 777 B

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save