├── .gitignore ├── pom.xml ├── poorstudent.sql └── src ├── main ├── java │ └── com │ │ └── edu │ │ ├── PoorstudentApplication.java │ │ ├── config │ │ ├── LoginInterceptor.java │ │ ├── PageConfig.java │ │ ├── RedisSessionConfig.java │ │ └── WebConfig.java │ │ ├── controller │ │ ├── AdminController.java │ │ ├── IndexController.java │ │ ├── StudentController.java │ │ ├── TeacherController.java │ │ └── UserController.java │ │ ├── dao │ │ ├── HardDao.java │ │ ├── ResourceDao.java │ │ ├── StudentDao.java │ │ ├── SupportDao.java │ │ └── UserDao.java │ │ ├── entity │ │ ├── BaseEntity.java │ │ ├── Hard.java │ │ ├── Resources.java │ │ ├── Student.java │ │ ├── Support.java │ │ └── User.java │ │ ├── service │ │ ├── AdminService.java │ │ ├── AdminServiceImpl.java │ │ ├── ResourceService.java │ │ ├── ResourceServiceImpl.java │ │ ├── StudentService.java │ │ ├── StudentServiceImpl.java │ │ ├── TeacherService.java │ │ ├── TeacherServiceImpl.java │ │ ├── UserService.java │ │ └── UserServiceImpl.java │ │ └── vo │ │ ├── DataVO.java │ │ ├── EcharsDataVO.java │ │ ├── EcharsDataVO2.java │ │ ├── ResourceAndSupportVO.java │ │ ├── ResourceApplyVO.java │ │ ├── ResourceStudentSupportVO.java │ │ └── StudentAndHardVO.java └── resources │ ├── application-dev.properties │ ├── application-pro.properties │ ├── application.properties │ ├── banner.txt │ ├── static │ ├── css │ │ ├── login.css │ │ ├── main.css │ │ └── register.css │ ├── img │ │ ├── background.jpg │ │ └── user.png │ ├── js │ │ └── echarts.js │ └── layui │ │ ├── css │ │ ├── layui.css │ │ ├── layui.mobile.css │ │ └── modules │ │ │ ├── code.css │ │ │ ├── laydate │ │ │ └── default │ │ │ │ └── laydate.css │ │ │ └── layer │ │ │ └── default │ │ │ ├── icon-ext.png │ │ │ ├── icon.png │ │ │ ├── layer.css │ │ │ ├── loading-0.gif │ │ │ ├── loading-1.gif │ │ │ └── loading-2.gif │ │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.svg │ │ ├── iconfont.ttf │ │ ├── iconfont.woff │ │ └── iconfont.woff2 │ │ ├── images │ │ └── face │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 10.gif │ │ │ ├── 11.gif │ │ │ ├── 12.gif │ │ │ ├── 13.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 2.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 3.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 4.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 5.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 6.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ ├── 65.gif │ │ │ ├── 66.gif │ │ │ ├── 67.gif │ │ │ ├── 68.gif │ │ │ ├── 69.gif │ │ │ ├── 7.gif │ │ │ ├── 70.gif │ │ │ ├── 71.gif │ │ │ ├── 8.gif │ │ │ └── 9.gif │ │ ├── lay │ │ └── modules │ │ │ ├── carousel.js │ │ │ ├── code.js │ │ │ ├── colorpicker.js │ │ │ ├── element.js │ │ │ ├── flow.js │ │ │ ├── form.js │ │ │ ├── jquery.js │ │ │ ├── laydate.js │ │ │ ├── layedit.js │ │ │ ├── layer.js │ │ │ ├── laypage.js │ │ │ ├── laytpl.js │ │ │ ├── mobile.js │ │ │ ├── rate.js │ │ │ ├── slider.js │ │ │ ├── table.js │ │ │ ├── transfer.js │ │ │ ├── tree.js │ │ │ ├── upload.js │ │ │ └── util.js │ │ ├── layui.all.js │ │ └── layui.js │ └── templates │ ├── _userFragment.html │ ├── admin │ ├── AchangePassword.html │ ├── Amain.html │ ├── Aresource.html │ ├── AstudentInfo.html │ ├── AuserInfo.html │ ├── AuserList.html │ └── _AFragment.html │ ├── changePassword.html │ ├── hardApply.html │ ├── login.html │ ├── myApply.html │ ├── register.html │ ├── studentInfo.html │ ├── supportApply.html │ ├── teacher │ ├── TchangePassword.html │ ├── Thard.html │ ├── Tmain.html │ ├── Tresource.html │ ├── TstudentInfo.html │ ├── TsupportApply.html │ ├── TuserInfo.html │ └── _TFragment.html │ └── userInfo.html └── test └── java └── com └── edu ├── PoorstudentApplicationTests.java └── Test1.java /.gitignore: -------------------------------------------------------------------------------- 1 | *.iws 2 | *.iml 3 | *.ipr 4 | target/ 5 | .settings 6 | .project 7 | .classpath 8 | .externalToolBuilders 9 | *.class 10 | *svn/ 11 | .idea/ 12 | *.jar 13 | ~* -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.4.2 9 | 10 | 11 | com.edu 12 | poorstudent 13 | 0.0.1-SNAPSHOT 14 | poorstudent 15 | Demo project for Spring Boot 16 | 17 | 1.8 18 | 19 | 20 | 21 | org.springframework.boot 22 | spring-boot-starter-thymeleaf 23 | 24 | 25 | org.springframework.boot 26 | spring-boot-starter-web 27 | 28 | 29 | 30 | org.springframework.boot 31 | spring-boot-starter-data-redis 32 | 33 | 34 | org.springframework.session 35 | spring-session-data-redis 36 | 37 | 38 | mysql 39 | mysql-connector-java 40 | runtime 41 | 42 | 43 | org.projectlombok 44 | lombok 45 | true 46 | 47 | 48 | com.baomidou 49 | mybatis-plus-boot-starter 50 | 3.3.2 51 | 52 | 53 | com.alibaba 54 | druid 55 | 1.1.22 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-starter-test 60 | test 61 | 62 | 63 | 64 | 65 | poorstudent 66 | 67 | 68 | org.springframework.boot 69 | spring-boot-maven-plugin 70 | 71 | 72 | 73 | org.projectlombok 74 | lombok 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /src/main/java/com/edu/PoorstudentApplication.java: -------------------------------------------------------------------------------- 1 | package com.edu; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class PoorstudentApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(PoorstudentApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/edu/config/LoginInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.edu.config; 2 | 3 | import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; 4 | 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | 8 | /** 9 | * 登录拦截 10 | */ 11 | public class LoginInterceptor extends HandlerInterceptorAdapter { 12 | @Override 13 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { 14 | 15 | if (request.getSession().getAttribute("user") == null) { 16 | response.sendRedirect("/"); 17 | return false; 18 | } 19 | return true; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/edu/config/PageConfig.java: -------------------------------------------------------------------------------- 1 | package com.edu.config; 2 | 3 | import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; 4 | import org.mybatis.spring.annotation.MapperScan; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.context.annotation.Configuration; 7 | import org.springframework.transaction.annotation.EnableTransactionManagement; 8 | 9 | //开启事务管理 10 | @EnableTransactionManagement 11 | @Configuration 12 | public class PageConfig { 13 | 14 | //配置分页拦截器 15 | @Bean 16 | public PaginationInterceptor paginationInterceptor() { 17 | PaginationInterceptor paginationInterceptor = new PaginationInterceptor(); 18 | return paginationInterceptor; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/edu/config/RedisSessionConfig.java: -------------------------------------------------------------------------------- 1 | package com.edu.config; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession; 5 | 6 | @Configuration 7 | @EnableRedisHttpSession(maxInactiveIntervalInSeconds= 3600*24) 8 | public class RedisSessionConfig { 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/edu/config/WebConfig.java: -------------------------------------------------------------------------------- 1 | package com.edu.config; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 5 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 6 | 7 | @Configuration 8 | public class WebConfig implements WebMvcConfigurer { 9 | @Override 10 | public void addInterceptors(InterceptorRegistry registry) { 11 | registry.addInterceptor(new LoginInterceptor()) 12 | .addPathPatterns("/*") 13 | .addPathPatterns("/teacher/*") 14 | .addPathPatterns("/admin/*") 15 | .excludePathPatterns("/") 16 | .excludePathPatterns("/login") 17 | .excludePathPatterns("/codeImg") 18 | .excludePathPatterns("/register") 19 | .excludePathPatterns("/submitRegister") 20 | .excludePathPatterns("/userName"); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/edu/controller/AdminController.java: -------------------------------------------------------------------------------- 1 | package com.edu.controller; 2 | 3 | import com.baomidou.mybatisplus.core.metadata.IPage; 4 | import com.edu.entity.Resources; 5 | import com.edu.entity.User; 6 | import com.edu.service.AdminService; 7 | import com.edu.service.ResourceService; 8 | import com.edu.vo.DataVO; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Controller; 11 | import org.springframework.ui.Model; 12 | import org.springframework.web.bind.annotation.*; 13 | 14 | //@CrossOrigin//跨域(ajax测试用) 15 | @Controller 16 | @RequestMapping("/admin") 17 | public class AdminController { 18 | 19 | @Autowired 20 | ResourceService resourceService; 21 | @Autowired 22 | AdminService adminService; 23 | 24 | //访问主页 25 | @RequestMapping("/main") 26 | public String main() { 27 | return "admin/Amain"; 28 | } 29 | 30 | //访问用户信息 31 | @RequestMapping("/userInfo") 32 | public String userInfo() { 33 | return "admin/AuserInfo"; 34 | } 35 | 36 | //访问学生信息 37 | @RequestMapping("/studentInfo") 38 | public String studentInfo() { 39 | return "admin/AstudentInfo"; 40 | } 41 | 42 | //访问用户管理 43 | @RequestMapping("/userAdmin") 44 | public String userList() { 45 | return "admin/AuserList"; 46 | } 47 | 48 | //访问资源管理 49 | @RequestMapping("/resource") 50 | public String resource(Model model, Integer currentPage, Integer totalPage,Resources resources) { 51 | //id存在或者为""代表是保存和插入时带的参数 52 | if (resources.getResourceId() !=null){ 53 | resources= new Resources(); 54 | } 55 | if (currentPage == null) { 56 | currentPage = 1; 57 | } 58 | if (currentPage <= 0) { 59 | currentPage = 1; 60 | } 61 | if (totalPage != null && currentPage > totalPage) { 62 | currentPage = totalPage; 63 | } 64 | IPage resourcesPage = resourceService.findAllResourcePage(currentPage, 5, resources.getResourceName()); 65 | model.addAttribute("resourcesPage", resourcesPage); 66 | model.addAttribute("resourceName",resources.getResourceName()); 67 | return "admin/Aresource"; 68 | } 69 | 70 | //访问修改密码 71 | @RequestMapping("/changePassword") 72 | public String changePassword() { 73 | return "admin/AchangePassword"; 74 | } 75 | 76 | //添加资源 77 | @PostMapping("/addResource") 78 | public String addResource(Resources resources, Model model) { 79 | int flag = resourceService.addResource(resources); 80 | if (flag != 0) { 81 | model.addAttribute("msg", "添加成功"); 82 | return "forward:/admin/resource"; 83 | } else { 84 | model.addAttribute("msg", "添加失败"); 85 | return "forward:/admin/resource"; 86 | } 87 | } 88 | 89 | //修改资源 90 | @PostMapping("/updateResource") 91 | public String updateResource(Resources resources, Model model) { 92 | int flag = resourceService.updateResource(resources); 93 | if (flag != 0) { 94 | model.addAttribute("msg", "修改成功"); 95 | return "forward:/admin/resource"; 96 | } else { 97 | model.addAttribute("msg", "修改失败"); 98 | return "forward:/admin/resource"; 99 | } 100 | } 101 | 102 | //删除资源 103 | @GetMapping("/delResource") 104 | public String delResource(String resourceId, Model model) { 105 | int flag = resourceService.delResource(resourceId); 106 | if (flag != 0) { 107 | model.addAttribute("msg", "删除成功"); 108 | return "forward:/admin/resource"; 109 | } else { 110 | model.addAttribute("msg", "删除失败"); 111 | return "forward:/admin/resource"; 112 | } 113 | } 114 | 115 | //编辑用户 116 | @PostMapping("/updateUser") 117 | public String updateUser(User user, Model model) { 118 | int flag = adminService.updateUser(user); 119 | if (flag != 0) { 120 | model.addAttribute("msg", "更新成功"); 121 | return "forward:/admin/userAdmin"; 122 | } else { 123 | model.addAttribute("msg", "更新失败"); 124 | return "forward:/admin/userAdmin"; 125 | } 126 | } 127 | 128 | //layui用户信息动态表格 129 | @ResponseBody 130 | @GetMapping("/userList") 131 | public DataVO userList(Integer page, Integer limit, @RequestParam(required = false, value = "key[userName]") String userName) { 132 | return adminService.pageUserBySearch(page, limit, userName); 133 | } 134 | 135 | //ajax删除用户 136 | @ResponseBody 137 | @GetMapping("/deleteUser") 138 | public boolean deleteUser(String userId) { 139 | int i = adminService.deleteUserById(userId); 140 | return i != 0; 141 | } 142 | } 143 | -------------------------------------------------------------------------------- /src/main/java/com/edu/controller/IndexController.java: -------------------------------------------------------------------------------- 1 | package com.edu.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | public class IndexController { 8 | 9 | @RequestMapping("/") 10 | public String Index() { 11 | return "login"; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/edu/dao/HardDao.java: -------------------------------------------------------------------------------- 1 | package com.edu.dao; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import com.baomidou.mybatisplus.core.metadata.IPage; 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 6 | import com.edu.entity.Hard; 7 | import com.edu.vo.StudentAndHardVO; 8 | import org.apache.ibatis.annotations.Mapper; 9 | import org.apache.ibatis.annotations.Select; 10 | 11 | @Mapper 12 | public interface HardDao extends BaseMapper { 13 | @Select("select t1.hard_id,t1.hard_reason,t1.hard_result,t2.* from hard t1 left join student t2 on t1.student_id= t2.student_id") 14 | IPage pageHardVO(Page page); 15 | 16 | @Select("select t1.hard_id,t1.hard_reason,t1.hard_result,t2.* from hard t1 left join student t2 on t1.student_id= t2.student_id where t2.student_name like CONCAT('%',#{studentName},'%')") 17 | IPage pageHardVOBySearch(Page page,String studentName); 18 | 19 | @Select("select t1.hard_id,t1.hard_reason,t1.hard_result,t2.* from hard t1 left join student t2 on t1.student_id= t2.student_id where hard_id = #{hardId}") 20 | StudentAndHardVO findStudentAndHardVOById(String hardId); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/edu/dao/ResourceDao.java: -------------------------------------------------------------------------------- 1 | package com.edu.dao; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import com.baomidou.mybatisplus.core.metadata.IPage; 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 6 | import com.edu.entity.Resources; 7 | import com.edu.vo.EcharsDataVO; 8 | import com.edu.vo.ResourceApplyVO; 9 | import org.apache.ibatis.annotations.Mapper; 10 | import org.apache.ibatis.annotations.Select; 11 | 12 | import java.util.List; 13 | 14 | @Mapper 15 | public interface ResourceDao extends BaseMapper { 16 | @Select("select * from resource") 17 | IPage pageResourceApplyVO(Page page); 18 | 19 | @Select("select * from resource where resource_name like CONCAT('%',#{resourceName},'%')") 20 | IPage pageResourceApplyVOBySearch(Page page,String resourceName); 21 | 22 | @Select("select count(*) as value,resource_level as name from resource group by resource_level") 23 | List selectCountByResourceLevel(); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/edu/dao/StudentDao.java: -------------------------------------------------------------------------------- 1 | package com.edu.dao; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import com.edu.entity.Student; 5 | import com.edu.vo.EcharsDataVO2; 6 | import org.apache.ibatis.annotations.Mapper; 7 | import org.apache.ibatis.annotations.Select; 8 | 9 | import java.util.List; 10 | 11 | @Mapper 12 | public interface StudentDao extends BaseMapper { 13 | //echars查询特殊情况人数 14 | //-- select count(special_fo=1 OR NULL) from student 15 | @Select("SELECT sum( special_oad ) AS oadCount,sum( special_sp ) AS spCount,sum( special_com ) AS comCount,sum( special_fo ) AS foCount,sum( special_sa ) AS saCount FROM student") 16 | EcharsDataVO2 selectSpecialCount(); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/edu/dao/SupportDao.java: -------------------------------------------------------------------------------- 1 | package com.edu.dao; 2 | 3 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | import com.baomidou.mybatisplus.core.metadata.IPage; 6 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 7 | import com.edu.entity.Support; 8 | import com.edu.vo.ResourceAndSupportVO; 9 | import com.edu.vo.ResourceStudentSupportVO; 10 | import org.apache.ibatis.annotations.Mapper; 11 | import org.apache.ibatis.annotations.Select; 12 | 13 | @Mapper 14 | public interface SupportDao extends BaseMapper { 15 | //左连接分页,根据学生id查申请的资源 16 | @Select("select t1.support_id,t2.*,t1.support_result from support t1 left join resource t2 on t1.resource_id = t2.resource_id where student_id = #{studentId}") 17 | IPage pageResourceVO(Page page, String studentId); 18 | 19 | //左连接分页,根据学生id查申请的资源搜索 20 | @Select("select t1.support_id,t2.*,t1.support_result from support t1 left join resource t2 on t1.resource_id = t2.resource_id where student_id = #{studentId} and t2.resource_name like CONCAT('%',#{resourceName},'%')") 21 | IPage pageResourceVOBySearch(Page page, String studentId, String resourceName); 22 | 23 | //多对多分页,查询学生申请列表 24 | @Select("select t1.support_id,t1.support_result,t2.*,t3.* from support t1 LEFT JOIN student t2 on t1.student_id=t2.student_id LEFT JOIN resource t3 on t1.resource_id=t3.resource_id") 25 | IPage pageSupportVO(Page page); 26 | 27 | @Select("select t1.support_id,t1.support_result,t2.*,t3.* from support t1 LEFT JOIN student t2 on t1.student_id=t2.student_id LEFT JOIN resource t3 on t1.resource_id=t3.resource_id where t3.resource_name like CONCAT('%',#{resourceName},'%')") 28 | IPage pageSupportVOBySearch(Page page, String resourceName); 29 | 30 | 31 | @Select("select t1.support_id,t1.support_result,t2.*,t3.* from support t1 LEFT JOIN student t2 on t1.student_id=t2.student_id LEFT JOIN resource t3 on t1.resource_id=t3.resource_id where support_id = #{supportId}") 32 | ResourceStudentSupportVO selectSupportVOById(String supportId); 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/edu/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package com.edu.dao; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import com.edu.entity.User; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | @Mapper 8 | public interface UserDao extends BaseMapper { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/edu/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package com.edu.entity; 2 | import java.io.Serializable; 3 | 4 | 5 | public abstract class BaseEntity implements Serializable { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/edu/entity/Hard.java: -------------------------------------------------------------------------------- 1 | package com.edu.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.IdType; 4 | import com.baomidou.mybatisplus.annotation.TableId; 5 | import com.baomidou.mybatisplus.annotation.TableName; 6 | import lombok.AllArgsConstructor; 7 | import lombok.Data; 8 | import lombok.EqualsAndHashCode; 9 | import lombok.NoArgsConstructor; 10 | 11 | //困难申请 12 | @Data 13 | @EqualsAndHashCode(callSuper = true) 14 | @AllArgsConstructor 15 | @NoArgsConstructor 16 | @TableName("hard") 17 | public class Hard extends BaseEntity{ 18 | @TableId(type = IdType.AUTO) 19 | private String hardId; //困难申请id 20 | private String hardReason; //申请理由 21 | private String hardResult; //认定结果 22 | private String studentId; //学生信息id 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/edu/entity/Resources.java: -------------------------------------------------------------------------------- 1 | package com.edu.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.IdType; 4 | import com.baomidou.mybatisplus.annotation.TableId; 5 | import com.baomidou.mybatisplus.annotation.TableName; 6 | import lombok.AllArgsConstructor; 7 | import lombok.Data; 8 | import lombok.EqualsAndHashCode; 9 | import lombok.NoArgsConstructor; 10 | 11 | import java.util.Date; 12 | 13 | 14 | @Data 15 | @EqualsAndHashCode(callSuper = true) 16 | @NoArgsConstructor 17 | @AllArgsConstructor 18 | @TableName("resource") 19 | public class Resources extends BaseEntity{ 20 | @TableId(type = IdType.AUTO) 21 | private String resourceId; //资源id 22 | private String resourceName; //资源名 23 | private Date resourceTime; //创建时间 24 | private String resourceInfo; //资源描述 25 | private String resourceLevel; //资源级别 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/edu/entity/Student.java: -------------------------------------------------------------------------------- 1 | package com.edu.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.IdType; 4 | import com.baomidou.mybatisplus.annotation.TableId; 5 | import com.baomidou.mybatisplus.annotation.TableName; 6 | import lombok.AllArgsConstructor; 7 | import lombok.Data; 8 | import lombok.EqualsAndHashCode; 9 | import lombok.NoArgsConstructor; 10 | 11 | 12 | @Data 13 | @EqualsAndHashCode(callSuper = true) 14 | @NoArgsConstructor 15 | @AllArgsConstructor 16 | @TableName("student") 17 | public class Student extends BaseEntity{ 18 | @TableId(type = IdType.AUTO) 19 | private String studentId; //学生信息id 20 | private String studentName; //姓名 21 | private String studentSex; //性别 22 | private String studentNumber; //学号 23 | private String studentCardid; //身份证 24 | private Integer studentYear; //入学年份 25 | private String studentEducation; //学历 26 | private String studentDepartment; //院系 27 | private String studentClass; //班级 28 | private Integer studentPopulation; //家庭人口数 29 | private String studentRes; //户口 30 | private boolean specialOad; //孤残 31 | private boolean specialSp; //单亲 32 | private boolean specialCom; //烈士子女 33 | private boolean specialFo; //优抚对象 34 | private boolean specialSa; //低保家庭 35 | 36 | private String userId; //用户id 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/edu/entity/Support.java: -------------------------------------------------------------------------------- 1 | package com.edu.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.IdType; 4 | import com.baomidou.mybatisplus.annotation.TableId; 5 | import com.baomidou.mybatisplus.annotation.TableName; 6 | import lombok.AllArgsConstructor; 7 | import lombok.Data; 8 | import lombok.EqualsAndHashCode; 9 | import lombok.NoArgsConstructor; 10 | 11 | //资源申请 12 | @Data 13 | @EqualsAndHashCode(callSuper = true) 14 | @AllArgsConstructor 15 | @NoArgsConstructor 16 | @TableName("support") 17 | public class Support extends BaseEntity{ 18 | @TableId(type = IdType.AUTO) 19 | private String supportId; //资助申请id 20 | private String resourceId; //资源id 21 | private String studentId; //学生信息id 22 | private String supportResult; //认定结果 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/edu/entity/User.java: -------------------------------------------------------------------------------- 1 | package com.edu.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.IdType; 4 | import com.baomidou.mybatisplus.annotation.TableId; 5 | import com.baomidou.mybatisplus.annotation.TableName; 6 | import lombok.AllArgsConstructor; 7 | import lombok.Data; 8 | import lombok.EqualsAndHashCode; 9 | import lombok.NoArgsConstructor; 10 | 11 | @Data 12 | @EqualsAndHashCode(callSuper = true) 13 | @AllArgsConstructor 14 | @NoArgsConstructor 15 | @TableName("user") 16 | public class User extends BaseEntity { 17 | @TableId(type = IdType.AUTO) 18 | private String userId; 19 | 20 | private String userName; 21 | private String userPassword; 22 | private String userPhone; 23 | private String userEmail; 24 | private String userRole; 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/AdminService.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.edu.entity.User; 4 | import com.edu.vo.DataVO; 5 | 6 | public interface AdminService { 7 | 8 | DataVO pageUserBySearch(Integer currentPage, Integer pageSize, String userName); 9 | 10 | int deleteUserById(String userId); 11 | 12 | int updateUser(User user); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/AdminServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 4 | import com.baomidou.mybatisplus.core.metadata.IPage; 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 6 | import com.edu.dao.HardDao; 7 | import com.edu.dao.StudentDao; 8 | import com.edu.dao.SupportDao; 9 | import com.edu.dao.UserDao; 10 | import com.edu.entity.Student; 11 | import com.edu.entity.User; 12 | import com.edu.vo.DataVO; 13 | import org.springframework.stereotype.Service; 14 | import org.springframework.transaction.annotation.Transactional; 15 | 16 | import javax.annotation.Resource; 17 | 18 | @Service 19 | public class AdminServiceImpl implements AdminService{ 20 | 21 | @Resource 22 | UserDao userDao; 23 | @Resource 24 | StudentDao studentDao; 25 | @Resource 26 | SupportDao supportDao; 27 | @Resource 28 | HardDao hardDao; 29 | 30 | @Override 31 | public DataVO pageUserBySearch(Integer currentPage, Integer pageSize, String userName) { 32 | DataVO dataVO = new DataVO<>(); 33 | dataVO.setCode(0); 34 | dataVO.setMsg(""); 35 | 36 | QueryWrapper queryWrapper = new QueryWrapper<>(); 37 | if (userName!=null&&!userName.isEmpty()){ 38 | queryWrapper.like("user_name", userName); 39 | } 40 | 41 | IPage page = new Page<>(currentPage,pageSize); 42 | IPage iPage = userDao.selectPage(page, queryWrapper); 43 | 44 | dataVO.setCount(iPage.getTotal()); 45 | 46 | dataVO.setData(iPage.getRecords()); 47 | return dataVO; 48 | } 49 | 50 | @Override 51 | public int deleteUserById(String userId) { 52 | //外键删除相关信息 53 | return userDao.deleteById(userId); 54 | } 55 | 56 | @Override 57 | public int updateUser(User user) { 58 | return userDao.updateById(user); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/ResourceService.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.baomidou.mybatisplus.core.metadata.IPage; 4 | import com.edu.entity.Resources; 5 | 6 | public interface ResourceService { 7 | 8 | IPage findAllResourcePage(Integer currentPage, int PageSize,String resourceName); 9 | 10 | int updateResource(Resources resources); 11 | 12 | int addResource(Resources resources); 13 | 14 | int delResource(String resourceId); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/ResourceServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 4 | import com.baomidou.mybatisplus.core.metadata.IPage; 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 6 | import com.edu.dao.ResourceDao; 7 | import com.edu.dao.SupportDao; 8 | import com.edu.entity.Resources; 9 | import org.springframework.stereotype.Service; 10 | 11 | 12 | import javax.annotation.Resource; 13 | import java.util.Date; 14 | 15 | @Service 16 | public class ResourceServiceImpl implements ResourceService{ 17 | 18 | @Resource 19 | ResourceDao resourceDao; 20 | 21 | @Override 22 | public IPage findAllResourcePage(Integer currentPage, int PageSize,String resourceName) { 23 | IPage page = new Page<>(currentPage,PageSize); 24 | QueryWrapper queryWrapper = new QueryWrapper<>(); 25 | if (resourceName!=null&&!resourceName.isEmpty()){ 26 | queryWrapper.like("resource_name",resourceName); 27 | } 28 | return resourceDao.selectPage(page,queryWrapper); 29 | } 30 | 31 | @Override 32 | public int delResource(String resourceId) { 33 | return resourceDao.deleteById(resourceId); 34 | } 35 | 36 | @Override 37 | public int updateResource(Resources resources) { 38 | return resourceDao.updateById(resources); 39 | } 40 | 41 | @Override 42 | public int addResource(Resources resources) { 43 | resources.setResourceTime(new Date()); 44 | return resourceDao.insert(resources); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/StudentService.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.baomidou.mybatisplus.core.metadata.IPage; 4 | import com.edu.entity.Hard; 5 | import com.edu.entity.Student; 6 | import com.edu.vo.ResourceApplyVO; 7 | import com.edu.vo.ResourceAndSupportVO; 8 | 9 | public interface StudentService { 10 | int SaveOrUpdateStudentInfo(Student student); 11 | 12 | Student FindStudentByUserId(String userId); 13 | 14 | IPage ResourceListByPage(int currentPage, int PageSize,String studentId, String resourceName); 15 | 16 | int SupportApplyAdd(String resourceId,String studentId); 17 | 18 | IPage FindResourceVOByStudentIdPage(Integer currentPage, int pageSize , String studentId ,String resourceName); 19 | 20 | int SupportApplyDel(String supportId); 21 | 22 | int SaveOrUpdateHard(Hard hard); 23 | 24 | Hard FindHardByStudentId(String studentId); 25 | 26 | int HardApplyDel(String hardId); 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/StudentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 4 | import com.baomidou.mybatisplus.core.metadata.IPage; 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 6 | import com.edu.dao.HardDao; 7 | import com.edu.dao.ResourceDao; 8 | import com.edu.dao.StudentDao; 9 | import com.edu.dao.SupportDao; 10 | import com.edu.entity.Hard; 11 | import com.edu.entity.Student; 12 | import com.edu.entity.Support; 13 | import com.edu.vo.ResourceApplyVO; 14 | import com.edu.vo.ResourceAndSupportVO; 15 | import org.springframework.stereotype.Service; 16 | 17 | import javax.annotation.Resource; 18 | import java.util.List; 19 | 20 | @Service 21 | public class StudentServiceImpl implements StudentService{ 22 | @Resource 23 | StudentDao studentDao; 24 | @Resource 25 | ResourceDao resourceDao; 26 | @Resource 27 | SupportDao supportDao; 28 | @Resource 29 | HardDao hardDao; 30 | 31 | @Override 32 | public int SaveOrUpdateStudentInfo(Student student) { 33 | Student queryStudent = FindStudentByUserId(student.getUserId()); 34 | if (queryStudent == null){ 35 | return studentDao.insert(student); 36 | }else{ 37 | student.setStudentId(queryStudent.getStudentId()); 38 | return studentDao.updateById(student); 39 | } 40 | } 41 | 42 | @Override 43 | public Student FindStudentByUserId(String userId) { 44 | QueryWrapper queryWrapper = new QueryWrapper<>(); 45 | queryWrapper.eq("user_id",userId); 46 | return studentDao.selectOne(queryWrapper); 47 | } 48 | 49 | @Override 50 | public IPage ResourceListByPage(int currentPage,int PageSize,String studentId, String resourceName) { 51 | //查资源列表 52 | Page page = new Page<>(currentPage,PageSize); 53 | IPage resourceApplyVOIPage = null; 54 | if (resourceName!=null&&!resourceName.isEmpty()){ 55 | resourceApplyVOIPage = resourceDao.pageResourceApplyVOBySearch(page,resourceName); 56 | }else { 57 | resourceApplyVOIPage = resourceDao.pageResourceApplyVO(page); 58 | } 59 | //查已申请资源id 60 | QueryWrapper queryWrapper = new QueryWrapper<>(); 61 | queryWrapper.eq("student_id",studentId); 62 | List supports = supportDao.selectList(queryWrapper); 63 | //匹配是否已申请过 64 | return matchApply(resourceApplyVOIPage,supports); 65 | } 66 | 67 | @Override 68 | public int SupportApplyAdd(String resourceId, String studentId) { 69 | //查看是否困难申请过 70 | QueryWrapper queryWrapper = new QueryWrapper<>(); 71 | queryWrapper.eq("student_id",studentId); 72 | Hard hard = hardDao.selectOne(queryWrapper); 73 | if (hard==null||!hard.getHardResult().equals("通过")){ 74 | return 0; 75 | }else { 76 | Support inSupport = new Support(); 77 | inSupport.setStudentId(studentId); 78 | inSupport.setResourceId(resourceId); 79 | inSupport.setSupportResult("待认定"); 80 | return supportDao.insert(inSupport); 81 | } 82 | } 83 | 84 | @Override 85 | public IPage FindResourceVOByStudentIdPage(Integer currentPage, int PageSize, String studentId, String resourceName) { 86 | Page resourcePage = new Page<>(currentPage,PageSize); 87 | IPage resourcesIPage; 88 | if (resourceName!=null&&!resourceName.isEmpty()){ 89 | resourcesIPage = supportDao.pageResourceVOBySearch(resourcePage, studentId ,resourceName); 90 | }else { 91 | resourcesIPage = supportDao.pageResourceVO(resourcePage, studentId); 92 | } 93 | 94 | return resourcesIPage; 95 | } 96 | 97 | @Override 98 | public int SupportApplyDel(String supportId) { 99 | return supportDao.deleteById(supportId); 100 | } 101 | 102 | @Override 103 | public int SaveOrUpdateHard(Hard hard) { 104 | Hard queryHard = FindHardByStudentId(hard.getStudentId()); 105 | if (queryHard == null){ 106 | hard.setHardResult("待认定"); 107 | return hardDao.insert(hard); 108 | }else{ 109 | //mybatisplus更新时null值不更新 110 | hard.setHardId(queryHard.getHardId()); 111 | return hardDao.updateById(hard); 112 | } 113 | } 114 | 115 | @Override 116 | public Hard FindHardByStudentId(String studentId) { 117 | QueryWrapper queryWrapper = new QueryWrapper<>(); 118 | queryWrapper.eq("student_id",studentId); 119 | return hardDao.selectOne(queryWrapper); 120 | } 121 | 122 | @Override 123 | public int HardApplyDel(String hardId) { 124 | return hardDao.deleteById(hardId); 125 | } 126 | 127 | //匹配是否已申请的方法 128 | private IPage matchApply(IPage resourceApplyVOIPage, List supports) { 129 | List records = resourceApplyVOIPage.getRecords(); 130 | for (int i = 0 ;i < records.size();i++){ 131 | for (Support support:supports){ 132 | if (records.get(i).getResourceId().equals(support.getResourceId())){ 133 | records.get(i).setFlag(true); 134 | } 135 | } 136 | } 137 | resourceApplyVOIPage.setRecords(records); 138 | return resourceApplyVOIPage; 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/TeacherService.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.baomidou.mybatisplus.core.metadata.IPage; 4 | import com.edu.entity.Hard; 5 | import com.edu.entity.Resources; 6 | import com.edu.entity.Student; 7 | import com.edu.entity.Support; 8 | import com.edu.vo.DataVO; 9 | import com.edu.vo.EcharsDataVO; 10 | import com.edu.vo.ResourceStudentSupportVO; 11 | import com.edu.vo.StudentAndHardVO; 12 | 13 | import java.util.List; 14 | 15 | 16 | public interface TeacherService { 17 | DataVO pageStudentBySearch(Integer currentPage,Integer pageSize,String studentName,String studentNumber); 18 | 19 | IPage studentAndHardVOPage(Integer currentPage, int PageSize , String studentName); 20 | 21 | int updateHardById(Hard hard); 22 | 23 | StudentAndHardVO findStudentAndHardVOById(String hardId); 24 | 25 | Resources findResourceById(String resourceId); 26 | 27 | List findSpecialList(); 28 | 29 | List findEcharsDataList(); 30 | 31 | IPage findSupportVOPage(Integer currentPage, int PageSize ,String resourceName); 32 | 33 | int updateSupportById(Support support); 34 | 35 | ResourceStudentSupportVO findResourceStudentSupportVOById(String supportId); 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/TeacherServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 4 | import com.baomidou.mybatisplus.core.metadata.IPage; 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 6 | import com.edu.dao.HardDao; 7 | import com.edu.dao.ResourceDao; 8 | import com.edu.dao.StudentDao; 9 | import com.edu.dao.SupportDao; 10 | import com.edu.entity.Hard; 11 | import com.edu.entity.Resources; 12 | import com.edu.entity.Student; 13 | import com.edu.entity.Support; 14 | import com.edu.vo.*; 15 | import org.springframework.stereotype.Service; 16 | import org.springframework.transaction.annotation.Transactional; 17 | 18 | import javax.annotation.Resource; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | @Service 23 | public class TeacherServiceImpl implements TeacherService{ 24 | 25 | @Resource 26 | StudentDao studentDao; 27 | @Resource 28 | HardDao hardDao; 29 | @Resource 30 | ResourceDao resourceDao; 31 | @Resource 32 | SupportDao supportDao; 33 | 34 | @Transactional(readOnly = true) 35 | @Override 36 | public DataVO pageStudentBySearch(Integer currentPage,Integer pageSize,String studentName,String studentNumber) { 37 | DataVO dataVO = new DataVO<>(); 38 | dataVO.setCode(0); 39 | dataVO.setMsg(""); 40 | 41 | QueryWrapper queryWrapper = new QueryWrapper<>(); 42 | if (studentName!=null&&!studentName.isEmpty()){ 43 | queryWrapper.like("student_name", studentName); 44 | } 45 | if (studentNumber!=null&&!studentNumber.isEmpty()){ 46 | queryWrapper.eq("student_number", studentNumber); 47 | } 48 | 49 | IPage page = new Page<>(currentPage,pageSize); 50 | IPage iPage = studentDao.selectPage(page, queryWrapper); 51 | 52 | dataVO.setCount(iPage.getTotal()); 53 | 54 | dataVO.setData(iPage.getRecords()); 55 | return dataVO; 56 | } 57 | 58 | @Override 59 | public IPage studentAndHardVOPage(Integer currentPage, int PageSize , String studentName) { 60 | Page page = new Page<>(currentPage,PageSize); 61 | if (studentName!=null&&!studentName.isEmpty()){ 62 | return hardDao.pageHardVOBySearch(page,studentName); 63 | } 64 | return hardDao.pageHardVO(page); 65 | } 66 | 67 | @Override 68 | public int updateHardById(Hard hard) { 69 | return hardDao.updateById(hard); 70 | } 71 | 72 | @Override 73 | public StudentAndHardVO findStudentAndHardVOById(String hardId) { 74 | return hardDao.findStudentAndHardVOById(hardId); 75 | } 76 | 77 | @Override 78 | public Resources findResourceById(String resourceId) { 79 | return resourceDao.selectById(resourceId); 80 | } 81 | 82 | //学生申请资源列表 83 | @Override 84 | public IPage findSupportVOPage(Integer currentPage, int PageSize, String resourceName){ 85 | Page page = new Page<>(currentPage,PageSize); 86 | if (resourceName!=null&&!resourceName.isEmpty()){ 87 | return supportDao.pageSupportVOBySearch(page,resourceName); 88 | } 89 | return supportDao.pageSupportVO(page); 90 | } 91 | 92 | @Override 93 | public int updateSupportById(Support support) { 94 | return supportDao.updateById(support); 95 | } 96 | 97 | @Override 98 | public ResourceStudentSupportVO findResourceStudentSupportVOById(String supportId) { 99 | return supportDao.selectSupportVOById(supportId); 100 | } 101 | 102 | //echars 103 | @Override 104 | @Transactional(readOnly = true) 105 | public List findSpecialList() { 106 | List specialList = new ArrayList<>(); 107 | EcharsDataVO2 echarsDataVO2 = studentDao.selectSpecialCount(); 108 | //孤残,单亲,烈士子女,优抚对象,低保家庭 109 | specialList.add(echarsDataVO2.getOadCount()); 110 | specialList.add(echarsDataVO2.getSpCount()); 111 | specialList.add(echarsDataVO2.getComCount()); 112 | specialList.add(echarsDataVO2.getFoCount()); 113 | specialList.add(echarsDataVO2.getSaCount()); 114 | return specialList; 115 | } 116 | 117 | //echars 118 | @Override 119 | @Transactional(readOnly = true) 120 | public List findEcharsDataList() { 121 | return resourceDao.selectCountByResourceLevel(); 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.edu.entity.User; 4 | 5 | public interface UserService { 6 | User finUserByUserName(String userName); 7 | 8 | int changePassword(User user); 9 | 10 | int register(User user); 11 | 12 | int updateUser(User user); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/edu/service/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.edu.service; 2 | 3 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 4 | import com.edu.dao.UserDao; 5 | import com.edu.entity.User; 6 | import org.springframework.stereotype.Service; 7 | import org.springframework.util.DigestUtils; 8 | 9 | import javax.annotation.Resource; 10 | 11 | @Service 12 | public class UserServiceImpl implements UserService { 13 | @Resource 14 | UserDao userDao; 15 | 16 | @Override 17 | public User finUserByUserName(String userName) { 18 | QueryWrapper queryWrapper = new QueryWrapper<>(); 19 | queryWrapper.eq("user_name",userName); 20 | return userDao.selectOne(queryWrapper); 21 | } 22 | 23 | @Override 24 | public int changePassword(User user) { 25 | //md5加盐加密 26 | String passwordSalt = user.getUserPassword()+"x@7faqgjw"; 27 | String md5UserPassword = DigestUtils.md5DigestAsHex(passwordSalt.getBytes()); 28 | user.setUserPassword(md5UserPassword); 29 | return userDao.updateById(user); 30 | } 31 | 32 | @Override 33 | public int register(User user) { 34 | //md5加盐加密 35 | String passwordSalt = user.getUserPassword()+"x@7faqgjw"; 36 | String md5UserPassword = DigestUtils.md5DigestAsHex(passwordSalt.getBytes()); 37 | user.setUserPassword(md5UserPassword); 38 | return userDao.insert(user); 39 | } 40 | 41 | @Override 42 | public int updateUser(User user) { 43 | return userDao.updateById(user); 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/edu/vo/DataVO.java: -------------------------------------------------------------------------------- 1 | package com.edu.vo; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | import java.util.List; 8 | 9 | //layui数据表格格式 10 | @Data 11 | @AllArgsConstructor 12 | @NoArgsConstructor 13 | public class DataVO { 14 | private Integer code; 15 | private String msg; 16 | private long count; 17 | private List data; 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/edu/vo/EcharsDataVO.java: -------------------------------------------------------------------------------- 1 | package com.edu.vo; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | //Echars饼图Data 8 | @Data 9 | @AllArgsConstructor 10 | @NoArgsConstructor 11 | public class EcharsDataVO { 12 | private Integer value; 13 | private String name; 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/edu/vo/EcharsDataVO2.java: -------------------------------------------------------------------------------- 1 | package com.edu.vo; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | //Echars柱状图Data 8 | @Data 9 | @AllArgsConstructor 10 | @NoArgsConstructor 11 | public class EcharsDataVO2 { 12 | private Integer oadCount; 13 | private Integer spCount; 14 | private Integer comCount; 15 | private Integer foCount; 16 | private Integer saCount; 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/edu/vo/ResourceAndSupportVO.java: -------------------------------------------------------------------------------- 1 | package com.edu.vo; 2 | 3 | import com.edu.entity.Resources; 4 | import lombok.AllArgsConstructor; 5 | import lombok.Data; 6 | import lombok.NoArgsConstructor; 7 | 8 | import java.util.Date; 9 | 10 | /** 11 | * 我的申请vo 12 | */ 13 | @Data 14 | @AllArgsConstructor 15 | @NoArgsConstructor 16 | public class ResourceAndSupportVO { 17 | private String resourceId; //资源id 18 | private String resourceName; //资源名 19 | private Date resourceTime; //创建时间 20 | private String resourceInfo; //资源描述 21 | private String resourceLevel; //资源级别 22 | private String supportResult; 23 | private String supportId; 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/edu/vo/ResourceApplyVO.java: -------------------------------------------------------------------------------- 1 | package com.edu.vo; 2 | import lombok.AllArgsConstructor; 3 | import lombok.Data; 4 | import lombok.NoArgsConstructor; 5 | 6 | import java.util.Date; 7 | 8 | @Data 9 | @NoArgsConstructor 10 | @AllArgsConstructor 11 | public class ResourceApplyVO { 12 | private String resourceId; //资源id 13 | private String resourceName; //资源名 14 | private Date resourceTime; //创建时间 15 | private String resourceInfo; //资源描述 16 | private String resourceLevel; //资源级别 17 | //是否已申请 18 | private boolean flag; 19 | } -------------------------------------------------------------------------------- /src/main/java/com/edu/vo/ResourceStudentSupportVO.java: -------------------------------------------------------------------------------- 1 | package com.edu.vo; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | import lombok.AllArgsConstructor; 5 | import lombok.Data; 6 | import lombok.NoArgsConstructor; 7 | 8 | import java.util.Date; 9 | 10 | /** 11 | * 申请表左连接资源信息和学生信息vo 12 | */ 13 | @Data 14 | @AllArgsConstructor 15 | @NoArgsConstructor 16 | public class ResourceStudentSupportVO { 17 | private String supportId; //资助申请id 18 | private String resourceId; //资源id 19 | private String studentId; //学生信息id 20 | private String supportResult; //认定结果 21 | 22 | private String studentName; //姓名 23 | private String studentSex; //性别 24 | private String studentNumber; //学号 25 | private String studentCardid; //身份证 26 | private Integer studentYear; //入学年份 27 | private String studentEducation; //学历 28 | private String studentDepartment; //院系 29 | private String studentClass; //班级 30 | private Integer studentPopulation; //家庭人口数 31 | private String studentRes; //户口 32 | private boolean specialOad; //孤残 33 | private boolean specialSp; //单亲 34 | private boolean specialCom; //烈士子女 35 | private boolean specialFo; //优抚对象 36 | private boolean specialSa; //低保家庭 37 | private String userId; //用户id 38 | 39 | private String resourceName; //资源名 40 | 41 | @JsonFormat(pattern="yyyy-MM-dd HH:mm") 42 | private Date resourceTime; //创建时间 43 | private String resourceInfo; //资源描述 44 | private String resourceLevel; //资源级别 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/edu/vo/StudentAndHardVO.java: -------------------------------------------------------------------------------- 1 | package com.edu.vo; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class StudentAndHardVO { 11 | private String studentId; //学生信息id 12 | private String studentName; //姓名 13 | private String studentSex; //性别 14 | private String studentNumber; //学号 15 | private String studentCardid; //身份证 16 | private Integer studentYear; //入学年份 17 | private String studentEducation; //学历 18 | private String studentDepartment; //院系 19 | private String studentClass; //班级 20 | private Integer studentPopulation; //家庭人口数 21 | private String studentRes; //户口 22 | private boolean specialOad; //孤残 23 | private boolean specialSp; //单亲 24 | private boolean specialCom; //烈士子女 25 | private boolean specialFo; //优抚对象 26 | private boolean specialSa; //低保家庭 27 | private String userId; //用户id 28 | private String hardId; //困难申请id 29 | private String hardReason; //申请理由 30 | private String hardResult; //认定结果 31 | } 32 | -------------------------------------------------------------------------------- /src/main/resources/application-dev.properties: -------------------------------------------------------------------------------- 1 | server.port=80 2 | 3 | spring.datasource.type=com.alibaba.druid.pool.DruidDataSource 4 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 5 | spring.datasource.url=jdbc:mysql://localhost:3310/poorstudent?serverTimezone=Asia/Shanghai 6 | spring.datasource.username=root 7 | spring.datasource.password=lili1999918 8 | 9 | spring.redis.database=2 10 | spring.redis.host=127.0.0.1 11 | spring.redis.port=6379 12 | spring.redis.password= 13 | spring.redis.jedis.pool.max-idle=8 14 | spring.redis.jedis.pool.max-wait=-1 15 | spring.redis.jedis.pool.min-idle=0 16 | spring.redis.timeout=5000 17 | 18 | 19 | logging.level.root = info 20 | logging.level.com.example.dao = debug 21 | -------------------------------------------------------------------------------- /src/main/resources/application-pro.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | 3 | spring.datasource.type=com.alibaba.druid.pool.DruidDataSource 4 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 5 | spring.datasource.url=jdbc:mysql://39.100.79.234:3306/poorstudent?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8 6 | spring.datasource.username=root 7 | spring.datasource.password=lili1999918 8 | 9 | mybatis-plus.mapper-locations=com/edu/mapper/*.xml 10 | 11 | spring.redis.database=2 12 | spring.redis.host=39.100.79.234 13 | spring.redis.port=6379 14 | spring.redis.password= 15 | spring.redis.jedis.pool.max-idle=8 16 | spring.redis.jedis.pool.max-wait=-1 17 | spring.redis.jedis.pool.min-idle=0 18 | spring.redis.timeout=5000 19 | 20 | logging.level.root = info 21 | #logging.level.com.example.dao = debug 22 | -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.profiles.active=pro 2 | -------------------------------------------------------------------------------- /src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | ${AnsiColor.BRIGHT_MAGENTA} 2 | ____ ____ __ __ __ 3 | /\ _`\ /\ _`\ /\ \__ /\ \ /\ \__ 4 | \ \ \L\ \___ ___ _ __\ \,\L\_\ \ ,_\ __ __ \_\ \ __ ___\ \ ,_\ ____ 5 | \ \ ,__/ __`\ / __`\/\`'__\/_\__ \\ \ \/ /\ \/\ \ /'_` \ /'__`\/' _ `\ \ \/ /',__\ 6 | \ \ \/\ \L\ \/\ \L\ \ \ \/ /\ \L\ \ \ \_\ \ \_\ \/\ \L\ \/\ __//\ \/\ \ \ \_/\__, `\ 7 | \ \_\ \____/\ \____/\ \_\ \ `\____\ \__\\ \____/\ \___,_\ \____\ \_\ \_\ \__\/\____/ 8 | \/_/\/___/ \/___/ \/_/ \/_____/\/__/ \/___/ \/__,_ /\/____/\/_/\/_/\/__/\/___/ 9 | -------------------------------------------------------------------------------- /src/main/resources/static/css/login.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-image: url("../img/background.jpg"); 3 | } 4 | #left{ 5 | text-align: center; 6 | margin-top: 320px; 7 | } 8 | #card{ 9 | width: 380px; 10 | margin-top: 200px; 11 | opacity: 80%; 12 | } 13 | #codeImg{ 14 | width: 100px; 15 | height: 38px; 16 | } 17 | #imgDiv{ 18 | padding: 0 !important; 19 | height: 38px; 20 | } 21 | #loginHeader{ 22 | text-align: center; 23 | font-size: 18px; 24 | } -------------------------------------------------------------------------------- /src/main/resources/static/css/main.css: -------------------------------------------------------------------------------- 1 | .header{ 2 | height: 60px; 3 | border-bottom: none; 4 | background-color: #393D49; 5 | } 6 | 7 | #header-font{ 8 | font-size: 20px; 9 | color: rgba(255,255,255,.7); 10 | margin-left: 20px; 11 | line-height: 60px; 12 | } 13 | .tdDiv{ 14 | width:450px; 15 | overflow:hidden; 16 | white-space:nowrap; 17 | text-overflow:ellipsis; 18 | } 19 | .tdDiv:hover{ 20 | white-space:normal; 21 | overflow:auto; 22 | text-overflow:clip; 23 | } 24 | -------------------------------------------------------------------------------- /src/main/resources/static/css/register.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-image: url("../img/background.jpg"); 3 | } 4 | #left{ 5 | text-align: center; 6 | margin-top: 320px; 7 | } 8 | #card{ 9 | width: 380px; 10 | opacity: 80%; 11 | margin: 120px auto; 12 | } 13 | #codeImg{ 14 | width: 100px; 15 | height: 38px; 16 | } 17 | #imgDiv{ 18 | padding: 0 !important; 19 | height: 38px; 20 | } 21 | #loginHeader{ 22 | text-align: center; 23 | font-size: 18px; 24 | } -------------------------------------------------------------------------------- /src/main/resources/static/img/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/img/background.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/img/user.png -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | 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} -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/laydate/default/laydate.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | .laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/font/iconfont.eot -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/font/iconfont.woff -------------------------------------------------------------------------------- /src/main/resources/static/layui/font/iconfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/font/iconfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/0.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/1.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/10.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/11.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/12.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/13.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/14.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/15.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/16.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/17.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/18.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/19.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/2.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/20.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/21.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/22.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/23.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/24.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/25.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/26.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/27.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/28.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/29.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/3.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/30.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/31.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/32.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/33.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/34.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/35.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/36.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/37.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/38.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/39.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/4.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/40.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/41.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/42.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/43.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/44.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/45.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/46.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/47.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/48.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/49.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/5.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/50.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/51.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/52.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/53.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/54.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/55.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/56.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/57.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/58.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/59.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/6.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/60.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/61.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/62.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/63.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/64.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/65.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/66.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/67.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/68.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/69.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/7.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/70.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/71.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/8.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dudo-m/poorstudent/4c323856d5aed94cfef24c3e2792b99bcd1f1972/src/main/resources/static/layui/images/face/9.gif -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/carousel.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
    ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/element.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='
  • "+(i.title||"unnaming")+"
  • ";return s[0]?s.before(r):n.append(r),o.append('
    '+(i.content||"")+"
    "),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a(''),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append(''),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after(""+e+"")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html(''+l+"")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append(''+(l?"":"")+""),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),!i&&f.width()&&(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
    ',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
    "].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/rate.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,l={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var l=this;return l.config=a.extend({},l.config,e),l},on:function(e,a){return layui.onevent.call(this,n,e,a)}},i=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",u="layui-icon-rate-solid",s="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var i=this;i.index=++l.index,i.config=a.extend({},i.config,l.config,e),i.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,l=e.config,i=l.theme?'style="color: '+l.theme+';"':"";l.elem=a(l.elem),l.value>l.length&&(l.value=l.length),parseInt(l.value)!==l.value&&(l.half||(l.value=Math.ceil(l.value)-l.value<.5?Math.ceil(l.value):Math.floor(l.value)));for(var n='
      ",s=1;s<=l.length;s++){var r='
    • ";l.half&&parseInt(l.value)!==l.value&&s==Math.ceil(l.value)?n=n+'
    • ":n+=r}n+="
    "+(l.text?''+l.value+"星":"")+"";var c=l.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),l.span=e.elemTemp.next("span"),l.setText&&l.setText(l.value),c.html(e.elemTemp),c.addClass("layui-inline"),l.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,l=a.config;l.value=e,a.render()},v.prototype.action=function(){var e=this,l=e.config,i=e.elemTemp,n=i.find("i").width();i.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(l.value=t,l.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(l.value=l.value-.5)}l.text&&i.next("span").text(l.value+"星"),l.choose&&l.choose(l.value),l.setText&&l.setText(l.value)}),v.on("mousemove",function(e){if(i.find("i").each(function(){a(this).addClass(o).removeClass(r)}),i.find("i:lt("+t+")").each(function(){a(this).addClass(u).removeClass(f)}),l.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(s).removeClass(u)}}),v.on("mouseleave",function(){i.find("i").each(function(){a(this).addClass(o).removeClass(r)}),i.find("i:lt("+Math.floor(l.value)+")").each(function(){a(this).addClass(u).removeClass(f)}),l.half&&parseInt(l.value)!==l.value&&i.children("li:eq("+Math.floor(l.value)+")").children("i").addClass(s).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},l.render=function(e){var a=new v(e);return i.call(a)},e(n,l)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/slider.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.jquery,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,n,e,i)}},a=function(){var e=this,i=e.config;return{setValue:function(t,a){return i.value=t,e.slide("set",t,a||0)},config:i}},n="slider",l="layui-disabled",s="layui-slider",r="layui-slider-bar",o="layui-slider-wrap",u="layui-slider-wrap-btn",d="layui-slider-tips",v="layui-slider-input",c="layui-slider-input-txt",p="layui-slider-input-btn",m="layui-slider-hover",f=function(e){var a=this;a.index=++t.index,a.config=i.extend({},a.config,t.config,e),a.render()};f.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},f.prototype.render=function(){var e=this,t=e.config;if(t.step<1&&(t.step=1),t.maxt.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=Math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=Math.floor((t.value[1]-t.min)/(t.max-t.min)*100),p=v-r+"%";r+="%",v+="%"}else{"object"==typeof t.value&&(t.value=Math.min.apply(null,t.value)),t.valuet.max&&(t.value=t.max);var p=Math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var m=t.disabled?"#c2c2c2":t.theme,f='
    '+(t.tips?'
    ':"")+'
    '+(t.range?'
    ':"")+"
    ",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemTemp=i(f),t.range?(e.elemTemp.find("."+o).eq(0).data("value",t.value[0]),e.elemTemp.find("."+o).eq(1).data("value",t.value[1])):e.elemTemp.find("."+o).data("value",t.value),h.html(e.elemTemp),"vertical"===t.type&&e.elemTemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x')}e.elemTemp.append(b)}if(t.input&&!t.range){var w=i('
    ');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemTemp.css("margin-right",w.outerWidth()+15)}t.disabled?(e.elemTemp.addClass(l),e.elemTemp.find("."+u).addClass(l)):e.slide(),e.elemTemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemTemp[0].offsetWidth,n=e.elemTemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsetTop-n.height():i(this).parent()[0].offsetLeft,s=l/a*100,r=i(this).parent().data("value"),u=t.setTips?t.setTips(r):r;e.elemTemp.find("."+d).html(u),"vertical"===t.type?e.elemTemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemTemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemTemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemTemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/Math.ceil(l.step)),x=function(e,i){e=Math.ceil(e)*b>100?Math.ceil(e)*b:Math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=T(h[0].offsetLeft),a=l.range?T(h[1].offsetLeft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=T(f()-h[0].offsetTop-h.height()),a=l.range?T(f()-h[1].offsetTop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=Math.min(t,a),o=Math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+Math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),s.find("."+d).html(l.setTips?l.setTips(u):u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},T=function(e){var i=e/f()*100/b,t=Math.round(i)*b;return e==f()&&(t=Math.ceil(i)*b),t},w=i(['
    f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addClass(m),s.find("."+d).show(),i.preventDefault()},o=function(){t.removeClass(m),s.find("."+d).hide()};M(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clientY+i(this).offset().top:e.clientX-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?Math.abs(n-parseInt(i(h[0]).css("bottom")))>Math.abs(n-parseInt(i(h[1]).css("bottom")))?1:0:Math.abs(n-h[0].offsetLeft)>Math.abs(n-h[1].offsetLeft)?1:0:0,x(s,a),e.preventDefault()}}),y.children("."+p).children("i").each(function(e){i(this).on("click",function(){g=y.children("."+c).children("input").val(),g=1==e?g-l.stepl.max?l.max:Number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isNaN(e)?0:e,e=el.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/transfer.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getData:function(){return e.getData.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['
    ','
    ','","
    ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
      ',"
      "].join("")},v=['
      ',p({index:0,checkAllName:"layTransferLeftCheckAll"}),'
      ','",'","
      ",p({index:1,checkAllName:"layTransferRightCheckAll"}),"
      "].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===Array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.layBox=e.elem.find("."+s),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+h),e.layData=i.find("."+y),e.layBtn=i.find("."+f+" .layui-btn"),e.layBox.css({width:n.width,height:n.height}),e.layData.css({height:function(){return n.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}()}),e.renderData(),e.events())},x.prototype.renderData=function(){var e=this,a=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,n=["
    • ",'',"
    • "].join("");a[t].views.push(n),delete e.selected}),e.layData.eq(0).html(a[0].views.join("")),e.layData.eq(1).html(a[1].views.join("")),e.renderCheckBtn()},x.prototype.renderForm=function(e){n.render(e,"LAY-transfer-"+this.index)},x.prototype.renderCheckBtn=function(e){var t=this,n=t.config;e=e||{},t.layBox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.layBtn.eq(i)[f?"removeClass":"addClass"](o),!e.stopNone){var p=r.children("li:not(."+c+")").length;t.noneView(r,p?"":n.text.none)}}),t.renderForm("checkbox")},x.prototype.noneView=function(e,t){var n=a('

      '+(t||"")+"

      ");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setValue=function(){var e=this,t=e.config,n=[];return e.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parseData=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parseData?n.parseData(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getData=function(e){var a=this,t=a.config,n=[];return a.setValue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.renderCheckBtn({stopNone:!0}))}),e.layBtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.layBox.eq(i),r=[];if(!n.hasClass(o)){e.layBox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setValue()})}),e.renderCheckBtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getData(r),i)}}),e.laySearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexOf(n)!==-1;e[i?"removeClass":"addClass"](c),t.data("hide",!i)}),e.renderCheckBtn();var r=l.length===i.children("li."+c).length;e.noneView(i,r?t.text.searchNone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getData=function(e){var a=r.that[e];return a.getData()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/upload.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),o=layui.device(),a={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},reload:function(t){e.reload.call(e,t)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var i=this;i.config=t.extend({},i.config,a.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindAction=t(e.bindAction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemFile=t(['"].join("")),a=i.elem.next();(a.hasClass(u)||a.hasClass(c))&&a.remove(),o.ie&&o.ie<10&&i.elem.wrap('
      '),e.isFile()?(e.elemFile=i.elem,i.field=i.elem[0].name):i.elem.after(n),o.ie&&o.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,i=e.config,n=t(''),o=t(['
      ',"
      "].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasClass(c)||(e.elemFile.wrap(o),i.elem.next("."+c).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return i.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var t=this;window.FileReader&&layui.each(t.chooseFiles,function(t,i){var n=new FileReader;n.readAsDataURL(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,a=this,l=a.config,r=a.elemFile[0],u=function(){var i=0,n=0,o=e||a.files||a.chooseFiles||r.files,u=function(){l.multiple&&i+n===a.fileLength&&"function"==typeof l.allDone&&l.allDone({total:a.fileLength,successful:i,aborted:n})};layui.each(o,function(e,o){var r=new FormData;r.append(l.field,o),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)});var c={url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,a.msg("请求上传接口出现异常"),m(e),u()}};"function"==typeof l.progress&&(c.xhr=function(){var e=t.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var t=Math.floor(e.loaded/e.total*100);l.progress(t,l.item[0],e)}}),e}),t.ajax(c)})},c=function(){var e=t("#"+f);a.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){a.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}t&&(clearInterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(a.elemFile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},a.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(t,e||0,function(e){a.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){a.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||a.chooseFiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){a.preview(e)},upload:function(e,t){var i={};i[e]=t,a.upload(i)},pushFile:function(){return a.files=a.files||{},layui.each(a.chooseFiles,function(e,t){a.files[e]=t}),a.files},resetFile:function(e,t,i){var n=new File([t],i);a.files=a.files||{},a.files[e]=n}},y=function(){if("choose"!==i&&!l.auto||(l.choose&&l.choose(g),"choose"!==i))return l.before&&l.before(g),o.ie?o.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return a.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return a.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return a.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,t){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return a.msg("选择的图片中包含不支持的格式"),r.value=""}if(a.fileLength=function(){var t=0,i=e||a.files||a.chooseFiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&a.fileLength>l.number)return a.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(o.ie&&o.ie<10)){var F;if(layui.each(a.chooseFiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?i.toFixed(2)+"MB":l.size+"KB",r.value="",F=i}}),F)return a.msg("文件不能超过"+F)}y()}},p.prototype.reload=function(e){e=e||{},delete e.elem,delete e.bindAction;var i=this,e=i.config=t.extend({},i.config,a.config,e),n=e.elem.next();n.attr({name:e.name,accept:e.acceptMime,multiple:e.multiple})},p.prototype.events=function(){var e=this,i=e.config,a=function(t){e.chooseFiles={},layui.each(t,function(t,i){var n=(new Date).getTime();e.chooseFiles[n+"-"+t]=i})},l=function(t,n){var o=e.elemFile,a=t.length>1?t.length+"个文件":(t[0]||{}).name||o[0].value.match(/[^\/\\]+\..+/g)||[]||"";o.next().hasClass(s)&&o.next().remove(),e.upload(null,"choose"),e.isFile()||i.choose||o.after(''+a+"")};i.elem.off("upload.start").on("upload.start",function(){var o=t(this),a=o.attr("lay-data");if(a)try{a=new Function("return "+a)(),e.config=t.extend({},i,a)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+a)}e.config.item=o,e.elemFile[0].click()}),o.ie&&o.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,o){var r=t(this),u=o.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),a(u),i.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var t=this.files||[];a(t),i.auto?e.upload():l(t)}),i.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveEvents")||(e.elemFile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isFile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventDefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),t(this).trigger("upload.drop",e)}),i.bindAction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveEvents",!0))},a.render=function(e){var t=new p(e);return l.call(t)},e(r,a)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;layui.define("jquery",function(e){"use strict";var t=layui.$,i={fixbar:function(e){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=t(document),l=t("body");e=t.extend({showHeight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var c=[e.bar1,e.bar2,""],u=t(['
        ',e.bar1?'
      • '+c[0]+"
      • ":"",e.bar2?'
      • '+c[1]+"
      • ":"",'
      • '+c[2]+"
      • ","
      "].join("")),g=u.find("."+o),s=function(){var t=r.scrollTop();t>=e.showHeight?i||(g.show(),i=1):i&&(g.hide(),i=0)};t("."+a)[0]||("object"==typeof e.css&&u.css(e.css),l.append(u),s(),u.find("li").on("click",function(){var i=t(this),n=i.attr("lay-type");"top"===n&&t("html,body").animate({scrollTop:0},200),e.click&&e.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){s()},100)}))},countdown:function(e,t,i){var n=this,a="function"==typeof t,o=new Date(e).getTime(),r=new Date(!t||a?(new Date).getTime():t).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=t);var u=setTimeout(function(){n.countdown(e,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],t,u),l<=0&&clearTimeout(u),u},timeAgo:function(e,t){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(e).getTime();return a>26784e5?(a=new Date(e),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),t||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=18e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(e,t){var i="";e=String(e),t=t||2;for(var n=e.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(e,n,a){var o=t("body");return a=a||"click",n=i.event[e]=t.extend(!0,i.event[e],n)||{},i.event.UTIL_EVENT_CALLBACK=i.event.UTIL_EVENT_CALLBACK||{},o.off(a,"*["+e+"]",i.event.UTIL_EVENT_CALLBACK[e]),i.event.UTIL_EVENT_CALLBACK[e]=function(){var i=t(this),a=i.attr(e);"function"==typeof n[a]&&n[a].call(this,i)},o.on(a,"*["+e+"]",i.event.UTIL_EVENT_CALLBACK[e]),n}};!function(e,t,i){"$:nomunge";function n(){a=t[l](function(){o.each(function(){var t=e(this),i=t.width(),n=t.height(),a=e.data(this,u);(i!==a.w||n!==a.h)&&t.trigger(c,[a.w=i,a.h=n])}),n()},r[g])}var a,o=e([]),r=e.resize=e.extend(e.resize,{}),l="setTimeout",c="resize",u=c+"-special-event",g="delay",s="throttleWindow";r[g]=250,r[s]=!0,e.event.special[c]={setup:function(){if(!r[s]&&this[l])return!1;var t=e(this);o=o.add(t),e.data(this,u,{w:t.width(),h:t.height()}),1===o.length&&n()},teardown:function(){if(!r[s]&&this[l])return!1;var t=e(this);o=o.not(t),t.removeData(u),o.length||clearTimeout(a)},add:function(t){function n(t,n,o){var r=e(this),l=e.data(this,u)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[s]&&this[l])return!1;var a;return e.isFunction(t)?(a=t,n):(a=t.handler,void(t.handler=n))}}}(t,window),e("util",i)}); -------------------------------------------------------------------------------- /src/main/resources/static/layui/layui.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.7 MIT License */ 2 | ;!function(e){"use strict";var t=document,n={modules:{},status:{},timeout:10,event:{}},o=function(){this.v="2.5.7"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,n=t.scripts,o=n.length-1,r=o;r>0;r--)if("interactive"===n[r].readyState){e=n[r].src;break}return e||n[o].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),a=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},i="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",transfer:"modules/transfer",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"};o.prototype.cache=n,o.prototype.define=function(e,t){var o=this,r="function"==typeof e,a=function(){var e=function(e,t){layui[e]=t,n.status[e]=!0};return"function"==typeof t&&t(function(o,r){e(o,r),n.callback[o]=function(){t(e)}}),this};return r&&(t=e,e=[]),!layui["layui.all"]&&layui["layui.mobile"]?a.call(o):(o.use(e,a),o)},o.prototype.use=function(e,o,l){function c(e,t){var o="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||o.test((e.currentTarget||e.srcElement).readyState))&&(n.modules[d]=t,y.removeChild(h),function r(){return++m>1e3*n.timeout/4?a(d+" is not a valid module"):void(n.status[d]?s():setTimeout(r,4))}())}function s(){l.push(layui[d]),e.length>1?p.use(e.slice(1),o,l):"function"==typeof o&&o.apply(layui,l)}var p=this,f=n.dir=n.dir?n.dir:r,y=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(p.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var d=e[0],m=0;if(l=l||[],n.host=n.host||(f.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[d]||!layui["layui.all"]&&layui["layui.mobile"]&&u[d])return s(),p;var v=(u[d]?f+"lay/":/^\{\/\}/.test(p.modules[d])?"":n.base||"")+(p.modules[d]||d)+".js";if(v=v.replace(/^\{\/\}/,""),!n.modules[d]&&layui[d]&&(n.modules[d]=v),n.modules[d])!function g(){return++m>1e3*n.timeout/4?a(d+" is not a valid module"):void("string"==typeof n.modules[d]&&n.status[d]?s():setTimeout(g,4))}();else{var h=t.createElement("script");h.async=!0,h.charset="utf-8",h.src=v+function(){var e=n.version===!0?n.v||(new Date).getTime():n.version||"";return e?"?v="+e:""}(),y.appendChild(h),!h.attachEvent||h.attachEvent.toString&&h.attachEvent.toString().indexOf("[native code")<0||i?h.addEventListener("load",function(e){c(e,v)},!1):h.attachEvent("onreadystatechange",function(e){c(e,v)}),n.modules[d]=v}return p},o.prototype.getStyle=function(t,n){var o=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return o[o.getPropertyValue?"getPropertyValue":"getAttribute"](n)},o.prototype.link=function(e,o,r){var i=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof o&&(r=o);var c=(r||e).replace(/\.|\//g,""),s=u.id="layuicss-"+c,p=0;return u.rel="stylesheet",u.href=e+(n.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(s)||l.appendChild(u),"function"!=typeof o?i:(function f(){return++p>1e3*n.timeout/100?a(e+" timeout"):void(1989===parseInt(i.getStyle(t.getElementById(s),"width"))?function(){o()}():setTimeout(f,100))}(),i)},n.callback={},o.prototype.factory=function(e){if(layui[e])return"function"==typeof n.callback[e]?n.callback[e]:null},o.prototype.addcss=function(e,t,o){return layui.link(n.dir+"css/"+e,t,o)},o.prototype.img=function(e,t,n){var o=new Image;return o.src=e,o.complete?t(o):(o.onload=function(){o.onload=null,"function"==typeof t&&t(o)},void(o.onerror=function(e){o.onerror=null,"function"==typeof n&&n(e)}))},o.prototype.config=function(e){e=e||{};for(var t in e)n[t]=e[t];return this},o.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),o.prototype.extend=function(e){var t=this;e=e||{};for(var n in e)t[n]||t.modules[n]?a("模块名 "+n+" 已被占用"):t.modules[n]=e[n];return t},o.prototype.router=function(e){var t=this,e=e||location.hash,n={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),n.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),n.search[t[0]]=t[1]}():n.path.push(t)}),n):n},o.prototype.url=function(e){var t=this,n={pathname:function(){var t=e?function(){var t=(e.match(/\.[^.]+?\/.+/)||[])[0]||"";return t.replace(/^[^\/]+/,"").replace(/\?.+/,"")}():location.pathname;return t.replace(/^\//,"").split("/")}(),search:function(){var n={},o=(e?function(){var t=(e.match(/\?.+/)||[])[0]||"";return t.replace(/\#.+/,"")}():location.search).replace(/^\?+/,"").split("&");return t.each(o,function(e,t){var o=t.indexOf("="),r=function(){return o<0?t.substr(0,t.length):0!==o&&t.substr(0,o)}();r&&(n[r]=o>0?t.substr(o+1):null)}),n}(),hash:t.router(function(){return e?(e.match(/#.+/)||[])[0]||"":location.hash}())};return n},o.prototype.data=function(t,n,o){if(t=t||"layui",o=o||localStorage,e.JSON&&e.JSON.parse){if(null===n)return delete o[t];n="object"==typeof n?n:{key:n};try{var r=JSON.parse(o[t])}catch(a){var r={}}return"value"in n&&(r[n.key]=n.value),n.remove&&delete r[n.key],o[t]=JSON.stringify(r),n.key?r[n.key]:r}},o.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},o.prototype.device=function(t){var n=navigator.userAgent.toLowerCase(),o=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(n.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(n)?"windows":/linux/.test(n)?"linux":/iphone|ipod|ipad|ios/.test(n)?"ios":/mac/.test(n)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:o("micromessenger")};return t&&!r[t]&&(r[t]=o(t)),r.android=/android/.test(n),r.ios="ios"===r.os,r.mobile=!(!r.android&&!r.ios),r},o.prototype.hint=function(){return{error:a}},o.prototype.each=function(e,t){var n,o=this;if("function"!=typeof t)return o;if(e=e||[],e.constructor===Object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;na?1:r 2 | 3 | 4 | 5 | 用户信息 6 | 7 | 8 | 9 | 10 | 11 | 12 | 用户信息 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
      23 |
      24 | 贫困生资助系统 25 |
      26 | 35 |
      36 | 37 | 38 | 39 | 67 | 68 | -------------------------------------------------------------------------------- /src/main/resources/templates/admin/AchangePassword.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 主页 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 58 | 59 |
      60 |
      61 | 修改密码 62 |
      63 | 64 |
      65 |
      66 | 67 |
      68 | 70 |
      71 |
      72 |
      73 | 74 |
      75 | 77 |
      78 |
      79 |
      80 |
      81 | 82 | 83 |
      84 |
      85 |
      86 |
      87 |
      88 | 89 | 103 | -------------------------------------------------------------------------------- /src/main/resources/templates/admin/Amain.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 主页 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 58 | 59 |
      60 |
      61 | 主页 62 |
      63 | 64 |
      65 |
      66 |
      67 |
      68 |
      69 |
      70 | 71 | 72 | 125 | -------------------------------------------------------------------------------- /src/main/resources/templates/admin/AstudentInfo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 学生信息管理 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 59 | 60 |
      61 |
      62 | 学生信息管理 63 |
      64 | 65 |
      66 | 学号: 67 |
      68 | 69 |
      70 | 姓名: 71 |
      72 | 73 |
      74 | 75 |
      76 |
      77 |
      78 |
      79 | 80 | 83 | 86 | 89 | 92 | 95 | 96 | 97 | 98 | 99 | 162 | -------------------------------------------------------------------------------- /src/main/resources/templates/admin/AuserInfo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 主页 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 58 | 59 |
      60 |
      61 | 用户信息 62 |
      63 | 64 |
      65 |
      66 | 67 |
      68 | 69 |
      70 |
      71 |
      72 | 73 |
      74 | 75 |
      76 |
      77 |
      78 | 79 |
      80 | 81 |
      82 |
      83 |
      84 |
      85 | 86 | 87 |
      88 |
      89 |
      90 |
      91 |
      92 | 93 | 107 | -------------------------------------------------------------------------------- /src/main/resources/templates/admin/_AFragment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 用户信息 6 | 7 | 8 | 9 | 10 | 11 | 12 | 用户信息 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
      23 |
      24 | 贫困生资助系统 25 |
      26 | 35 |
      36 | 37 | 38 | 39 | 67 | 68 | -------------------------------------------------------------------------------- /src/main/resources/templates/changePassword.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 修改密码 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 59 | 60 |
      61 |
      62 | 修改密码 63 |
      64 | 65 |
      66 |
      67 | 68 |
      69 | 71 |
      72 |
      73 |
      74 | 75 |
      76 | 78 |
      79 |
      80 |
      81 |
      82 | 83 | 84 |
      85 |
      86 |
      87 |
      88 |
      89 | 90 | 104 | -------------------------------------------------------------------------------- /src/main/resources/templates/hardApply.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 经济困难认定申请 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 59 | 60 |
      61 |
      62 | 经济困难认定申请 63 |
      64 | 65 |
      66 |
      67 | 68 |
      69 | 70 |
      71 |
      72 |
      73 |
      74 | 75 | 76 |
      77 |
      78 |
      79 |
      80 |
      已认定
      81 |
      82 | 认定结果:[[${hard.hardResult}]] 83 |
      84 |
      85 | 申请理由:
      86 | [[${hard.hardReason}]] 87 |
      88 |
      89 |
      90 |
      91 | 92 | 106 | -------------------------------------------------------------------------------- /src/main/resources/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 登录 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
      贫困生资助系统v1.0
      14 | 15 |
      16 |
      用户登录
      17 |
      18 | 19 |
      20 |
      21 | 22 |
      23 | 24 |
      25 |
      26 |
      27 | 28 |
      29 | 30 |
      31 |
      32 |
      33 | 34 |
      35 | 36 |
      37 |
      38 |
      39 | 还没有账号?去注册 40 |
      41 |
      42 | 43 | 44 |
      45 |
      46 |
      47 |
      48 |
      49 | 50 | 69 | -------------------------------------------------------------------------------- /src/main/resources/templates/register.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 注册 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 |
      用户注册
      15 |
      16 | 17 |
      18 |
      19 | 20 |
      21 | 22 |
      23 |
      24 |
      25 |
      26 | 27 |
      28 | 29 |
      30 |
      31 |
      32 | 33 |
      34 | 35 |
      36 |
      37 |
      38 | 39 |
      40 | 41 |
      42 |
      43 |
      44 | 45 |
      46 | 47 |
      48 |
      49 |
      50 | 51 |
      52 | 58 |
      59 |
      60 | 已有账号?去登陆 61 |
      62 |
      63 | 64 | 65 |
      66 |
      67 |
      68 |
      69 |
      70 |
      71 | 72 | 73 | 109 | -------------------------------------------------------------------------------- /src/main/resources/templates/supportApply.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 资助申请 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 58 | 59 |
      60 |
      61 | 资助申请 62 |
      63 |
      64 |
      65 | 资源名: 66 |
      67 | 68 |
      69 | 70 |
      71 |
      72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 93 | 94 | 95 |
      资源名创建时间资源描述资源级别操作
      国家助学金2016-11-29
      人生就像是一场修行
      国家 90 | 申请 91 | 已申请 92 |
      96 |
      97 | 首页 98 | 上一页 99 | 下一页 100 | 尾页 101 |
      102 |
      103 |
      104 | 105 | 106 | 107 | 108 | 109 | 124 | -------------------------------------------------------------------------------- /src/main/resources/templates/teacher/TchangePassword.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 修改密码 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 59 | 60 |
      61 |
      62 | 修改密码 63 |
      64 | 65 |
      66 |
      67 | 68 |
      69 | 70 |
      71 |
      72 |
      73 | 74 |
      75 | 76 |
      77 |
      78 |
      79 |
      80 | 81 | 82 |
      83 |
      84 |
      85 |
      86 |
      87 | 88 | 89 | 103 | -------------------------------------------------------------------------------- /src/main/resources/templates/teacher/Tmain.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 主页 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 59 | 60 |
      61 |
      62 | 主页 63 |
      64 | 65 |
      66 |
      67 |
      68 |
      69 |
      70 |
      71 | 72 | 73 | 126 | -------------------------------------------------------------------------------- /src/main/resources/templates/teacher/TstudentInfo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 学生信息 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 59 | 60 |
      61 |
      62 | 学生信息 63 |
      64 | 65 |
      66 | 学号: 67 |
      68 | 69 |
      70 | 姓名: 71 |
      72 | 73 |
      74 | 75 |
      76 |
      77 |
      78 |
      79 | 80 | 83 | 86 | 89 | 92 | 95 | 96 | 97 | 98 | 99 | 155 | -------------------------------------------------------------------------------- /src/main/resources/templates/teacher/TuserInfo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 用户信息 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 59 | 60 |
      61 |
      62 | 用户信息 63 |
      64 | 65 |
      66 |
      67 | 68 |
      69 | 70 |
      71 |
      72 |
      73 | 74 |
      75 | 76 |
      77 |
      78 |
      79 | 80 |
      81 | 82 |
      83 |
      84 |
      85 |
      86 | 87 | 88 |
      89 |
      90 |
      91 |
      92 |
      93 | 94 | 108 | -------------------------------------------------------------------------------- /src/main/resources/templates/teacher/_TFragment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 用户信息 6 | 7 | 8 | 9 | 10 | 11 | 12 | 用户信息 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
      23 |
      24 | 贫困生资助系统 25 |
      26 | 35 |
      36 | 37 | 38 | 39 | 68 | 69 | -------------------------------------------------------------------------------- /src/main/resources/templates/userInfo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 用户信息 6 | 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 | 贫困生资助系统 15 |
      16 | 26 |
      27 | 28 |
      29 | 30 | 58 | 59 |
      60 |
      61 | 用户信息 62 |
      63 | 64 |
      65 |
      66 | 67 |
      68 | 69 |
      70 |
      71 |
      72 | 73 |
      74 | 75 |
      76 |
      77 |
      78 | 79 |
      80 | 81 |
      82 |
      83 |
      84 |
      85 | 86 | 87 |
      88 |
      89 |
      90 |
      91 |
      92 | 93 | 94 | 108 | -------------------------------------------------------------------------------- /src/test/java/com/edu/PoorstudentApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.edu; 2 | 3 | import com.baomidou.mybatisplus.core.metadata.IPage; 4 | import com.edu.dao.ResourceDao; 5 | import com.edu.dao.StudentDao; 6 | import com.edu.service.StudentService; 7 | 8 | import com.edu.service.TeacherService; 9 | import com.edu.vo.EcharsDataVO2; 10 | import com.edu.vo.ResourceApplyVO; 11 | import com.edu.vo.ResourceStudentSupportVO; 12 | import org.junit.jupiter.api.Test; 13 | import org.springframework.beans.factory.annotation.Autowired; 14 | import org.springframework.boot.test.context.SpringBootTest; 15 | 16 | 17 | import javax.annotation.Resource; 18 | import java.util.List; 19 | 20 | 21 | @SpringBootTest 22 | class PoorstudentApplicationTests { 23 | @Resource 24 | StudentDao studentDao; 25 | @Test 26 | void contextLoads() { 27 | EcharsDataVO2 echarsDataVO2 = studentDao.selectSpecialCount(); 28 | System.out.println(echarsDataVO2.toString()); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/test/java/com/edu/Test1.java: -------------------------------------------------------------------------------- 1 | package com.edu; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.util.DigestUtils; 5 | 6 | public class Test1 { 7 | @Test 8 | public void t(){ 9 | //md5加盐加密 10 | String passwordSalt = "123"+"x@7faqgjw"; 11 | String md5UserPassword = DigestUtils.md5DigestAsHex(passwordSalt.getBytes()); 12 | System.out.println("md5Str = " + md5UserPassword); 13 | } 14 | } 15 | --------------------------------------------------------------------------------