10095基于SSH开发的陶瓷工厂进存销管理系统
代码:
鏈-椄:https://pan@baidu@com/s/1a01LN31IJLzHxmVgwtVjbg (把@换成 . 就可正常访问)
趧-紶-碼:9768
f/u枝此段-吶傛打开baidu網盤手机App,caozuo更方便哦
技术
Spring + Struts + Hibernate
工具
eclipse + tomact + mysql + jdk
功能详情
功能详情 |
---|
基础信息管理 |
进货管理 |
销售管理 |
查询统计 |
库存管理 |
系统管理 |
系统相关截图
● 系统首页
@RestController
@RequestMapping("/user")
之后
public class UserController {
@GetMapping("/list")
public JSONObject listUser(HttpServletRequest request) {
return userService.listUser(CommonUtil.request2Json(request));
}
}/**
-
@author: hxy
-
@description: 用户/角色/权限相关controller
-
@date: 2017/11/2 10:19
*/
@RestController
@RequestMapping("/user")
public class UserController {
@Autowired
private UserService userService;/**
- 查询用户列表
- @param request
- @return
*/
@RequiresPermissions(“user:list”)
@GetMapping("/list")
public JSONObject listUser(HttpServletRequest request) {
return userService.listUser(CommonUtil.request2Json(request));
}
@RequiresPermissions(“user:add”)
@PostMapping("/addUser")
public JSONObject addUser(@RequestBody JSONObject requestJson) {
CommonUtil.hasAllRequired(requestJson, “username, password, nickname, roleId”);
return userService.addUser(requestJson);
}@RequiresPermissions(“user:update”)
@PostMapping("/updateUser")
public JSONObject updateUser(@RequestBody JSONObject requestJson) {
CommonUtil.hasAllRequired(requestJson, " nickname, roleId, deleteStatus, userId");
return userService.updateUser(requestJson);
}@RequiresPermissions(value = {“user:add”, “user:update”}, logical = Logical.OR)
<
@GetMapping("/getAllRoles")
public JSONObject getAllRoles() {
return userService.getAllRoles();
}