Authored by chenchao

add businessClient

... ... @@ -134,11 +134,14 @@ public class SellerGoodsController {
@ResponseBody
public ApiResponse computeChangePriceOfSingleGoods(@RequestParam(name = "uid") int uid,
@RequestParam(name = "skup") int skup,
@RequestParam(name="price", required = true)String price
@RequestParam(name="price", required = true)String price,
@RequestParam(name="business_client", required = false, defaultValue = "ufo")String businessClient
) {
SingleGoodsChangePriceReq req = SingleGoodsChangePriceReq.builder().uid(uid)
.skup(skup)
.price(price).build();
.price(price)
.businessClient(businessClient)
.build();
logger.info("in ufo.notEntrySeller.computeChangePricece, req {}", req);
try {
SoldPrdComputeBo computeBo = changePriceService.computeChangePrice(req);
... ... @@ -160,9 +163,15 @@ public class SellerGoodsController {
@ResponseBody
public ApiResponse changePriceOfSingleGoods(@RequestParam(name = "uid") int uid,
@RequestParam(name = "skup") int skup,
@RequestParam(name="price", required = true)String price) throws GatewayException {
@RequestParam(name="price", required = true)String price,
@RequestParam(name="business_client", required = false, defaultValue = "ufo")String businessClient) {
SingleGoodsChangePriceReq req = SingleGoodsChangePriceReq.builder()
.uid(uid).skup(skup).num(1).price(price).build();
.uid(uid)
.skup(skup)
.num(1)
.price(price)
.businessClient(businessClient)
.build();
logger.info("in ufo.notEntrySeller.changePrice, req {}", req);
try {
OrderSubmitResp result = changePriceService.changePrice(req);
... ... @@ -179,6 +188,7 @@ public class SellerGoodsController {
@ResponseBody
public ApiResponse getImperfectGoodsList(@RequestParam("type") int type,
@RequestParam("uid") int uid,
@RequestParam(name="business_client", required = false, defaultValue = "ufo")String businessClient,
@RequestParam(value = "page", required = false, defaultValue = "1") int page,
@RequestParam(value = "limit", required = false, defaultValue = "10") int limit) {
OrderListRequest orderListRequest = OrderListRequest.builder()
... ... @@ -186,6 +196,7 @@ public class SellerGoodsController {
.type(type)
.page(page)
.limit(limit)
.businessClient(businessClient)
.build();
logger.info("ufo.seller.imperfectGoodsList orderListRequest {}", orderListRequest);
PageResp<OrderListInfo> orderListInfoRsp;
... ...