| | |
| | | Customer customer = iCustomerService.getById(id); |
| | | QueryWrapper<CustomerReceive> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("customer_id",id); |
| | | wrapper.eq("customer_id",id); |
| | | wrapper.eq("status",1); |
| | | List<CustomerReceive> list = iCustomerReceiveService.list(wrapper); |
| | | customer.setReceives(list); |
| | | return new ResultUtil<Customer>().setData(customer); |
| | |
| | | Customer customer = iCustomerService.getById(customerId); |
| | | if(StrUtil.isNotEmpty(lng)){ |
| | | customer.setLng(lng); |
| | | }else{ |
| | | return ResultUtil.error("请将信息填写完整"); |
| | | } |
| | | if(StrUtil.isNotEmpty(lat)){ |
| | | customer.setLat(lat); |
| | | }else{ |
| | | return ResultUtil.error("请将信息填写完整"); |
| | | } |
| | | if(StrUtil.isNotEmpty(address)){ |
| | | customer.setRegisteredAddress(address); |
| | | }else{ |
| | | return ResultUtil.error("请将信息填写完整"); |
| | | } |
| | | if(StrUtil.isNotEmpty(headImg)){ |
| | | customer.setHeadImg(headImg); |
| | | }else{ |
| | | return ResultUtil.error("请将信息填写完整"); |
| | | } |
| | | customer.setKstatus(2); |
| | | if (iCustomerService.saveOrUpdate(customer)) { |
| | | return new ResultUtil<Customer>().setData(customer); |
| | | } |