Design of customer relationship management system based on java SpringBoot CRM

        The rapid development and wide application of today's computer technology and information management technology provide a broad platform for the application of management-related theories. IT technology and DBT technology (database technology) The customer information management system designed based on "Customer Information Management System" is gradually developing into a new trend in the development of management models. Enterprises establish customer information management systems, which can adapt to the rapidly changing market situation and fully grasp Customer information, integrate user information resources, realize customer information sharing within the enterprise, and realize people-oriented. Avoid inaccurate information caused by deviation, which is beneficial to the company's production and operation process and improves the efficiency of the customer service department.

        Customers are one of the most important resources of an enterprise. With the changes in the market competition environment, enterprises are facing an increasingly complex marketing environment. Every enterprise hopes to get closer to customers to ease the increasing pressure of competition. Customer information management is the effective deployment of enterprise resources through the basic situation of customers. It is a strategy of cultivating a customer-centric business model and implementing customer-centric business processes. In order to improve the information management ability of Company A, realize scientific development, strengthen the market mechanism, improve the performance of the company, and make it easier for the company to enter the era of highly competitive market economy. Use relevant development tools, combined with the actual development of the company's customer information management system, realize customer information management through information management, change the existing paper records, no need to store information uniformly, and establish a customer information database in the company to store customer data Carry out standardized and unified management.        

 

 

Implemented functions:

The functions of this system should include: user login, marketing management, customer management, service management, statistical reports and other functions.

User login: users can enter the system with the correct user name and password;

Marketing management: including marketing opportunity management and customer development plan;

Customer management: including customer information management and customer loss management;

Service management: including service creation, service allocation, service processing, service feedback, and service archiving;

Statistical report: Use charts to realize customer contribution analysis, customer composition analysis, customer service analysis, and customer loss analysis.

 

Technologies used:

Java language, SpringBoot framework, MySQL database, Maven dependency management, layUI, etc.

 

 Part of the code display

@Controller
@RequestMapping("user")
public class UserController extends BaseController {
    @Autowired
    private UserService userService;

    /***
     * 如果有异常就捕获
     * 没有异常就说明登录成功
     * 将service生成的userModel赋给resultInfo
     * @param userName
     * @param userPwd
     * @return
     */
    @PostMapping("login")
    @ResponseBody
    public ResultInfo userLogin(String userName,String userPwd){
        ResultInfo resultInfo=new ResultInfo();
        UserModel userModel=userService.userLogin(userName,userPwd);
        resultInfo.setResult(userModel);

        return resultInfo;
    }

    @ResponseBody
    @PostMapping("updatePassword")
    public ResultInfo updatePassword(HttpServletRequest request,String oldPassword, String newPassword, String repeatPassword){
        ResultInfo resultInfo=new ResultInfo();
        System.out.println(oldPassword);
        Integer userId= LoginUserUtil.releaseUserIdFromCookie(request);
        userService.updatePassword(userId,oldPassword,newPassword,repeatPassword);
//        try{

        return resultInfo;
    }
    @RequestMapping("toPasswordPage")
    public  String toPasswordPage(){
        return "user/password";
    }

    @RequestMapping("list")
    @ResponseBody
    public Map<String,Object> selectByParams(UserQuery userQuery){
        return userService.queryByParamsForTable(userQuery);
    }
    @RequestMapping("index")
    public String index(){
        return "user/user";
    }

    @ResponseBody
    @PostMapping("add")
    public ResultInfo addUser(User user){
        userService.addUser(user);
        return success("添加用户成功");
    }
    @RequestMapping("addOrUpdateUserPage")
    public String addOrUpdateUserPage(Integer id,HttpServletRequest request){
        if(id!=null){
            User user=userService.selectByPrimaryKey(id);
            request.setAttribute("userInfo",user);
        }
        return "user/add_update";
    }

    @PostMapping("update")
    @ResponseBody
    public ResultInfo updateUser(User user){
        userService.updateUser(user);
        return success("更新用户成功");
    }

    @ResponseBody
    @PostMapping("delete")
    public ResultInfo deleteUser(Integer[] ids){
        userService.deleteUser(ids);
        return success("删除用户成功");
    }

    @PostMapping("queryAllCustomerManager")
    @ResponseBody
    public List<Map<String,Object>> queryAllCustomerManager(){
        return userService.queryAllCustomerManager();
    }
}
<!DOCTYPE html>
<html>
<head>
	<title>用户管理</title>
	<#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form" >
	<blockquote class="layui-elem-quote quoteBox">
		<form class="layui-form">
			<div class="layui-inline">
				<div class="layui-input-inline">
					<input type="text" name="userName"
						   class="layui-input
					searchVal" placeholder="用户名" />
				</div>
				<div class="layui-input-inline">
					<input type="text" name="email" class="layui-input
					searchVal" placeholder="邮箱" />
				</div>
				<div class="layui-input-inline">
					<input type="text" name="phone" class="layui-input
					searchVal" placeholder="手机号" />
				</div>
				<a class="layui-btn search_btn" data-type="reload"><i
							class="layui-icon"></i> 搜索</a>
			</div>
		</form>
	</blockquote>
	<table id="userList" class="layui-table"  lay-filter="users"></table>

	<script type="text/html" id="toolbarDemo">
		<div class="layui-btn-container">
			<a class="layui-btn layui-btn-normal addNews_btn" lay-event="add">
				<i class="layui-icon"></i>
				添加用户
			</a>
			<a class="layui-btn layui-btn-normal delNews_btn" lay-event="del">
				<i class="layui-icon"></i>
				删除用户
			</a>
		</div>
	</script>
	<!--操作-->
	<script id="userListBar" type="text/html">
		<a class="layui-btn layui-btn-xs" id="edit" lay-event="edit">编辑</a>
		<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
	</script>
</form>
<script type="text/javascript" src="${ctx}/js/user/user.js"></script>

</body>
</html>

Based on java SpringBoot-CRM customer relationship management system

Guess you like

Origin blog.csdn.net/qq_28245905/article/details/132421508