Java+Springboot+H-ui实现营销管理系统
Posted 水坚石青
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java+Springboot+H-ui实现营销管理系统相关的知识,希望对你有一定的参考价值。
一、系统介绍
1.软件环境
IDEA:2018.2
Java:jdk1.8
mysql:8.0.13
Tomcat:8.5.23
2.功能模块图
3.系统功能
系统设计的目标是开发一个能够实现线上营销管理的系统,实现线索、商机信息记录等功能。系统主要包含五个功能模块:线索信息管理模块、客户信息管理模块、联系人信息管理模块、商机信息管理模块、员工信息管理模块。各模块具体功能如下:
1.线索信息管理模块
销售人员登录系统后,将自己找到的线索信息录入到系统中,或查看系统中已有线索,对某些线索进行信息更新。
2.客户信息管理模块
销售人员登录系统后,将已经与公司产生交易的客户信息录入到系统中,或将已经达成交易的线索转化为客户,对某些已有客户信息进行更新。
3.联系人信息管理模块
销售人员登录系统后,录入系统中已存在客户的联系人的信息,方便以后进行客户的回访和关系维护。
4.商机信息管理模块
当之前的线索成交并转化为客户后,销售人员需要将已成交信息作为商机录入到系统中,供公司日后查看和分析。
5.员工信息管理模块
管理员在系统中为公司新入职销售人员添加账号,并维护其部门信息等基本信息,同时将已离职员工账号禁用。为更换手机号员工重置登录账号,为忘记密码员工重置密码。
4.数据库表
1.客户表
2.联系人表
3.商机表
4.线索表
5.用户表
5.工程截图
二、系统展示
1.系统登录
2.系统主页
3.新增用户
4.查询用户
5.更新用户
6.新增客户
7.查询客户
8.更新客户
9.新增联系人
10.查询联系人
11.更新联系人
12.新增线索
13.查询线索
14.更新线索
15.新增商机
16.查询商机
17.更新商机
三、代码实现
BusinessController
package com.example.cra.controller;
import com.example.cra.entity.Business;
import com.example.cra.entity.Contact;
import com.example.cra.service.BusinessService;
import com.example.cra.service.ContactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("/business")
public class BusinessController {
@Autowired
private BusinessService businessService;
@RequestMapping(value = "/addbusiness" , method = RequestMethod.POST)
public Map<String,Object> addBusiness(@RequestBody Business business) {
Map<String, Object> map = new HashMap<String, Object>();
String result = businessService.addBusiness(business);
map.put("msg", result);
return map;
}
@RequestMapping(value = "/businessList" , method = RequestMethod.GET)
public Map<String,Object> businessList() {
Map<String, Object> map = new HashMap<String, Object>();
List<Business> business = businessService.businessList();
map.put("business",business);
return map;
}
@RequestMapping(value = "/delbusiness" , method = RequestMethod.GET)
public Map<String,Object> delBusinesss(@RequestParam("business_id") String business_id) {
Map<String, Object> map = new HashMap<String, Object>();
String result = businessService.delBusiness(Integer.parseInt(business_id));
map.put("msg",result);
return map;
}
@RequestMapping(value = "/querybusiness" , method = RequestMethod.POST)
public Map<String,Object> queryBusinesss(@RequestParam("business_name") String business_name,
@RequestParam("business_state") String business_state,
@RequestParam("person") String person) {
Map<String, Object> map = new HashMap<String, Object>();
List<Business> business = businessService.queryBusiness(business_name,business_state,person);
map.put("business",business);
return map;
}
@RequestMapping(value = "/selectbusiness" , method = RequestMethod.POST)
public Map<String,Object> selectBusiness(@RequestParam("business_id") String business_id) {
Map<String, Object> map = new HashMap<String, Object>();
Business business = businessService.selectBusiness(Integer.parseInt(business_id));
map.put("business",business);
return map;
}
@RequestMapping(value = "/updatebusiness" , method = RequestMethod.POST)
public Map<String,Object> updateBusiness(@RequestBody Business business) {
Map<String, Object> map = new HashMap<String, Object>();
boolean result = businessService.updateBusiness(business);
map.put("success",result);
return map;
}
}
ClueController
package com.example.cra.controller;
import com.example.cra.entity.Clue;
import com.example.cra.service.ClueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("/clue")
public class ClueController {
@Autowired
private ClueService clueService;
@RequestMapping(value = "/addclue" , method = RequestMethod.POST)
public Map<String,Object> addClue(@RequestBody Clue clue) {
Map<String, Object> map = new HashMap<String, Object>();
String result = clueService.addClue(clue);
map.put("msg", result);
return map;
}
@RequestMapping(value = "/clueList" , method = RequestMethod.GET)
public Map<String,Object> clueList() {
Map<String, Object> map = new HashMap<String, Object>();
List<Clue> clue = clueService.clueList();
map.put("clue",clue);
return map;
}
@RequestMapping(value = "/delclue" , method = RequestMethod.GET)
public Map<String,Object> delClues(@RequestParam("clue_id") String clue_id) {
Map<String, Object> map = new HashMap<String, Object>();
String result = clueService.delClue(Integer.parseInt(clue_id));
map.put("msg",result);
return map;
}
@RequestMapping(value = "/queryclue" , method = RequestMethod.POST)
public Map<String,Object> queryClues(@RequestParam("clue_name") String clue_name,
@RequestParam("person") String person) {
Map<String, Object> map = new HashMap<String, Object>();
List<Clue> clue = clueService.queryClue(clue_name,person);
map.put("clue",clue);
return map;
}
@RequestMapping(value = "/selectclue" , method = RequestMethod.POST)
public Map<String,Object> selectClue(@RequestParam("clue_id") String clue_id) {
Map<String, Object> map = new HashMap<String, Object>();
Clue clue = clueService.selectClue(Integer.parseInt(clue_id));
map.put("clue",clue);
return map;
}
@RequestMapping(value = "/updateclue" , method = RequestMethod.POST)
public Map<String,Object> updateClue(@RequestBody Clue clue) {
Map<String, Object> map = new HashMap<String, Object>();
boolean result = clueService.updateClue(clue);
map.put("success",result);
return map;
}
}
ContactController
package com.example.cra.controller;
import com.example.cra.entity.Contact;
import com.example.cra.service.ContactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("/contacts")
public class ContactController {
@Autowired
private ContactService contactService;
@RequestMapping(value = "/addcontacts" , method = RequestMethod.POST)
public Map<String,Object> addContact(@RequestBody Contact contact) {
Map<String, Object> map = new HashMap<String, Object>();
String result = contactService.addContact(contact);
map.put("msg", result);
return map;
}
@RequestMapping(value = "/contactsList" , method = RequestMethod.GET)
public Map<String,Object> contactList() {
Map<String, Object> map = new HashMap<String, Object>();
List<Contact> contact = contactService.contactList();
map.put("contact",contact);
return map;
}
@RequestMapping(value = "/delcontacts" , method = RequestMethod.GET)
public Map<String,Object> delContacts(@RequestParam("cont_id") String contacts_id) {
Map<String, Object> map = new HashMap<String, Object>();
String result = contactService.delContact(Integer.parseInt(contacts_id));
map.put("msg",result);
return map;
}
@RequestMapping(value = "/querycontacts" , method = RequestMethod.POST)
public Map<String,Object> queryContacts(@RequestParam("customer_name") String customer_name,
@RequestParam("telephone") String telephone,
@RequestParam("contacts_name") String contacts_name) {
Map<String, Object> map = new HashMap<String, Object>();
List<Contact> contact = contactService.queryContact(customer_name,telephone,contacts_name);
map.put(JavaWeb(SpringBoot)汽车信息管理系统(数据库+源码+论文《精品毕设》)实现客户端汽车信息查看发布汽车信息评论收藏后台对用户管理汽车类型管理汽车管公告信息评论信息的
计算机毕业设计之java+springboot基于vue的医院信管系统