首页 > 编程语言 >基于SpringBoot+Vue的协力服装厂服装生产管理系统设计与实现毕设(文档+源码)

基于SpringBoot+Vue的协力服装厂服装生产管理系统设计与实现毕设(文档+源码)

时间:2024-10-17 19:21:26浏览次数:3  
标签:gongzi Vue RequestMapping 服装厂 gongziService GongziEntity 源码 ew public

目录

一、项目介绍

二、开发环境

三、功能介绍

四、核心代码

五、效果图

六、源码获取:


        大家好呀,我是一个混迹在java圈的码农。今天要和大家分享的是 一款基于SpringBoot+Vue的协力服装厂服装生产管理系统,项目源码请点击文章末尾联系我哦~目前有各类成品 毕设 JavaWeb  SSM SpringBoot等等项目框架,源码丰富,欢迎咨询。 

一、项目介绍

本协力服装厂服装生产管理系统设计目标是实现协力服装厂服装生产的信息化管理,提高管理效率,使得协力服装厂服装生产管理作规范化、科学化、高效化。

本文重点阐述了协力服装厂服装生产管理系统的开发过程,以实际运用为开发背景,基于Springboot框架,运用了Java编程语言和MYSQL数据库进行开发,充分保证系统的安全性和稳定性。本系统界面良好,操作简单方便,通过系统概述、系统分析、系统设计、数据库设计、系统测试这几个部分,详细的说明了系统的开发过程,最后并对整个开发过程进行了总结,实现了服装生产相关信息管理的重要功能。

本协力服装厂服装生产管理系统运行效果稳定,操作方便、快捷,界面友好,是一个功能全面、实用性好、安全性高,并具有良好的可扩展性、可维护性的服装生产管理平台。

关键词:服装生产管理,Java编程语言,Springboot框架,MYSQL数据库

二、开发环境

开发系统:Windows
JDK版本:Java JDK1.8(推荐)
开发工具:IDEA/MyEclipse(推荐IDEA)
数据库版本: mysql8.0(推荐)
数据库可视化工具: navicat
服务器:SpringBoot自带 apache tomcat
框架:springboot,vue

三、功能介绍

        用户在系统前台可查看系统信息,包括首页、人事安排以及样板等;管理员登录后可查询、添加、修改和删除用户信息、人事安排信息;管理员可增删改查工资信息,用户登录后可查看个人工资信息;管理员可查看用户添加的考勤,并可对其进行审核操作;

四、核心代码
 

/**
 * 工资
 * 后端接口
 * @author 
 * @email 
 */
@RestController
@RequestMapping("/gongzi")
public class GongziController {
    @Autowired
    private GongziService gongziService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,GongziEntity gongzi,
		HttpServletRequest request){
		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("yonghu")) {
			gongzi.setZhanghao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<GongziEntity> ew = new EntityWrapper<GongziEntity>();
		PageUtils page = gongziService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gongzi), params), params));

        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
	@IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,GongziEntity gongzi, HttpServletRequest request){
        EntityWrapper<GongziEntity> ew = new EntityWrapper<GongziEntity>();
		PageUtils page = gongziService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gongzi), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( GongziEntity gongzi){
       	EntityWrapper<GongziEntity> ew = new EntityWrapper<GongziEntity>();
      	ew.allEq(MPUtil.allEQMapPre( gongzi, "gongzi")); 
        return R.ok().put("data", gongziService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(GongziEntity gongzi){
        EntityWrapper< GongziEntity> ew = new EntityWrapper< GongziEntity>();
 		ew.allEq(MPUtil.allEQMapPre( gongzi, "gongzi")); 
		GongziView gongziView =  gongziService.selectView(ew);
		return R.ok("查询工资成功").put("data", gongziView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        GongziEntity gongzi = gongziService.selectById(id);
        return R.ok().put("data", gongzi);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        GongziEntity gongzi = gongziService.selectById(id);
        return R.ok().put("data", gongzi);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody GongziEntity gongzi, HttpServletRequest request){
    	gongzi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(gongzi);
        gongziService.insert(gongzi);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody GongziEntity gongzi, HttpServletRequest request){
    	gongzi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(gongzi);
        gongziService.insert(gongzi);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody GongziEntity gongzi, HttpServletRequest request){
        //ValidatorUtils.validateEntity(gongzi);
        gongziService.updateById(gongzi);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        gongziService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
}

五、效果图

六、源码获取:

标签:gongzi,Vue,RequestMapping,服装厂,gongziService,GongziEntity,源码,ew,public
From: https://blog.csdn.net/m0_48205251/article/details/142612447

相关文章