
毕业论文选题系统是基于微信小程序,后端是基于java编程语言,ssm框架,mysql数据库和IDEA工具开发,本系统分为学生,教师,管理员三个角色;学生可以注册登陆系统,查看系统公告,选课论文课题,提交课题论文,查看论文审核,答辩结果等信息;教师可以发布课题,审核学生论文,课题答辩结果,在线回复学生留言;管理员对学生,教师,公告,论文,选题,答辩等进行管理;本系统功能齐全,文档齐全,适合作为微信小程序毕业设计来参考和学习。
一技术环境
jdk版本:18 及以上
ide工具:IDEA ,微信小程序开发工具
数据库: mysql57 (必须57)
编程语言: Java
tomcat: 80 及以上
java框架:SSM
maven: 361
前端:layui ,微信
详细技术:HTML+CSS+JS+JSP+JAVA+SSM+MYSQL+JQUERY+MAVEN+微信开发工具
二项目文件(项目获取请看文末官网)
在这里插入描述
三系统功能
在这里插入描述
四代码示例
package comlmucontroller;
/
和登陆有关的都在这里
/
import comopensymphonyxwork2ActionContext;
import comopensymphonyxwork2ActionSupport;
import comlmumodelRole;
import comlmumodelUser;
import comlmuserviceRoleService;
import comlmuserviceUserService;
import comlmuutilsJsonUtils;
import comlmuutilsUserUtils;
import orgapachecommonscollectionsmapHashedMap;
import orgapachestruts2ServletActionContext;
import orgspringframeworkbeansfactoryannotationAutowired;
import orgspringframeworkcontextannotationScope;
import orgspringframeworkstereotypeController;
import javaioIOException;
import javautilHashMap;
import javautilMap;
@Controller("loginController")
@Scope("prototype")
public class LoginController extends ActionSupport {
@Autowired
private UserService userService;
@Autowired
private RoleService roleService;
private User user;
private Map<String, Object> map = new HashMap();
public User getUser() {
return user;
}
public void setUser(User user) {
thisuser = user;
}
public UserService getUserService() {
return userService;
}
public void setUserService(UserService userService) {
thisuserService = userService;
}
/
用户登陆
@return
/
public void index() throws IOException {
User user1 = userServicegetUser(user);
if (user1 != null){
if (user1getIsSh() == 1){
if (user1getRole()getEnName()equals("admin")){
ActionContextgetContext()getSession()put("user", user1);
}
if (user1getRole()getEnName()equals("js")){
ActionContextgetContext()getSession()put("user1", user1);
}
if (user1getRole()getEnName()equals("xs")){
ActionContextgetContext()getSession()put("user2", user1);
}
mapput("flag", 1);
mapput("url", "login_indexsdo");
mapput("id", user1getId());
JsonUtilstoJson(map);
} else {
mapput("flag", 2);
JsonUtilstoJson(map);
}
} else {
mapput("flag", 3);
JsonUtilstoJson(map);
}
}
public String indexs() throws IOException {
User u = UserUtilsgetUser();
if (u != null){
ActionContextgetContext()put("user", u);
String ss = ugetRole()getEnName();
ActionContextgetContext()put("role", ugetRole()getEnName());
}
return SUCCESS;
}
//登陆页面
public String login() {
return SUCCESS;
}
//退出
public String tuichu() {
ActionContext ac = ActionContextgetContext();
Map session = acgetSession();
sessionremove("userName");
sessionremove("userId");
ServletActionContextgetRequest()getSession()invalidate();
return "login";
}
}
package comlmucontroller;
/
用户新增
/
import comopensymphonyxwork2ActionContext;
import comopensymphonyxwork2ActionSupport;
import comopensymphonyxwork2ModelDriven;
import comlmumodelRole;
import comlmumodelUser;
import comlmuserviceRoleService;
import comlmuserviceUserService;
import comlmuutilsJsonUtils;
import comlmuutilsPager;
import comlmuutilsUserUtils;
import orgspringframeworkbeansfactoryannotationAutowired;
import orgspringframeworkcontextannotationScope;
import orgspringframeworkstereotypeController;
import javaawteventFocusEvent;
import javaioIOException;
import javautilDate;
import javautilHashMap;
import javautilMap;
@Controller("userController")
@Scope("prototype")
public class UserController extends ActionSupport implements ModelDriven<User> {
@Autowired
private UserService userService;
@Autowired
private RoleService roleService;
private User user;
private Integer userId;
private Map<String, Object> map = new HashMap();
/
list
@return
/
public String list() throws IOException {
User user1 = UserUtilsgetUser();
if (user1 == null || user1getId() == null){
ActionContextgetContext()put("login", 1);
return SUCCESS;
}
Pager<User> pagers = null;
Role role = user1getRole();
if (rolegetEnName()equals("admin")) {
pagers = userServicegetList(user);
ActionContextgetContext()put("pagers", pagers);
ActionContextgetContext()put("user", user1);
ActionContextgetContext()put("role", role);
ActionContextgetContext()put("bean", user);
return SUCCESS;
} else if (rolegetEnName()equals("xs") || rolegetEnName()equals("js")) {
pagers = userServicegetList(user1);
ActionContextgetContext()put("pagers", pagers);
ActionContextgetContext()put("bean", user);
return SUCCESS;
}
return null;
}
/
跳转add
@return
/
public String add() {
Pager<Role> pagers = roleServicepagers();
ActionContextgetContext()put("pagers", pagers);
return SUCCESS;
}
/
查询修改
@return
/
public String edit() {
User bean = userServicefindById(userId);
Pager<Role> pagers = roleServicepagers();
ActionContextgetContext()put("bean", bean);
ActionContextgetContext()put("pagers", pagers);
return SUCCESS;
}
/
审核
@return
/
public void updateSh() throws IOException {
usersetIsSh(1);
userServiceupdates(user);
mapput("flag", true);
mapput("url", "user_listdo");
JsonUtilstoJson(map);
}
/
更新
@return
/
public String update() throws IOException {
if (usergetPass()equals("")){
usersetPass(null);
}
userServiceupdates(user);
mapput("flag", true);
mapput("url", "user_listdo");
JsonUtilstoJson(map);
return SUCCESS;
}
/
保存
@return
/
public void save() throws IOException {
if (userServicegetUser(user) != null){
mapput("flag", false);
mapput("url", "login_logindo");
JsonUtilstoJson(map);
} else {
usersetTime(new Date());
userServicesave(user);
mapput("flag", true);
mapput("url", "login_logindo");
JsonUtilstoJson(map);
}
}
public void delete() throws IOException {
User user1 = userServicefindById(userId);
user1setIsDelete(1);
userServiceupdate(user1);
mapput("flag", true);
mapput("url", "user_listdo");
JsonUtilstoJson(map);
}
@Override
public User getModel() {
if (user == null) {
user = new User();
}
return user;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
thisuserId = userId;
}
public User getUser() {
return user;
}
public void setUser(User user) {
thisuser = user;
}
}
以上就是关于小程序input输入框输入和删除时闪烁的问题全部的内容,包括:小程序input输入框输入和删除时闪烁的问题、qq小程序道具优惠劵怎么卡进去、论文双选小程序怎么弄等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)