| | |
| | | public R editShopStaffInfo(@RequestBody MerEditUserDto merEditUserDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | merEditUserDto.setUserId(userId); |
| | | shopStaffService.editShopStaffInfo(merEditUserDto); |
| | | if(merEditUserDto.getEditType()!=5){ |
| | | shopStaffService.editShopStaffInfo(merEditUserDto); |
| | | }else{ |
| | | Shop shop = shopService.getByShopId(merEditUserDto.getShopId()); |
| | | String editValue = merEditUserDto.getEditValue(); |
| | | String[] editArr = editValue.split("-"); |
| | | shop.setBusinessStartTime(editArr[0]); |
| | | shop.setBusinessEndTime(editArr[1]); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |