| | |
| | | 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); |
| | | } |