当前位置:网站首页>Implementation of purchase, sales and inventory system with ssm+mysql
Implementation of purchase, sales and inventory system with ssm+mysql
2022-07-02 07:19:00 【Night Weiyang 5788】
Author URI : In the middle of the night 5788
brief introduction :Java Quality creators in the field 、Java project 、 Learning materials 、 Technical assistance
Get the source code at the end of the article
Project introduction
Purchase, sales and inventory management system source code , Adopted ssm frame , The functional structure is very simple and clear , The interface is also fresh and atmospheric , Perfect for students and Java Novices learn to use .
This project is mainly divided into administrators 、 sales 、 There are three roles for purchasers ;
The main functions of the administrator include :
User information management : User query 、 Users add ;
Cargo information management : freight inquiry 、 Inventory query ;
Warehouse in document information management : Create a new receipt document 、 Receipt doc approval ;
Warehouse out information management : Create a new delivery order 、 Issue doc approval ;
The main functions of sales include :
Warehouse out information management : Create a new delivery order ;
The main functions of the Buyer include :
Cargo information management : Inventory query
Warehouse in document information management : Create a new receipt document ;
Environmental requirements :
1. Running environment : It is best to java jdk 1.8, We run on this platform . Other versions can, in theory .
2.IDE Environmental Science :IDEA,Eclipse,Myeclipse Fine . recommend IDEA;
3.tomcat Environmental Science :Tomcat 7.x,8.x,9.x All versions are available
4. Hardware environment :windows 7/8/10 1G Above memory ; perhaps Mac OS;
5. whether Maven project : no ;
6. database :MySql 5.7 edition ;
Technology stack
1. Back end :Spring SpringMVC MyBatis
2. front end :JSP+css+javascript+bootstrap+jQuery
Instructions
1. Use Navicat Or other tools , stay mysql Create a database with the corresponding name in , And import the sql file ;
2. Use IDEA/Eclipse/MyEclipse Import the project ,Eclipse/MyEclipse Import time , if maven Item, please select maven;
if maven project , After importing successfully, please execute maven clean;maven install command , To configure tomcat, And then run ;
3. In the project dbconfig.properties Change the database configuration in the configuration file to your own configuration ;
4. Run the project , Input localhost:8080/ERPSystem Sign in
Run a screenshot

Related codes
User controller
@Controller
@RequestMapping("/user/")
public class UserController {
@Autowired
private UserService u;
@Autowired
private HwService h;
@Autowired
private ShService s;
// login
@RequestMapping("tzlogin")
public String tzlogin() {
return "redirect:/";
}
// validate logon
@ResponseBody
@RequestMapping("login")
public String login(User user, HttpSession session, String requestDate) {
Map map = new HashMap();
JSONObject requestJson = JSONObject.fromObject(requestDate);
map.put("name", requestJson.getString("name"));
map.put("password", requestJson.getString("password"));
user.setName(requestJson.getString("name"));
user.setPassword(requestJson.getString("password"));
User user2 = u.login(user);
if (user2 == null) {
Map reMap = new HashMap();
reMap.put("succ", "false");
JSONObject jsonObject = JSONObject.fromObject(reMap);
return jsonObject.toString();
} else {
if(user2.getT2() == 1){ // Status not available
Map reMap = new HashMap();
reMap.put("succ", "no_auth");
JSONObject jsonObject = JSONObject.fromObject(reMap);
return jsonObject.toString();
}
session.setAttribute("t2", user2.getT2());
session.setAttribute("id", user2.getId());
System.out.println("user2" + user2);
session.setAttribute("name", user2.getName());
session.setAttribute("user", user2);
session.setAttribute("t1", user2.getT1());
Map reMap = new HashMap();
reMap.put("succ", "true");
JSONObject jsonObject = JSONObject.fromObject(reMap);
return jsonObject.toString();
}
}
@RequestMapping("sy")
public String denglu(HttpSession session, String t2, Model model, String name, User user) {
int qx = (int) session.getAttribute("t1"); // role
// model.addAttribute("list", u.findall());
if (qx == 0) { // Administrators
model.addAttribute("list", u.findall(user));
return "gly/yh";
} else if (qx == 1) { // Administrators
model.addAttribute("list", u.findall(user));
return "gly/yh";
} else if (qx == 2) { // sales
return "redirect:tzckxs";
} else if (qx == 3) { // buyer
return "redirect:tzkccg";
}
return "redirect:/";
}
@RequestMapping("touser")
public String touser(User user) throws ParseException {
// SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH");
// String time = df.format(System.currentTimeMillis());
user.setDate(new Date(System.currentTimeMillis()));
user.setT1(2);
user.setT2(0);
u.touser(user);
return "redirect:tzlogin";
}
@RequestMapping("delete")
public String delete(int id) {
u.delete(id);
return "redirect:sy";
}
@RequestMapping("tjyh")
public String tzyh() {
return "gly/upyh";
}
@RequestMapping("insert")
public String insert(User user) throws ParseException {
//SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH");
//String time = df.format(new Date(System.currentTimeMillis()));
user.setDate(new Date(System.currentTimeMillis()));
u.touser(user);
return "redirect:sy";
}
If you want to learn this system , Now get . reply :001ssm
边栏推荐
- Sqli Labs clearance summary - page 2
- Sqli labs customs clearance summary-page4
- Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory'
- Oracle apex 21.2 installation and one click deployment
- ORACLE EBS ADI 开发步骤
- Explanation of suffix of Oracle EBS standard table
- Spark SQL task performance optimization (basic)
- Oracle APEX 21.2 installation et déploiement en une seule touche
- ssm超市订单管理系统
- 【模型蒸馏】TinyBERT: Distilling BERT for Natural Language Understanding
猜你喜欢
随机推荐
【信息检索导论】第六章 词项权重及向量空间模型
Only the background of famous universities and factories can programmers have a way out? Netizen: two, big factory background is OK
@Transitional step pit
ORACLE EBS中消息队列fnd_msg_pub、fnd_message在PL/SQL中的应用
UEditor . Net version arbitrary file upload vulnerability recurrence
Cloud picture says | distributed transaction management DTM: the little helper behind "buy buy buy"
解决万恶的open failed: ENOENT (No such file or directory)/(Operation not permitted)
php中计算树状结构数据中的合计
Build FRP for intranet penetration
Agile development of software development pattern (scrum)
【论文介绍】R-Drop: Regularized Dropout for Neural Networks
Ingress Controller 0.47.0的Yaml文件
矩阵的Jordan分解实例
ORACLE 11.2.0.3 不停机处理SYSAUX表空间一直增长问题
ORACLE EBS 和 APEX 集成登录及原理分析
RMAN incremental recovery example (1) - without unbacked archive logs
oracle-外币记账时总账余额表gl_balance变化(上)
CSRF攻击
JSP智能小区物业管理系统
ORACLE EBS接口开发-json格式数据快捷生成









