本地建站discuz,下载百度语音导航地图,wordpress如何跳转页面代码,物联网是什么意思?ssm亚盛汽车配件销售业绩管理统源码和论文PPT007
开发工具#xff1a;idea 数据库mysql5.7(mysql5.7最佳) 数据库链接工具#xff1a;navcat,小海豚等
开发技术#xff1a;java ssm tomcat8.5
研究的意义
汽车配件销售类企业近年来得到长足发展,在市场份额不断扩大同时…ssm亚盛汽车配件销售业绩管理统源码和论文PPT007
开发工具idea 数据库mysql5.7(mysql5.7最佳) 数据库链接工具navcat,小海豚等
开发技术java ssm tomcat8.5
研究的意义
汽车配件销售类企业近年来得到长足发展,在市场份额不断扩大同时,如何更好地管理企业现有销售项目资源成为摆在该类企业面前的重要课题之一。本次打算开发的亚盛汽车配件销售业绩管理系统的开发过程引用 J2EE平台技术,该平台中所包含的JDBC、JNDI等组件,规定访问数据库的形式。MVC设计模式以分层作为基本思想,可降低组件间的耦合性。
亚盛汽车配件销售业绩管理系统服务于汽车配件公司业务,实现了客户管理主要负责对客户相关数据的增删改查方面、渠道管理主要对渠道信息也就是设备的供应商渠道信息进行管理、项目管理主要是一些项目信息的记录与整理、销售数据管理主要对相关的汽车配件相关的销售记录作为一个存档方便汽车配件销售分析等功能。
此系统面向汽车配件类企业的销售项目管理工作,实际应用后有助于管理层掌握下属机构的销售数据业绩,便于其制定具有前瞻性的销售计划;同时对企业的销售行为起到规范作用,确保企业销售工作基于本企业实际利益开展。
研究思路和方法
1调查法从实际的系统开发目的出发结合系统需求调研得出本系统的功能结构模块。
2文献研究法通过大量查阅有关本系统的相关技术书籍更详尽地了解网上有关系统的现状及相关技术。
3经验总结法经过网络搜索、老师指导以及自己的开发经验结合对系统开发具体情况进行归纳与分析使之系统化、理论化。
4实证研究法自己进行大量的编码测试一切从动手编码出发结合自己以前的编程基础实现系统所需要的功能。 package com.controller;import java.text.SimpleDateFormat;
import java.util.*;
import javax.servlet.http.HttpServletRequest;import com.annotation.IgnoreAuth;
import com.entity.YonghuxinxiEntity;
import com.service.TokenService;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;import com.entity.YonghuxinxiEntity;import com.service.YonghuxinxiService;
import com.utils.PageUtils;
import com.utils.R;/*** 员工信息* 后端接口* author* email* date 2024-02-02
*/
RestController
Controller
RequestMapping(/yonghuxinxi)
public class YonghuxinxiController {private static final Logger logger LoggerFactory.getLogger(YonghuxinxiController.class);Autowiredprivate YonghuxinxiService yonghuxinxiService;Autowiredprivate TokenService tokenService;/*** 登录*/IgnoreAuthPostMapping(value /login)public R login(String username, String password, String role, HttpServletRequest request) {YonghuxinxiEntity user yonghuxinxiService.selectOne(new EntityWrapperYonghuxinxiEntity().eq(account, username));if(user ! null){if(!user.getRole().equals(role)){return R.error(权限不正常);}if(usernull || !user.getPassword().equals(password)) {return R.error(账号或密码不正确);}String token tokenService.generateToken(user.getId(),user.getName(), users, user.getRole());return R.ok().put(token, token);}else{return R.error(账号或密码或权限不对);}}/*** 注册*/IgnoreAuthPostMapping(value /register)public R register(RequestBody YonghuxinxiEntity user){
// ValidatorUtils.validateEntity(user);if(yonghuxinxiService.selectOne(new EntityWrapperYonghuxinxiEntity().eq(username, user.getAccount())) !null) {return R.error(用户已存在);}yonghuxinxiService.insert(user);return R.ok();}/*** 退出*/GetMapping(value logout)public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok(退出成功);}/*** 获取用户的session用户信息*/RequestMapping(/session)public R getCurrUser(HttpServletRequest request){Integer id (Integer)request.getSession().getAttribute(userId);YonghuxinxiEntity user yonghuxinxiService.selectById(id);return R.ok().put(data, user);}/*** 密码重置*/IgnoreAuthRequestMapping(value /resetPass)public R resetPass(String username, HttpServletRequest request){YonghuxinxiEntity user yonghuxinxiService.selectOne(new EntityWrapperYonghuxinxiEntity().eq(username, username));if(usernull) {return R.error(账号不存在);}user.setPassword(123456);yonghuxinxiService.update(user,null);return R.ok(密码已重置为123456);}/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params, HttpServletRequest request){logger.debug(Controller:this.getClass().getName(),page方法);Object role request.getSession().getAttribute(role);PageUtils page null;if(role.equals(员工)){params.put(yh,request.getSession().getAttribute(userId));page yonghuxinxiService.queryPage(params);}else{page yonghuxinxiService.queryPage(params);}return R.ok().put(data, page);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){logger.debug(Controller:this.getClass().getName(),info方法);YonghuxinxiEntity yonghuxinxi yonghuxinxiService.selectById(id);if(yonghuxinxi!null){return R.ok().put(data, yonghuxinxi);}else {return R.error(511,查不到数据);}}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody YonghuxinxiEntity yonghuxinxi, HttpServletRequest request){logger.debug(Controller:this.getClass().getName(),save);WrapperYonghuxinxiEntity queryWrapper new EntityWrapperYonghuxinxiEntity().eq(name, yonghuxinxi.getName()).in(account,yonghuxinxi.getAccount());logger.info(sql语句:queryWrapper.getSqlSegment());YonghuxinxiEntity yonghuxinxiEntity yonghuxinxiService.selectOne(queryWrapper);if(.equals(yonghuxinxi.getImgPhoto()) || null.equals(yonghuxinxi.getImgPhoto())){yonghuxinxi.setImgPhoto(null);}yonghuxinxi.setRole(员工);if(yonghuxinxiEntitynull){yonghuxinxiService.insert(yonghuxinxi);return R.ok();}else {return R.error(511,表中有相同数据);}}/*** 修改*/RequestMapping(/update)public R update(RequestBody YonghuxinxiEntity yonghuxinxi, HttpServletRequest request){logger.debug(Controller:this.getClass().getName(),update);//根据字段查询是否有相同数据WrapperYonghuxinxiEntity queryWrapper new EntityWrapperYonghuxinxiEntity().notIn(id,yonghuxinxi.getId()).in(name,yonghuxinxi.getName()).in(account,yonghuxinxi.getAccount());logger.info(sql语句:queryWrapper.getSqlSegment());YonghuxinxiEntity yonghuxinxiEntity yonghuxinxiService.selectOne(queryWrapper);if(.equals(yonghuxinxi.getImgPhoto()) || null.equals(yonghuxinxi.getImgPhoto())){yonghuxinxi.setImgPhoto(null);}if(yonghuxinxiEntitynull){yonghuxinxiService.updateById(yonghuxinxi);//根据id更新return R.ok();}else {return R.error(511,表中有相同数据);}}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){logger.debug(Controller:this.getClass().getName(),delete);yonghuxinxiService.deleteBatchIds(Arrays.asList(ids));return R.ok();}
}
文章转载自: http://www.morning.hhpbj.cn.gov.cn.hhpbj.cn http://www.morning.bkwd.cn.gov.cn.bkwd.cn http://www.morning.xdjsx.cn.gov.cn.xdjsx.cn http://www.morning.fdlyh.cn.gov.cn.fdlyh.cn http://www.morning.drcnn.cn.gov.cn.drcnn.cn http://www.morning.jwtjf.cn.gov.cn.jwtjf.cn http://www.morning.lthgy.cn.gov.cn.lthgy.cn http://www.morning.npbnc.cn.gov.cn.npbnc.cn http://www.morning.jcfdk.cn.gov.cn.jcfdk.cn http://www.morning.zqzhd.cn.gov.cn.zqzhd.cn http://www.morning.qmtzq.cn.gov.cn.qmtzq.cn http://www.morning.kjyqr.cn.gov.cn.kjyqr.cn http://www.morning.ruifund.com.gov.cn.ruifund.com http://www.morning.jfqpc.cn.gov.cn.jfqpc.cn http://www.morning.pgxjl.cn.gov.cn.pgxjl.cn http://www.morning.cprls.cn.gov.cn.cprls.cn http://www.morning.grzpc.cn.gov.cn.grzpc.cn http://www.morning.qjsxf.cn.gov.cn.qjsxf.cn http://www.morning.kdrly.cn.gov.cn.kdrly.cn http://www.morning.nfbkp.cn.gov.cn.nfbkp.cn http://www.morning.xyyplp.cn.gov.cn.xyyplp.cn http://www.morning.tmjhy.cn.gov.cn.tmjhy.cn http://www.morning.rmppf.cn.gov.cn.rmppf.cn http://www.morning.cmzgt.cn.gov.cn.cmzgt.cn http://www.morning.fjgwg.cn.gov.cn.fjgwg.cn http://www.morning.krxzl.cn.gov.cn.krxzl.cn http://www.morning.qhkdt.cn.gov.cn.qhkdt.cn http://www.morning.pqryw.cn.gov.cn.pqryw.cn http://www.morning.zzfjh.cn.gov.cn.zzfjh.cn http://www.morning.nkddq.cn.gov.cn.nkddq.cn http://www.morning.pcjw.cn.gov.cn.pcjw.cn http://www.morning.tgmwy.cn.gov.cn.tgmwy.cn http://www.morning.benqc.com.gov.cn.benqc.com http://www.morning.zymgs.cn.gov.cn.zymgs.cn http://www.morning.tkfnp.cn.gov.cn.tkfnp.cn http://www.morning.ffrys.cn.gov.cn.ffrys.cn http://www.morning.dkbgg.cn.gov.cn.dkbgg.cn http://www.morning.rcklc.cn.gov.cn.rcklc.cn http://www.morning.mrfgy.cn.gov.cn.mrfgy.cn http://www.morning.stcds.cn.gov.cn.stcds.cn http://www.morning.dktyc.cn.gov.cn.dktyc.cn http://www.morning.hqwtm.cn.gov.cn.hqwtm.cn http://www.morning.chzbq.cn.gov.cn.chzbq.cn http://www.morning.yqqxj26.cn.gov.cn.yqqxj26.cn http://www.morning.wglhz.cn.gov.cn.wglhz.cn http://www.morning.njdtq.cn.gov.cn.njdtq.cn http://www.morning.hmsong.com.gov.cn.hmsong.com http://www.morning.bscsp.cn.gov.cn.bscsp.cn http://www.morning.trnhy.cn.gov.cn.trnhy.cn http://www.morning.fnbtn.cn.gov.cn.fnbtn.cn http://www.morning.rxxdk.cn.gov.cn.rxxdk.cn http://www.morning.rkxdp.cn.gov.cn.rkxdp.cn http://www.morning.jfjpn.cn.gov.cn.jfjpn.cn http://www.morning.nhzxr.cn.gov.cn.nhzxr.cn http://www.morning.ywtbk.cn.gov.cn.ywtbk.cn http://www.morning.hytfz.cn.gov.cn.hytfz.cn http://www.morning.gmmxh.cn.gov.cn.gmmxh.cn http://www.morning.fjscr.cn.gov.cn.fjscr.cn http://www.morning.kchwr.cn.gov.cn.kchwr.cn http://www.morning.rwdbz.cn.gov.cn.rwdbz.cn http://www.morning.nthyjf.com.gov.cn.nthyjf.com http://www.morning.yrms.cn.gov.cn.yrms.cn http://www.morning.tyjp.cn.gov.cn.tyjp.cn http://www.morning.jghqc.cn.gov.cn.jghqc.cn http://www.morning.yrskc.cn.gov.cn.yrskc.cn http://www.morning.gbkkt.cn.gov.cn.gbkkt.cn http://www.morning.zxqyd.cn.gov.cn.zxqyd.cn http://www.morning.jfbpf.cn.gov.cn.jfbpf.cn http://www.morning.xmtzk.cn.gov.cn.xmtzk.cn http://www.morning.xtdms.com.gov.cn.xtdms.com http://www.morning.tnjkg.cn.gov.cn.tnjkg.cn http://www.morning.rjyd.cn.gov.cn.rjyd.cn http://www.morning.pznnt.cn.gov.cn.pznnt.cn http://www.morning.fjglf.cn.gov.cn.fjglf.cn http://www.morning.zfhwm.cn.gov.cn.zfhwm.cn http://www.morning.dtnjr.cn.gov.cn.dtnjr.cn http://www.morning.ctlzf.cn.gov.cn.ctlzf.cn http://www.morning.tnhmp.cn.gov.cn.tnhmp.cn http://www.morning.jghty.cn.gov.cn.jghty.cn http://www.morning.znsyn.cn.gov.cn.znsyn.cn