| | |
| | | @Resource |
| | | private RemoteOrderGoodsClient orderGoodsClient; |
| | | @Resource |
| | | private RedisTemplate<String, String> redisTemplate; |
| | | |
| | | private RedisTemplate redisTemplate; |
| | | @Resource |
| | | private AppUserClient appUserClient; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void switchingTechnician(TechnicianSubscribe technicianSubscribe) { |
| | | TechnicianSubscribe subscribe = this.getById(technicianSubscribe.getId()); |
| | | if(subscribe.getTechnicianId().equals(technicianSubscribe.getTechnicianId())){ |
| | | throw new RuntimeException("不能切换相同的技师"); |
| | | } |
| | | subscribe.setTechnicianId(technicianSubscribe.getTechnicianId()); |
| | | this.updateById(subscribe); |
| | | } |
| | | |
| | | /** |
| | | * 定时修改到期状态 |
| | | */ |