最近闲得无事,撸了一个小程序系统,源码给大家开源了。
系统的前端是小程序,用户进行操作,系统的后台是springboot。
源码地址:https://pan.baidu.com/s/1RsbgG2ZbJhFaDJxLTw0cTQ?pwd=9kj3
提取码:9kj3
首先看下系统的界面,是不是非常的nice?
如果想看完整的视频演示,如下:
https://www.bilibili.com/video/BV1Y341177Qd?spm_id_from=333.999.0.0
本人比较喜欢开源,希望能帮助到大家学习,但是同时也希望贩卖源码的请绕道!
然后看下系统的核心代码:
@RestController
@RequestMapping("/customer")
public class CustomerController {
@Autowired
private CustomerService customerService;
/**
* 查询
*/
@RequestMapping("loadAllCustomer")
public DataGridView loadAllCustomer(CustomerVo customerVo) {
IPage<Customer> page = new Page<>(customerVo.getPage(), customerVo.getLimit());
QueryWrapper<Customer> queryWrapper = new QueryWrapper<>();
queryWrapper.like(StringUtils.isNotBlank(customerVo.getCustomername()), "customername",
customerVo.getCustomername());
queryWrapper.like(StringUtils.isNotBlank(customerVo.getPhone()), "phone", customerVo.getPhone());
queryWrapper.like(StringUtils.isNotBlank(customerVo.getConnectionperson()), "connectionperson",
customerVo.getConnectionperson());
this.customerService.page(page, queryWrapper);
return new DataGridView(page.getTotal(), page.getRecords());
}
/**
* 添加
*/
@RequestMapping("addCustomer")
public ResultObj addCustomer(CustomerVo customerVo) {
try {
this.customerService.save(customerVo);
return ResultObj.ADD_SUCCESS;
} catch (Exception e) {
e.printStackTrace();
return ResultObj.ADD_ERROR;
}
}
/**
* 修改
*/
@RequestMapping("updateCustomer")
public ResultObj up