|
|
package com.yoho.ufo.order.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.core.rest.client.ServiceCaller;
|
|
|
import com.yoho.order.model.InvestUserBO;
|
|
|
import com.yoho.order.model.StoredSellerReqVo;
|
|
|
import com.yoho.order.model.TradeBillsReq;
|
|
|
import com.yoho.ufo.order.response.StoredSellerRespVo;
|
|
|
import com.yoho.ufo.order.service.ITradeBillsService;
|
|
|
import com.yoho.ufo.service.impl.UserHelper;
|
|
|
import com.yoho.ufo.service.model.ApiResponse;
|
|
|
import com.yoho.ufo.service.model.PageResponseBO;
|
|
|
import com.yohobuy.ufo.model.order.req.ManualDealRequest;
|
|
|
import com.yohobuy.ufo.model.order.resp.TradeBillsResp;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -36,4 +30,14 @@ public class StoredSellerController { |
|
|
}
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/saveInvestUser")
|
|
|
public ApiResponse saveInvestUser(InvestUserBO investUserBO){
|
|
|
LOGGER.info("saveInvestUser with req is {}",investUserBO);
|
|
|
int result = billsTradeService.saveInvestUser(investUserBO);
|
|
|
if(result > 0){
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("保存成功").data(result).build();
|
|
|
}
|
|
|
return new ApiResponse.ApiResponseBuilder().code(201).message("参数缺失").data(result).build();
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|