基于javaweb的SpringBootcrm客户关系管理系统(java+springboot+maven+mysql+freemarker)

运行环境

Java≥8、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

430023182402

440023182402

450023182402

460023182402

470023182402

480023182402

490023182402

基于javaweb的SpringBootcrm客户关系管理系统(java+springboot+maven+mysql+freemarker)

登录:
admin 123456
manager1 123456
manager2 123456
sales1 123456
sales2 123456
sales3 123456
sales4 123456
sales5 123456
sales6 123456

Springboot项目CRM客户关系管理系统:

系统实现了CRM客户关系系统的基本功能,主要有看板(当月参与的业务机会、当月转化情况、将要结束的业务机会等)、业务机会(初步接触中、需求分析中、协商方案中、商业谈判中的业务机会)、客户管理、联系人管理、个人日报管理、查看团队日报、主数据管理(组织架构管理)、系统管理(用户管理、角色管理、菜单管理)。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
public Result delete(@RequestBody List<Integer> ids) {
return roleService.deleteByIds(ids);
}

@RequestMapping(value = "/findById", method = RequestMethod.POST)
@ResponseBody
public Role findById(@RequestBody Role role) {
return roleService.findById(role.getRoleId());
}

@RequestMapping(value = "/update", method = RequestMethod.POST)
@ResponseBody
public Result update(@RequestBody Role role) {
return roleService.update(role);
}

@RequestMapping(value = "/user/{roleId}", method = RequestMethod.GET)
public ModelAndView roleUser(@PathVariable int roleId) {
ModelAndView vm = new ModelAndView("sys/roleUser");
vm.addObject("roleId", roleId);
return vm;
}

@RequestMapping(value = "/user/findUserInRole", method = RequestMethod.POST)
@ResponseBody
public PageInfo<User> findUserInRole(@RequestBody QueryRoleUserVo vo) {
return roleService.findUserInRole(vo);
}

@RequestMapping(value = "/user/remove", method = RequestMethod.POST)
@ResponseBody
public Result deleteRoleUser(@RequestBody RoleUser roleUser) {
return roleService.deleteRoleUser(roleUser);
}

@RequestMapping(value = "/user/findUserNotInRole", method = RequestMethod.POST)
@ResponseBody
public PageInfo<User> findUserNotInRole(@RequestBody QueryRoleUserVo vo) {
return roleService.findUserNotInRole(vo);
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    }

@RequestMapping(value = "/findById", method = RequestMethod.POST)
@ResponseBody
public Customer findById(@RequestBody Customer customer) {
return customerService.findById(customer.getCustomerId());
}

@RequestMapping(value = "/update", method = RequestMethod.POST)
@ResponseBody
public Result update(@RequestBody Customer customer) {
return customerService.update(customer);
}

@RequestMapping(value = "/dashboard/{customerId}", method = RequestMethod.GET)
public ModelAndView dashboard(@PathVariable int customerId) {
ModelAndView vm = new ModelAndView("crm/customerDashboard");
vm.addObject("customerId", customerId);
return vm;
}

@RequestMapping(value = "/updateStar", method = RequestMethod.POST)
@ResponseBody
public Result updateStar(@RequestBody Customer customer) {
return customerService.updateStar(customer);
}

@RequestMapping(value = "/updateLocation", method = RequestMethod.POST)
@ResponseBody
public Result updateLocation(@RequestBody Customer customer) {
return customerService.updateLocation(customer);
}
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

@Controller
@RequestMapping("/orgUnit")
public class OrgUnitController extends AuthorizedController {

@Autowired
private OrgUnitService orgUnitService;

@RequestMapping(value = "", method = RequestMethod.GET)
public String index() {
return "masterData/orgUnit";
}

@RequestMapping(value = "/findAllOrgUnit", method = RequestMethod.POST)
@ResponseBody
public List<OrgUnit> findAllOrgUnit() {
return orgUnitService.findAllOrgUnit();
}

@RequestMapping(value = "/add", method = RequestMethod.POST)
@ResponseBody
public Result add(@RequestBody OrgUnit orgUnit) {
return orgUnitService.insert(orgUnit);
}

@RequestMapping(value = "/update", method = RequestMethod.POST)
@ResponseBody
public Result update(@RequestBody OrgUnit orgUnit) {
return orgUnitService.update(orgUnit);
}

@RequestMapping(value = "/remove", method = RequestMethod.POST)
@ResponseBody
public Result remove(@RequestBody OrgUnit orgUnit) {
return orgUnitService.delete(orgUnit.getOrgUnitId());
}

@RequestMapping(value = "/up", method = RequestMethod.POST)
@ResponseBody
public Result up(@RequestBody OrgUnit orgUnit) {
return orgUnitService.up(orgUnit.getOrgUnitId());
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
            session.setAttribute("User", user);
}
return result;
}

@RequestMapping(value = "/signOut", method = RequestMethod.GET)
@RequireSession
public String signOut() {
session.invalidate();
return "redirect:" + powerTeamConfig.getWebRoot();
}

}



@Controller
@RequestMapping("/district")
public class DistrictController {

@Autowired
private DistrictService districtService;

@RequestMapping(value = "/findAllProvince", method = RequestMethod.POST)
@ResponseBody
public List<District> findAllProvince() {
return districtService.findAllProvince();
}

@RequestMapping(value = "/findCity", method = RequestMethod.POST)
@ResponseBody
public List<District> findCity(@RequestBody int provinceId) {
return districtService.findCity(provinceId);
}

@RequestMapping(value = "/findCounty", method = RequestMethod.POST)
@ResponseBody
public List<District> findCounty(@RequestBody int cityId) {
return districtService.findCounty(cityId);
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
    @ResponseBody
public List<District> findCity(@RequestBody int provinceId) {
return districtService.findCity(provinceId);
}

@RequestMapping(value = "/findCounty", method = RequestMethod.POST)
@ResponseBody
public List<District> findCounty(@RequestBody int cityId) {
return districtService.findCounty(cityId);
}
}



@Controller
@RequestMapping("/fun")
public class FunController {

@Autowired
private FunService funService;

@RequestMapping(value = "/findAll", method = RequestMethod.POST)
@ResponseBody
public List<Fun> findAll() {
return funService.findAll();
}

@RequestMapping(value = "/findFunInRole", method = RequestMethod.POST)
@ResponseBody
public List<Fun> findFunInRole(@RequestBody Integer roleId) {
return funService.findFunInRole(roleId);
}

@RequestMapping(value = "/saveRoleFun", method = RequestMethod.POST)
@ResponseBody
public Result saveMenu(@RequestBody Map map) {
return funService.saveRoleFun((Integer) map.get("roleId"), (List<Integer>) map.get("funIdList"));
}
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    }

@RequestMapping(value = "/findById", method = RequestMethod.POST)
@ResponseBody
public Menu findById(@RequestBody Menu menu) {
return menuService.findById(menu.getMenuId());
}

@RequestMapping(value = "/update", method = RequestMethod.POST)
@ResponseBody
public Result update(@RequestBody Menu menu) {
return menuService.update(menu);
}

@RequestMapping(value = "/up", method = RequestMethod.POST)
@ResponseBody
public Result up(@RequestBody Menu menu) {
return menuService.up(menu.getMenuId());
}

@RequestMapping(value = "/down", method = RequestMethod.POST)
@ResponseBody
public Result down(@RequestBody Menu menu) {
return menuService.down(menu.getMenuId());
}
}




项目链接:
https://javayms.github.io?id=171422302105200fx
https://javayms.pages.dev?id=171422302105200fx