基于javaweb+mysql的ssm+maven智能制造生产管理平台(java+ssm+mysql+maven+easyui+jsp)

基于javaweb+mysql的ssm+maven智能制造生产管理平台(java+ssm+mysql+maven+easyui+jsp)

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

基于javaweb+mysql的SSM+Maven智能制造生产管理平台(java+ssm+mysql+maven+easyui+jsp)

运行环境:jdk1.8、tomcat7.0/8.5、Mysql5.7/5.1、Maven3.6/3.5、 eclipse/STS

功能简介:计划进度、设备管理、工艺监控、物料监控、质量监控、人员监控等


*/

@PostMapping("/brand")

@ResponseBody

public int addtDeviceBrand(DeviceBrand deviceBrand){

return baseInfoService.addtDeviceBrand(deviceBrand);

/**

* 删除设备品牌

* @param brandId

* @return

*/

@DeleteMapping("/brand/{brandId}")

@ResponseBody


* @param map

* @return

*/

@RequestMapping("/brand/list")

public String listDeviceBrand(ModelMap map){

List<DeviceBrand> brandList = baseInfoService.listDeviceBrand();

map.put("brandList",brandList);

return "deviceBrands::table-refresh";

/**

* 添加设备品牌

* @param deviceBrand

* @return

*/


* 获取所有设备品牌信息

* @param map

* @return

*/

@RequestMapping("/brand/list")

public String listDeviceBrand(ModelMap map){

List<DeviceBrand> brandList = baseInfoService.listDeviceBrand();

map.put("brandList",brandList);

return "deviceBrands::table-refresh";

/**

* 添加设备品牌

* @param deviceBrand

* @return


@DeleteMapping("/brand/{brandId}")

@ResponseBody

public int delteDeviceBrandByid(@PathVariable("brandId") String brandId){

return baseInfoService.deleteDeviceBrandById(brandId);

/**

* 修改品牌

* @param deviceBrand

* @return

*/

@PutMapping("/brand")


return "allotDevice::list-refresh";

/**

* 添加账户

* @param account

* @return

*/

@PostMapping

@ResponseBody

public int addAccount(Account account){

return accountService.addAccount(account);

/**

* 根据uuid删除账户

return "account::table-refresh";

/**

* 通过用户名称搜索用户

* @param map

* @param userName

* @return

*/

@GetMapping("/list/{userName}")

public String listAccountsByUserName(ModelMap map,@PathVariable("userName")String userName){

List<AccountDTO> accountList = accountService.listAccountByName(userName);

map.put("accountDTOList", accountList);

return "account::table-refresh";


* 添加设备品牌

* @param deviceBrand

* @return

*/

@PostMapping("/brand")

@ResponseBody

public int addtDeviceBrand(DeviceBrand deviceBrand){

return baseInfoService.addtDeviceBrand(deviceBrand);

/**

* 删除设备品牌


public String listDeviceType(ModelMap map){

List<DeviceType> typeList = baseInfoService.listDeviceType();

map.put("typeList",typeList);

return "deviceTypes::table-refresh";

/**

* 添加设备类型

* @param deviceType

* @return

*/

@PostMapping("/type")

@ResponseBody

return  accountService.updateAccountLevel(level,groups);

};

登录控制层:

@Controller

public class LoginController {

@RequestMapping("/login")

public String login(HttpServletRequest request, Model mv) {

String e = (String) request.getAttribute("shiroLoginFailure");

if (e != null) {

if (e.contains("org.apache.shiro.authc.UnknownAccountException")) {

mv.addAttribute("msg", "账号不存在");


String[] groups = request.getParameter("groups").split(",");

int level = Integer.parseInt(request.getParameter("level"));

return  accountService.updateAccountLevel(level,groups);

};

登录控制层:

@Controller

public class LoginController {

@RequestMapping("/login")

public String login(HttpServletRequest request, Model mv) {

String e = (String) request.getAttribute("shiroLoginFailure");

if (e != null) {

if (e.contains("org.apache.shiro.authc.UnknownAccountException")) {

mv.addAttribute("msg", "账号不存在");

@PutMapping("/password")

@ResponseBody

public int updatePassword(String uuid, String password){

return accountService.updatePasswordByid(uuid,password);

/**

* 修改账户状态

* @param uuid

* @param status

* @return

*/

@PutMapping("/status")

@ResponseBody


map.put("accountDTOList", accountList);

return "account::table-refresh";

/**

* 添加管理员页面

* @param map

* @return

*/

@GetMapping("/users")

public String listUsers(ModelMap map){

List<AccountDTO> accountList = accountService.listAccountByLevel(3);

map.put("usersDTOList", accountList);

return "system::list-refresh";


*/

@RequestMapping("/type/list")

public String listDeviceType(ModelMap map){

List<DeviceType> typeList = baseInfoService.listDeviceType();

map.put("typeList",typeList);

return "deviceTypes::table-refresh";

/**

* 添加设备类型

* @param deviceType

* @return

*/

@PostMapping("/type")

@ResponseBody


/**

* 删除设备品牌

* @param brandId

* @return

*/

@DeleteMapping("/brand/{brandId}")

@ResponseBody

public int delteDeviceBrandByid(@PathVariable("brandId") String brandId){

return baseInfoService.deleteDeviceBrandById(brandId);

/**

* 修改品牌

* @param deviceBrand

* @return

*/

@DeleteMapping("/{uuid}")

@ResponseBody

public int deleteAccount(@PathVariable("uuid")String uuid){

return accountService.deleteAccountById(uuid);

/**

* 修改账户密码

* @param uuid

* @param password

* @return

*/

public String getOwnerList(ModelMap map, String devId){

Map resMap  = accountService.listOwenrByDevId(devId);

map.put("ownerMap", resMap);

return "allotDevice::list-refresh";

/**

* 添加账户

* @param account

* @return

*/

@PostMapping


*/

@RequestMapping("/type/list")

public String listDeviceType(ModelMap map){

List<DeviceType> typeList = baseInfoService.listDeviceType();

map.put("typeList",typeList);

return "deviceTypes::table-refresh";

/**

* 添加设备类型

* @param deviceType

* @return

*/

@PostMapping("/type")

@ResponseBody


/**

* 添加账户

* @param account

* @return

*/

@PostMapping

@ResponseBody

public int addAccount(Account account){

return accountService.addAccount(account);

/**

* 根据uuid删除账户

* @param uuid

* @return


return accountService.updateStatusByid(uuid,status);

/**

* 更改管理员

* @return

*/

@PutMapping("/admins")

@ResponseBody

public int updateDevOwner(HttpServletRequest request){

String[] groups = request.getParameter("groups").split(",");

int level = Integer.parseInt(request.getParameter("level"));

return  accountService.updateAccountLevel(level,groups);

};
map.put("brandList",brandList);

return "deviceBrands::table-refresh";

/**

* 添加设备品牌

* @param deviceBrand

* @return

*/

@PostMapping("/brand")

@ResponseBody

public int addtDeviceBrand(DeviceBrand deviceBrand){

return baseInfoService.addtDeviceBrand(deviceBrand);

/**

* 删除设备品牌

* @param brandId


return "deviceTypes::table-refresh";

/**

* 添加设备类型

* @param deviceType

* @return

*/

@PostMapping("/type")

@ResponseBody

public int addtDeviceType(DeviceType deviceType){

return baseInfoService.addtDeviceType(deviceType);

/**
@ResponseBody

public int delteDeviceTypByid(@PathVariable("typeId") String typeId){

return baseInfoService.deleteDeviceTypeById(typeId);

/**

* 修改设备类型

* @param deviceType

* @return

*/

@PutMapping("/type")

@ResponseBody

public int updateDeviceType(DeviceType deviceType){

return baseInfoService.updateDeviceType(deviceType);

/**
/**

* 获取所有设备类型信息

* @param map

* @return

*/

@RequestMapping("/type/list")

public String listDeviceType(ModelMap map){

List<DeviceType> typeList = baseInfoService.listDeviceType();

map.put("typeList",typeList);

return "deviceTypes::table-refresh";

/**

/**

* 获取所有设备类型信息

* @param map

* @return

*/

@RequestMapping("/type/list")

public String listDeviceType(ModelMap map){

List<DeviceType> typeList = baseInfoService.listDeviceType();

map.put("typeList",typeList);

return "deviceTypes::table-refresh";

/**

* 添加设备类型


* @return

*/

@RequestMapping("/brand/list")

public String listDeviceBrand(ModelMap map){

List<DeviceBrand> brandList = baseInfoService.listDeviceBrand();

map.put("brandList",brandList);

return "deviceBrands::table-refresh";

/**

* 添加设备品牌

* @param deviceBrand


@PutMapping("/status")

@ResponseBody

public int updateStatus(String uuid,int status){

return accountService.updateStatusByid(uuid,status);

/**

* 更改管理员

* @return

*/

@PutMapping("/admins")

@ResponseBody

public int updateDevOwner(HttpServletRequest request){

请添加图片描述

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值