|
@@ -9,6 +9,7 @@ import com.chelvc.cloud.vehicle.server.copier.MerchantAuthCopier;
|
|
|
import com.chelvc.cloud.vehicle.server.dao.MerchantAuthMapper;
|
|
|
import com.chelvc.cloud.vehicle.server.entity.MerchantAuth;
|
|
|
import com.chelvc.cloud.vehicle.server.service.MerchantAuthService;
|
|
|
+import com.chelvc.cloud.vehicle.server.service.MerchantService;
|
|
|
import com.chelvc.framework.base.context.SessionContextHolder;
|
|
|
import com.chelvc.framework.base.util.ResourceUtils;
|
|
|
import com.chelvc.framework.common.model.Pagination;
|
|
@@ -31,6 +32,7 @@ import java.util.Date;
|
|
|
@DubboService(interfaceClass = com.chelvc.cloud.vehicle.api.service.MerchantAuthService.class)
|
|
|
public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, MerchantAuth> implements MerchantAuthService,
|
|
|
com.chelvc.cloud.vehicle.api.service.MerchantAuthService {
|
|
|
+ private final MerchantService merchantService;
|
|
|
@Override
|
|
|
public Long addMerchantAuth(@NonNull MerchantAuthModifyParam param){
|
|
|
MerchantAuth merchantAuth = MerchantAuthCopier.INSTANCE.copying(param);
|
|
@@ -60,7 +62,9 @@ public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, Mer
|
|
|
Long userId = SessionContextHolder.getId();
|
|
|
MerchantAuth merchantAuth = this.lambdaQuery()
|
|
|
.eq(MerchantAuth::getApplicant, userId).one();
|
|
|
- return MerchantAuthCopier.INSTANCE.copying(merchantAuth);
|
|
|
+ MerchantAuthDTO merchantAuthDTO = MerchantAuthCopier.INSTANCE.copying(merchantAuth);
|
|
|
+ merchantAuthDTO.setMerchant(this.merchantService.getMerchantByUserId(userId));
|
|
|
+ return merchantAuthDTO;
|
|
|
}
|
|
|
|
|
|
@Override
|