|
@ -649,9 +649,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Result<StaffBasicInfoResultDTO> selectStaffBasicInfo(String userId) { |
|
|
public Result<StaffBasicInfoResultDTO> selectStaffBasicInfo(String userId) { |
|
|
CustomerStaffEntity staffEntity = baseDao.selectByUserId(userId); |
|
|
StaffBasicInfoResultDTO resultDTO = baseDao.selectStaffBasicInfo(userId); |
|
|
StaffBasicInfoResultDTO resultDTO = ConvertUtils.sourceToTarget(staffEntity, StaffBasicInfoResultDTO.class); |
|
|
|
|
|
resultDTO.setGender(String.valueOf(staffEntity.getGender())); |
|
|
|
|
|
return new Result<StaffBasicInfoResultDTO>().ok(resultDTO); |
|
|
return new Result<StaffBasicInfoResultDTO>().ok(resultDTO); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|