|
@@ -437,4 +437,24 @@ public class WeComThirdPartyServiceImpl implements WeComThirdPartyService {
|
|
|
return staffList.get(0);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void updateStaffStatus(UpdateStaffStatusRequest request) {
|
|
|
+ ThirdPartWeComStaff staff = getStaffByName(request.getStaffName());
|
|
|
+ if (Objects.isNull(staff)) {
|
|
|
+ throw new CommonException(ExceptionEnum.THIRD_PART_STAFF_NOT_FOUND);
|
|
|
+ }
|
|
|
+ staff.setStatus(request.getStatus());
|
|
|
+ thirdPartWeComStaffMapper.updateByPrimaryKeySelective(staff);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void updateAutoCreateRoomStatus(UpdateAutoCreateRoomStatusRequest request) {
|
|
|
+ ThirdPartWeComStaff staff = getStaffByName(request.getStaffName());
|
|
|
+ if (Objects.isNull(staff)) {
|
|
|
+ throw new CommonException(ExceptionEnum.THIRD_PART_STAFF_NOT_FOUND);
|
|
|
+ }
|
|
|
+ staff.setAutoCreateRoom(request.getAutoCreateRoomStatus());
|
|
|
+ thirdPartWeComStaffMapper.updateByPrimaryKeySelective(staff);
|
|
|
+ }
|
|
|
+
|
|
|
}
|