| | |
| | | import com.oying.modules.rider.service.RiderWalletInfoService; |
| | | import com.oying.modules.rider.utils.Constants; |
| | | import com.oying.modules.rider.utils.RiderSourceHttpUtils; |
| | | import com.oying.modules.system.domain.User; |
| | | import com.oying.modules.system.service.UserService; |
| | | import com.oying.utils.FileUtil; |
| | | import com.oying.utils.SecurityUtils; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | public class RiderInfoServiceImpl extends ServiceImpl<RiderInfoMapper, RiderInfo> implements RiderInfoService { |
| | | |
| | | private final RiderInfoMapper riderInfoMapper; |
| | | |
| | | private final RiderWalletInfoService riderWalletInfoService; |
| | | private final UserService userService; |
| | | |
| | | @Override |
| | | public PageResult<RiderInfo> queryAll(RiderInfoQueryCriteria criteria, Page<Object> page) { |
| | |
| | | newRiderInfo.setRiderId(riderId); |
| | | newRiderInfo.setSourcePlatform(sourcePlatform); |
| | | create(newRiderInfo); |
| | | // 覆盖骑手账号昵称信息 |
| | | User user = new User(); |
| | | user.setId(riderId); |
| | | user.setNickName(infoHttpData.getCardName()); |
| | | userService.updateById(user); |
| | | // 创建骑手钱包信息 正常 |
| | | RiderWalletInfo riderWalletInfo = new RiderWalletInfo(); |
| | | riderWalletInfo.setRiderId(riderId); |