| | |
| | | QueryWrapper<Fingerprint> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("code",code); |
| | | wrapper.eq("area_id",c.getAreaId()); |
| | | wrapper.eq("customer_id",customerId); |
| | | Fingerprint one = iFingerprintService.getOne(wrapper); |
| | | if(one==null){ |
| | | return ResultUtil.error("指纹与商户不匹配"); |
| | | } |
| | | |
| | | CustomerReceive customerReceive = iCustomerReceiveService.getById(one.getCustomerReceiveId()); |
| | | return new ResultUtil<Object>().setData(customerReceive); |
| | |
| | | Customer byId = iCustomerService.getById(fingerprint.getCustomerId()); |
| | | fingerprint.setAreaId(byId.getAreaId()); |
| | | } |
| | | |
| | | if(StrUtil.isNotEmpty(fingerprint.getCustomerReceiveId())){ |
| | | CustomerReceive byId = iCustomerReceiveService.getById(fingerprint.getCustomerReceiveId()); |
| | | byId.setFstatus(1); |
| | | iCustomerReceiveService.saveOrUpdate(byId); |
| | | } |
| | | if (iFingerprintService.saveOrUpdate(fingerprint)) { |
| | | return new ResultUtil<Fingerprint>().setData(fingerprint); |
| | | } |