wang-hao-jie
2022-03-17 6dfd2599d2e52507e018fd4c6b35d38873e48cfb
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/CustomerReceiveController.java
@@ -61,6 +61,9 @@
    @ApiOperation(value = "编辑或更新数据")
    public Result<CustomerReceive> saveOrUpdate(CustomerReceive customerReceive) {
        if(StrUtil.isEmpty(customerReceive.getCustomerId())){
            return ResultUtil.error("商户id为空,请重新登陆或联系管理员");
        }
        if (iCustomerReceiveService.saveOrUpdate(customerReceive)) {
            return new ResultUtil<CustomerReceive>().setData(customerReceive);
        }