...
|
...
|
@@ -8,7 +8,9 @@ import java.util.Arrays; |
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.core.dal.datasource.annotation.Database;
|
|
|
import com.yoho.core.rest.client.ServiceCaller;
|
|
|
import com.yoho.ufo.event.model.StorageNumEvent;
|
|
|
import com.yohobuy.ufo.model.enums.InboxBusinessTypeEnum;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
...
|
...
|
@@ -74,6 +76,9 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
@Autowired
|
|
|
private InboxService inboxService;
|
|
|
|
|
|
@Autowired
|
|
|
private ServiceCaller serviceCaller;
|
|
|
|
|
|
@Override
|
|
|
public ApiResponse<Void> addOrUpdate(ProductRequestBo bo) {
|
|
|
checkProductInfo(bo);
|
...
|
...
|
@@ -516,6 +521,8 @@ public static void main(String[] args) { |
|
|
|
|
|
// TODO 调用银联接口退保证金
|
|
|
LOGGER.info("send refund info to payment, seller_uid is {}, skup is {}", sp.getSellerUid(), sp.getSkup());
|
|
|
ApiResponse apiResponse = serviceCaller.call("ufo-gateway.offShelveByErp", sp, ApiResponse.class);
|
|
|
LOGGER.info("result send refund info to payment is {}", apiResponse);
|
|
|
|
|
|
return new ApiResponse<>(200, "操作成功");
|
|
|
}
|
...
|
...
|
|