论文双选小程序怎么弄

论文双选小程序怎么弄,第1张

毕业论文选题系统是基于微信小程序,后端是基于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;

}

}

监控sql server数据库记录批量更新的方法是利用触发器记录更新历史。

在sql server中惊醒dml *** 作可以建立插入或者更新的触发器:

update更新类型触发器

if (object_id('tgr_classes_update', 'TR') is not null)

drop trigger tgr_classes_update

go

create trigger tgr_classes_update

on classes

for update

as

declare @oldName varchar(20), @newName varchar(20);

--更新前的数据

select @oldName = name from deleted;

if (exists (select from student where name like '%'+ @oldName + '%'))

begin

--更新后的数据

select @newName = name from inserted;

update student set name = replace(name, @oldName, @newName) where name like '%'+ @oldName + '%';

print '级联修改数据成功!';

end

else

print '无需修改student表!';

go

原因:queryget  方法是异步的(小程序的请求方法基本都是异步执行),所以程序会先执行updatePostData();方法 。而此时数据detail并未绑定数据,所以自然拿不到前面设定的值

解决方案:

在queryget执行完毕后的回调函数调用updatePostData()方法

使用fetchthen

用户访问微信小程序时,都需要微信授权登录,当我们已经授权登录之后,想要清除小程序登录信息,怎么解决,此时需要解绑授权登录,下面木鱼小铺小编就和大家分享一下微信小程序怎么解绑授权,清除小程序登录信息?

步骤一:进入小程序信息主页面

找到您想取消授权的小程序,点击右上角图标,将会d出快捷菜单,选择小程序名称,进入小程序信息主页面,如图所示:

步骤二:进入权限设置

点击底部设置按钮,进入权限设置界面,如图所示:

步骤三:点击位置信息,将使用时变更为不允许,就可以了。如图所示:

以上就是微信小程序怎么解绑授权,清除小程序登录信息方法,大家可以参考以上方法,清除一下小程序登录信息。

那么,出了问题的Windows update该如何进行修复呢? WUfacility就是一个专门用来对Windows Update功能做修复的小程序。程序的使用非常简单,一共只有两个按钮,一个用来修复Windows update,另一个则是用来推出程序。 程序的主界面上清楚地列出了修复Windows Update所做的5项 *** 作: 1、清理Windows临时文件 2、停止Windows Update服务 3、清理Windows update临时文件 4、重新注册Windows Update相关的DLL动态链接库文件 5、重新启动Windows Update服务 如果你愿意的话,也完全可以自己动手来完成上面这些 *** 作,但显然还是使用程序来做会方便一些:) WUfacility可以在Windows XP、Windows Vista以及Windows 7下正常使用,但前提是需要有Microsoft Net Framework 20的支持。

以上就是关于论文双选小程序怎么弄全部的内容,包括:论文双选小程序怎么弄、求助“用一个小程序监控数据库中的表是否有更新、微信小程序data数据获取问题等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zz/9645479.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-30
下一篇2023-04-30

发表评论

登录后才能评论

评论列表(0条)

    保存