Commit 32e9c2eb by 刘宇峰

platform-shopmall

1 parent 45f6653a
...@@ -2,7 +2,6 @@ package cn.com.glsx.admin.api; ...@@ -2,7 +2,6 @@ package cn.com.glsx.admin.api;
import cn.com.glsx.admin.modules.model.cloudcrane.response.*; import cn.com.glsx.admin.modules.model.cloudcrane.response.*;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
...@@ -16,7 +15,7 @@ public interface ShopmallBaseDataApiService { ...@@ -16,7 +15,7 @@ public interface ShopmallBaseDataApiService {
* *
* @return * @return
*/ */
@GetMapping(value = "/queryAddressProvince", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryAddressProvince")
public List<QueryAddressProvinceResponse> queryAddressProvince(); public List<QueryAddressProvinceResponse> queryAddressProvince();
/** /**
...@@ -25,7 +24,7 @@ public interface ShopmallBaseDataApiService { ...@@ -25,7 +24,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode * @param parentAddressCode
* @return * @return
*/ */
@GetMapping(value = "/queryAddressCity", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryAddressCity")
public List<QueryAddressCityResponse> queryAddressCity(@RequestParam(value = "parentAddressCode") String parentAddressCode); public List<QueryAddressCityResponse> queryAddressCity(@RequestParam(value = "parentAddressCode") String parentAddressCode);
/** /**
...@@ -34,7 +33,7 @@ public interface ShopmallBaseDataApiService { ...@@ -34,7 +33,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode * @param parentAddressCode
* @return * @return
*/ */
@GetMapping(value = "/queryAddressArea", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryAddressArea")
public List<QueryAddressAreaResponse> queryAddressArea(@RequestParam(value = "parentAddressCode") String parentAddressCode); public List<QueryAddressAreaResponse> queryAddressArea(@RequestParam(value = "parentAddressCode") String parentAddressCode);
/** /**
...@@ -43,7 +42,7 @@ public interface ShopmallBaseDataApiService { ...@@ -43,7 +42,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode * @param parentAddressCode
* @return * @return
*/ */
@GetMapping(value = "/queryAddressStreet", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryAddressStreet")
public List<QueryAddressStreetResponse> queryAddressStreet(@RequestParam(value = "parentAddressCode") String parentAddressCode); public List<QueryAddressStreetResponse> queryAddressStreet(@RequestParam(value = "parentAddressCode") String parentAddressCode);
/** /**
...@@ -51,7 +50,7 @@ public interface ShopmallBaseDataApiService { ...@@ -51,7 +50,7 @@ public interface ShopmallBaseDataApiService {
* *
* @return * @return
*/ */
@GetMapping(value = "/queryAddressList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryAddressList")
public List<QueryAddressListResponse> queryAddressList(); public List<QueryAddressListResponse> queryAddressList();
/** /**
...@@ -59,7 +58,7 @@ public interface ShopmallBaseDataApiService { ...@@ -59,7 +58,7 @@ public interface ShopmallBaseDataApiService {
* *
* @return * @return
*/ */
@GetMapping(value = "/queryOneCategoryList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryOneCategoryList")
public List<QueryOneCategoryListResponse> queryOneCategoryList(); public List<QueryOneCategoryListResponse> queryOneCategoryList();
/** /**
...@@ -68,7 +67,7 @@ public interface ShopmallBaseDataApiService { ...@@ -68,7 +67,7 @@ public interface ShopmallBaseDataApiService {
* @param parentCategoryCode * @param parentCategoryCode
* @return * @return
*/ */
@GetMapping(value = "/querySecondCategoryList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/querySecondCategoryList")
public List<QuerySecondCategoryListResponse> querySecondCategoryList(@RequestParam(value = "parentCategoryCode") String parentCategoryCode); public List<QuerySecondCategoryListResponse> querySecondCategoryList(@RequestParam(value = "parentCategoryCode") String parentCategoryCode);
/** /**
...@@ -77,7 +76,7 @@ public interface ShopmallBaseDataApiService { ...@@ -77,7 +76,7 @@ public interface ShopmallBaseDataApiService {
* @param parentCategoryCode * @param parentCategoryCode
* @return * @return
*/ */
@GetMapping(value = "/queryThreeCategoryList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryThreeCategoryList")
public List<QueryThreeCategoryListResponse> queryThreeCategoryList(@RequestParam(value = "parentCategoryCode") String parentCategoryCode); public List<QueryThreeCategoryListResponse> queryThreeCategoryList(@RequestParam(value = "parentCategoryCode") String parentCategoryCode);
/** /**
...@@ -85,7 +84,7 @@ public interface ShopmallBaseDataApiService { ...@@ -85,7 +84,7 @@ public interface ShopmallBaseDataApiService {
* *
* @return * @return
*/ */
@GetMapping(value = "/queryCategoryList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryCategoryList")
public List<QueryCategoryListResponse> queryCategoryList(); public List<QueryCategoryListResponse> queryCategoryList();
/** /**
...@@ -93,7 +92,7 @@ public interface ShopmallBaseDataApiService { ...@@ -93,7 +92,7 @@ public interface ShopmallBaseDataApiService {
* *
* @return * @return
*/ */
@GetMapping(value = "/queryBrandList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryBrandList")
public List<QueryBrandListResponse> queryBrandList(); public List<QueryBrandListResponse> queryBrandList();
/** /**
...@@ -101,7 +100,7 @@ public interface ShopmallBaseDataApiService { ...@@ -101,7 +100,7 @@ public interface ShopmallBaseDataApiService {
* *
* @return * @return
*/ */
@GetMapping(value = "/queryExpressList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryExpressList")
public List<QueryExpressListResponse> queryExpressList(); public List<QueryExpressListResponse> queryExpressList();
} }
...@@ -4,9 +4,9 @@ import cn.com.glsx.admin.modules.model.cloudcrane.request.QueryGoodsListByCondit ...@@ -4,9 +4,9 @@ import cn.com.glsx.admin.modules.model.cloudcrane.request.QueryGoodsListByCondit
import cn.com.glsx.admin.modules.model.cloudcrane.request.QueryGoodsListRequest; import cn.com.glsx.admin.modules.model.cloudcrane.request.QueryGoodsListRequest;
import cn.com.glsx.admin.modules.model.cloudcrane.response.*; import cn.com.glsx.admin.modules.model.cloudcrane.response.*;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType; import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
...@@ -19,8 +19,8 @@ public interface ShopmallGoodsApiService { ...@@ -19,8 +19,8 @@ public interface ShopmallGoodsApiService {
* @param req * @param req
* @return * @return
*/ */
@GetMapping(value = "/queryGoodsList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryGoodsList")
public QueryGoodsListResponse queryGoodsList(@RequestBody QueryGoodsListRequest req); public QueryGoodsListResponse queryGoodsList(@SpringQueryMap QueryGoodsListRequest req);
/** /**
* 检索商品信息列表接口 * 检索商品信息列表接口
...@@ -28,8 +28,8 @@ public interface ShopmallGoodsApiService { ...@@ -28,8 +28,8 @@ public interface ShopmallGoodsApiService {
* @param req * @param req
* @return * @return
*/ */
@GetMapping(value = "/queryGoodsListByCondition", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryGoodsListByCondition")
public QueryGoodsListByConditionResponse queryGoodsListByCondition(@RequestBody QueryGoodsListByConditionRequest req); public QueryGoodsListByConditionResponse queryGoodsListByCondition(@SpringQueryMap QueryGoodsListByConditionRequest req);
/** /**
* 获取商品详情信息接口 * 获取商品详情信息接口
...@@ -37,8 +37,8 @@ public interface ShopmallGoodsApiService { ...@@ -37,8 +37,8 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
@GetMapping(value = "/queryGoodsDetail", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryGoodsDetail")
public QueryGoodsDetailResponse queryGoodsDetail(@RequestBody List<String> goodsSkuCodes); public List<QueryGoodsDetailResponse> queryGoodsDetail(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/** /**
* 获取商品图片列表接口 * 获取商品图片列表接口
...@@ -46,8 +46,8 @@ public interface ShopmallGoodsApiService { ...@@ -46,8 +46,8 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
@GetMapping(value = "/queryGoodsImageList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryGoodsImageList")
public QueryGoodsImageListResponse queryGoodsImageList(@RequestBody List<String> goodsSkuCodes); public List<QueryGoodsImageListResponse> queryGoodsImageList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/** /**
* 获取商品上下架列表接口 * 获取商品上下架列表接口
...@@ -55,8 +55,8 @@ public interface ShopmallGoodsApiService { ...@@ -55,8 +55,8 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
@GetMapping(value = "/queryGoodsShelvesList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryGoodsShelvesList")
public QueryGoodsShelvesListResponse queryGoodsShelvesList(@RequestBody List<String> goodsSkuCodes); public List<QueryGoodsShelvesListResponse> queryGoodsShelvesList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/** /**
* 获取商品价格列表接口 * 获取商品价格列表接口
...@@ -64,8 +64,8 @@ public interface ShopmallGoodsApiService { ...@@ -64,8 +64,8 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
@GetMapping(value = "/queryGoodsPriceList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryGoodsPriceList")
public QueryGoodsPriceListResponse queryGoodsPriceList(@RequestBody List<String> goodsSkuCodes); public List<QueryGoodsPriceListResponse> queryGoodsPriceList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/** /**
* 获取商品库存列表接口 * 获取商品库存列表接口
...@@ -73,8 +73,8 @@ public interface ShopmallGoodsApiService { ...@@ -73,8 +73,8 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
@GetMapping(value = "/queryGoodsStockList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryGoodsStockList")
public QueryGoodsStockListResponse queryGoodsStockList(@RequestBody List<String> goodsSkuCodes); public List<QueryGoodsStockListResponse> queryGoodsStockList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/** /**
* 获取商品销售区域列表接口 * 获取商品销售区域列表接口
...@@ -82,7 +82,7 @@ public interface ShopmallGoodsApiService { ...@@ -82,7 +82,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
@GetMapping(value = "/queryGoodsSaleLimitList", consumes = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value = "/queryGoodsSaleLimitList")
public QueryGoodsSaleLimitListResponse queryGoodsSaleLimitList(@RequestBody List<String> goodsSkuCodes); public List<QueryGoodsSaleLimitListResponse> queryGoodsSaleLimitList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
} }
...@@ -6,6 +6,7 @@ import org.springframework.cloud.openfeign.FeignClient; ...@@ -6,6 +6,7 @@ import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(name = "${feign.shopmall.name}", path = "${feign.shopmall.path}/api/order", contextId = "feignOrderApiApi", decode404 = true) @FeignClient(name = "${feign.shopmall.name}", path = "${feign.shopmall.path}/api/order", contextId = "feignOrderApiApi", decode404 = true)
public interface ShopmallOrderApiService { public interface ShopmallOrderApiService {
...@@ -17,7 +18,7 @@ public interface ShopmallOrderApiService { ...@@ -17,7 +18,7 @@ public interface ShopmallOrderApiService {
* @return * @return
*/ */
@PostMapping(value = "/createOrder", consumes = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/createOrder", consumes = MediaType.APPLICATION_JSON_VALUE)
public CreateOrderResponse createOrder(CreateOrderRequest req); public CreateOrderResponse createOrder(@RequestBody CreateOrderRequest req);
/** /**
* 预占确认订单接口 * 预占确认订单接口
...@@ -26,7 +27,7 @@ public interface ShopmallOrderApiService { ...@@ -26,7 +27,7 @@ public interface ShopmallOrderApiService {
* @return * @return
*/ */
@PostMapping(value = "/confirmOrder", consumes = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/confirmOrder", consumes = MediaType.APPLICATION_JSON_VALUE)
public ConfirmOrderResponse confirmOrder(ConfirmOrderRequest req); public ConfirmOrderResponse confirmOrder(@RequestBody ConfirmOrderRequest req);
/** /**
* 取消订单接口 * 取消订单接口
...@@ -35,7 +36,7 @@ public interface ShopmallOrderApiService { ...@@ -35,7 +36,7 @@ public interface ShopmallOrderApiService {
* @return * @return
*/ */
@PostMapping(value = "/cancelOrder", consumes = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/cancelOrder", consumes = MediaType.APPLICATION_JSON_VALUE)
public CancelOrderResponse cancelOrder(CancelOrderRequest req); public CancelOrderResponse cancelOrder(@RequestBody CancelOrderRequest req);
/** /**
* 获取订单列表接口 * 获取订单列表接口
......
package cn.com.glsx.admin.modules.model.cloudcrane.request; package cn.com.glsx.admin.modules.model.cloudcrane.request;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -9,6 +10,7 @@ import lombok.NoArgsConstructor; ...@@ -9,6 +10,7 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor @AllArgsConstructor
public class AbstractCloudCraneRequest { public class AbstractCloudCraneRequest {
@Schema(hidden = true)
private String accessToken; private String accessToken;
} }
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.admin.modules.model.cloudcrane.request; package cn.com.glsx.admin.modules.model.cloudcrane.request;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
...@@ -11,23 +12,55 @@ import java.util.List; ...@@ -11,23 +12,55 @@ import java.util.List;
@Accessors(chain = true) @Accessors(chain = true)
public class CreateOrderRequest extends AbstractCloudCraneRequest { public class CreateOrderRequest extends AbstractCloudCraneRequest {
@Schema(description = "广联订单编号", hidden = true)
private String tparOrderCode; private String tparOrderCode;
@Schema(description = "订单交易总金额")
private Double orderAmount; private Double orderAmount;
@Schema(description = "订单运费总金额")
private Double orderFreightAmount; private Double orderFreightAmount;
@Schema(description = "是否预占订单")
private Integer submitState; private Integer submitState;
@Schema(description = "收货人姓名")
private String receiveName; private String receiveName;
@Schema(description = "收货人手机号")
private String receiveMobile; private String receiveMobile;
@Schema(description = "收货人座机号")
private String receivePhone; private String receivePhone;
@Schema(description = "收货人省Id编码")
private Integer provinceId; private Integer provinceId;
@Schema(description = "收货人市Id编码")
private Integer cityId; private Integer cityId;
@Schema(description = "收货人区Id编码")
private Integer countyId; private Integer countyId;
@Schema(description = "收货人镇/街道Id编码")
private Integer townId; private Integer townId;
@Schema(description = "收货人详细地址")
private String address; private String address;
@Schema(description = "订单买家留言")
private String buyerMsg; private String buyerMsg;
@Schema(description = "是否开发票(1001:不开发票,1002:开发票)")
private Integer invoiceState; private Integer invoiceState;
@Schema(description = "发票类型(1:增值税专用发票,2:增值税普通电子发票)")
private Integer invoiceType; private Integer invoiceType;
@Schema(description = "发票开票详细信息,invoiceState=1002信息都必填")
private OrderInvoiceModel orderInvoice; private OrderInvoiceModel orderInvoice;
// @Singular("goodsSkuModel")
@Schema(description = "订单购买的商品列表")
private List<OrderGoodsSkuModel> goodsSkuList; private List<OrderGoodsSkuModel> goodsSkuList;
} }
package cn.com.glsx.admin.modules.model.cloudcrane.request; package cn.com.glsx.admin.modules.model.cloudcrane.request;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
...@@ -9,8 +10,13 @@ import lombok.experimental.Accessors; ...@@ -9,8 +10,13 @@ import lombok.experimental.Accessors;
@Accessors(chain = true) @Accessors(chain = true)
public class OrderGoodsSkuModel { public class OrderGoodsSkuModel {
@Schema(description = "订单购买的商品编码")
private String goodsSkuCode; private String goodsSkuCode;
@Schema(description = "订单购买的商品价格")
private Double sellPrice; private Double sellPrice;
@Schema(description = "订购购买的商品数量")
private Integer sellQty; private Integer sellQty;
} }
package cn.com.glsx.admin.modules.model.cloudcrane.request; package cn.com.glsx.admin.modules.model.cloudcrane.request;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
...@@ -9,9 +10,16 @@ import lombok.experimental.Accessors; ...@@ -9,9 +10,16 @@ import lombok.experimental.Accessors;
@Accessors(chain = true) @Accessors(chain = true)
public class OrderInvoiceModel { public class OrderInvoiceModel {
@Schema(description = "发票抬头")
private String invoiceTitle; private String invoiceTitle;
@Schema(description = "发票内容")
private String invoiceContent; private String invoiceContent;
@Schema(description = "发票开票主体(1001:企业开发 票,1002:个人开发票)")
private Integer invoiceSubjectType; private Integer invoiceSubjectType;
@Schema(description = "发票税号")
private String invoiceTaxNo; private String invoiceTaxNo;
} }
package cn.com.glsx.admin.modules.model.cloudcrane.request; package cn.com.glsx.admin.modules.model.cloudcrane.request;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
...@@ -13,7 +14,10 @@ import lombok.experimental.Accessors; ...@@ -13,7 +14,10 @@ import lombok.experimental.Accessors;
@AllArgsConstructor @AllArgsConstructor
public class QueryGoodsListRequest extends AbstractCloudCraneRequest { public class QueryGoodsListRequest extends AbstractCloudCraneRequest {
@Schema(description = "分页页码")
private Integer pageNum; private Integer pageNum;
@Schema(description = "每页数据条数")
private Integer pageSize; private Integer pageSize;
} }
...@@ -39,37 +39,37 @@ public class GoodsApiController implements ShopmallGoodsApiService { ...@@ -39,37 +39,37 @@ public class GoodsApiController implements ShopmallGoodsApiService {
@Operation(summary = "获取商品详情信息接口", description = "查询获取云中鹤平台商城商品详情信息") @Operation(summary = "获取商品详情信息接口", description = "查询获取云中鹤平台商城商品详情信息")
@Override @Override
public QueryGoodsDetailResponse queryGoodsDetail(List<String> goodsSkuCodes) { public List<QueryGoodsDetailResponse> queryGoodsDetail(List<String> goodsSkuCodes) {
return goodsService.queryGoodsDetail(goodsSkuCodes); return goodsService.queryGoodsDetail(goodsSkuCodes);
} }
@Operation(summary = "获取商品图片列表接口", description = "查询获取云中鹤平台商城商品图片信息列表") @Operation(summary = "获取商品图片列表接口", description = "查询获取云中鹤平台商城商品图片信息列表")
@Override @Override
public QueryGoodsImageListResponse queryGoodsImageList(List<String> goodsSkuCodes) { public List<QueryGoodsImageListResponse> queryGoodsImageList(List<String> goodsSkuCodes) {
return goodsService.queryGoodsImageList(goodsSkuCodes); return goodsService.queryGoodsImageList(goodsSkuCodes);
} }
@Operation(summary = "获取商品上下架列表接口", description = "查询获取云中鹤平台商城商品上下架信息列表") @Operation(summary = "获取商品上下架列表接口", description = "查询获取云中鹤平台商城商品上下架信息列表")
@Override @Override
public QueryGoodsShelvesListResponse queryGoodsShelvesList(List<String> goodsSkuCodes) { public List<QueryGoodsShelvesListResponse> queryGoodsShelvesList(List<String> goodsSkuCodes) {
return goodsService.queryGoodsShelvesList(goodsSkuCodes); return goodsService.queryGoodsShelvesList(goodsSkuCodes);
} }
@Operation(summary = "获取商品价格列表接口", description = "查询获取云中鹤平台商城商品价格信息列表") @Operation(summary = "获取商品价格列表接口", description = "查询获取云中鹤平台商城商品价格信息列表")
@Override @Override
public QueryGoodsPriceListResponse queryGoodsPriceList(List<String> goodsSkuCodes) { public List<QueryGoodsPriceListResponse> queryGoodsPriceList(List<String> goodsSkuCodes) {
return goodsService.queryGoodsPriceList(goodsSkuCodes); return goodsService.queryGoodsPriceList(goodsSkuCodes);
} }
@Operation(summary = "获取商品库存列表接口", description = "查询获取云中鹤平台商城商品库存信息列表") @Operation(summary = "获取商品库存列表接口", description = "查询获取云中鹤平台商城商品库存信息列表")
@Override @Override
public QueryGoodsStockListResponse queryGoodsStockList(List<String> goodsSkuCodes) { public List<QueryGoodsStockListResponse> queryGoodsStockList(List<String> goodsSkuCodes) {
return goodsService.queryGoodsStockList(goodsSkuCodes); return goodsService.queryGoodsStockList(goodsSkuCodes);
} }
@Operation(summary = "获取商品销售区域列表接口", description = "查询获取云中鹤平台商城商品销售区域限制信息列表") @Operation(summary = "获取商品销售区域列表接口", description = "查询获取云中鹤平台商城商品销售区域限制信息列表")
@Override @Override
public QueryGoodsSaleLimitListResponse queryGoodsSaleLimitList(List<String> goodsSkuCodes) { public List<QueryGoodsSaleLimitListResponse> queryGoodsSaleLimitList(List<String> goodsSkuCodes) {
return goodsService.queryGoodsSaleLimitList(goodsSkuCodes); return goodsService.queryGoodsSaleLimitList(goodsSkuCodes);
} }
......
...@@ -169,11 +169,10 @@ public class CloudCraneService { ...@@ -169,11 +169,10 @@ public class CloudCraneService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
public QueryGoodsDetailResponse queryGoodsDetail(List<String> goodsSkuCodes) { public List<QueryGoodsDetailResponse> queryGoodsDetail(List<String> goodsSkuCodes) {
QueryGoodsDetailResponse resp = cloudCraneUtil.access("goods/queryGoodsDetail", QueryGoodsDetailResponse resp = cloudCraneUtil.access("goods/queryGoodsDetail",
new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsDetailResponse.class); new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsDetailResponse.class);
return resp; return resp.getDataResult();
} }
/** /**
...@@ -182,11 +181,11 @@ public class CloudCraneService { ...@@ -182,11 +181,11 @@ public class CloudCraneService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
public QueryGoodsImageListResponse queryGoodsImageList(List<String> goodsSkuCodes) { public List<QueryGoodsImageListResponse> queryGoodsImageList(List<String> goodsSkuCodes) {
QueryGoodsImageListResponse resp = cloudCraneUtil.access("goods/queryGoodsImageList", QueryGoodsImageListResponse resp = cloudCraneUtil.access("goods/queryGoodsImageList",
new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsImageListResponse.class); new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsImageListResponse.class);
return resp; return resp.getDataResult();
} }
/** /**
...@@ -195,11 +194,11 @@ public class CloudCraneService { ...@@ -195,11 +194,11 @@ public class CloudCraneService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
public QueryGoodsShelvesListResponse queryGoodsShelvesList(List<String> goodsSkuCodes) { public List<QueryGoodsShelvesListResponse> queryGoodsShelvesList(List<String> goodsSkuCodes) {
QueryGoodsShelvesListResponse resp = cloudCraneUtil.access("goods/queryGoodsShelvesList", QueryGoodsShelvesListResponse resp = cloudCraneUtil.access("goods/queryGoodsShelvesList",
new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsShelvesListResponse.class); new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsShelvesListResponse.class);
return resp; return resp.getDataResult();
} }
/** /**
...@@ -208,11 +207,11 @@ public class CloudCraneService { ...@@ -208,11 +207,11 @@ public class CloudCraneService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
public QueryGoodsPriceListResponse queryGoodsPriceList(List<String> goodsSkuCodes) { public List<QueryGoodsPriceListResponse> queryGoodsPriceList(List<String> goodsSkuCodes) {
QueryGoodsPriceListResponse resp = cloudCraneUtil.access("goods/queryGoodsPriceList", QueryGoodsPriceListResponse resp = cloudCraneUtil.access("goods/queryGoodsPriceList",
new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsPriceListResponse.class); new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsPriceListResponse.class);
return resp; return resp.getDataResult();
} }
/** /**
...@@ -221,11 +220,11 @@ public class CloudCraneService { ...@@ -221,11 +220,11 @@ public class CloudCraneService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
public QueryGoodsStockListResponse queryGoodsStockList(List<String> goodsSkuCodes) { public List<QueryGoodsStockListResponse> queryGoodsStockList(List<String> goodsSkuCodes) {
QueryGoodsStockListResponse resp = cloudCraneUtil.access("goods/queryGoodsStockList", QueryGoodsStockListResponse resp = cloudCraneUtil.access("goods/queryGoodsStockList",
new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsStockListResponse.class); new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsStockListResponse.class);
return resp; return resp.getDataResult();
} }
/** /**
...@@ -234,10 +233,10 @@ public class CloudCraneService { ...@@ -234,10 +233,10 @@ public class CloudCraneService {
* @param goodsSkuCodes * @param goodsSkuCodes
* @return * @return
*/ */
public QueryGoodsSaleLimitListResponse queryGoodsSaleLimitList(List<String> goodsSkuCodes) { public List<QueryGoodsSaleLimitListResponse> queryGoodsSaleLimitList(List<String> goodsSkuCodes) {
QueryGoodsSaleLimitListResponse resp = cloudCraneUtil.access("goods/queryGoodsSaleLimitList", QueryGoodsSaleLimitListResponse resp = cloudCraneUtil.access("goods/queryGoodsSaleLimitList",
new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsSaleLimitListResponse.class); new QueryGoodsDetailRequest(goodsSkuCodes), QueryGoodsSaleLimitListResponse.class);
return resp; return resp.getDataResult();
} }
/** /**
......
...@@ -27,27 +27,27 @@ public class GoodsService { ...@@ -27,27 +27,27 @@ public class GoodsService {
return cloudCraneService.queryGoodsListByCondition(req); return cloudCraneService.queryGoodsListByCondition(req);
} }
public QueryGoodsDetailResponse queryGoodsDetail(List<String> goodsSkuCodes) { public List<QueryGoodsDetailResponse> queryGoodsDetail(List<String> goodsSkuCodes) {
return cloudCraneService.queryGoodsDetail(goodsSkuCodes); return cloudCraneService.queryGoodsDetail(goodsSkuCodes);
} }
public QueryGoodsImageListResponse queryGoodsImageList(List<String> goodsSkuCodes) { public List<QueryGoodsImageListResponse> queryGoodsImageList(List<String> goodsSkuCodes) {
return cloudCraneService.queryGoodsImageList(goodsSkuCodes); return cloudCraneService.queryGoodsImageList(goodsSkuCodes);
} }
public QueryGoodsShelvesListResponse queryGoodsShelvesList(List<String> goodsSkuCodes) { public List<QueryGoodsShelvesListResponse> queryGoodsShelvesList(List<String> goodsSkuCodes) {
return cloudCraneService.queryGoodsShelvesList(goodsSkuCodes); return cloudCraneService.queryGoodsShelvesList(goodsSkuCodes);
} }
public QueryGoodsPriceListResponse queryGoodsPriceList(List<String> goodsSkuCodes) { public List<QueryGoodsPriceListResponse> queryGoodsPriceList(List<String> goodsSkuCodes) {
return cloudCraneService.queryGoodsPriceList(goodsSkuCodes); return cloudCraneService.queryGoodsPriceList(goodsSkuCodes);
} }
public QueryGoodsStockListResponse queryGoodsStockList(List<String> goodsSkuCodes) { public List<QueryGoodsStockListResponse> queryGoodsStockList(List<String> goodsSkuCodes) {
return cloudCraneService.queryGoodsStockList(goodsSkuCodes); return cloudCraneService.queryGoodsStockList(goodsSkuCodes);
} }
public QueryGoodsSaleLimitListResponse queryGoodsSaleLimitList(List<String> goodsSkuCodes) { public List<QueryGoodsSaleLimitListResponse> queryGoodsSaleLimitList(List<String> goodsSkuCodes) {
return cloudCraneService.queryGoodsSaleLimitList(goodsSkuCodes); return cloudCraneService.queryGoodsSaleLimitList(goodsSkuCodes);
} }
......
spring.application.name=admin
logging.path=/data/java_log/jetty/${spring.application.name}/${spring.application.name}.log
#server
server.port=8202
server.servlet.context-path=/${spring.application.name}
server.servlet.session.timeout=2592000
server.max-http-header-size=8192
server.tomcat.uri-encoding=UTF-8
server.tomcat.max-threads=1000
server.tomcat.min-spare-threads=30s
server.tomcat.basedir=/temp
#database
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://192.168.0.39:3306/gecc?serverTimeZone=Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false
spring.datasource.username=root
spring.datasource.password=123456
# Hikari will use the above plus the following to setup connection pooling
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.maximum-pool-size=15
spring.datasource.hikari.auto-commit=true
spring.datasource.hikari.idle-timeout=30000
spring.datasource.hikari.pool-name=DatebookHikariCP
spring.datasource.hikari.max-lifetime=1800000
spring.datasource.hikari.connection-timeout=30000
spring.datasource.hikari.connection-test-query=SELECT 1
spring.data.redis.repositories.enabled = false
#redis config
spring.redis.host=192.168.0.39
spring.redis.port=6379
spring.redis.password=hhxredis
spring.redis.database=1
spring.redis.timeout=200000
#jwt config
jwt.config.header=Authorization
jwt.config.ttl=7200
jwt.config.key=5371f568a45e5ab1f442c38e0932aef24447139c
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ spring.cloud.nacos.config.server-addr=192.168.0.63:8868 ...@@ -10,7 +10,7 @@ spring.cloud.nacos.config.server-addr=192.168.0.63:8868
#示例:http://192.168.0.63:8848/nacos/v1/cs/configs?dataId=glsx-rest-admin.properties&group=DEV_GROUP #示例:http://192.168.0.63:8848/nacos/v1/cs/configs?dataId=glsx-rest-admin.properties&group=DEV_GROUP
#配置分组(改成项目相关的) #配置分组(改成项目相关的)
spring.cloud.nacos.config.group=SCRM_GROUP spring.cloud.nacos.config.group=PLATFORM_GROUP
#配置prefix,默认值同${spring.application.name} #配置prefix,默认值同${spring.application.name}
spring.cloud.nacos.config.prefix=${spring.application.name} spring.cloud.nacos.config.prefix=${spring.application.name}
#配置环境 #配置环境
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.admin.modules.mapper.UserMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.admin.modules.entity.User">
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="account" jdbcType="VARCHAR" property="account"/>
<result column="password" jdbcType="VARCHAR" property="password"/>
<result column="username" jdbcType="VARCHAR" property="username"/>
<result column="realname" jdbcType="VARCHAR" property="realname"/>
<result column="phone" jdbcType="VARCHAR" property="phone"/>
<result column="avatar" jdbcType="VARCHAR" property="avatar"/>
<result column="salt" jdbcType="VARCHAR" property="salt"/>
<result column="del_flag" jdbcType="TINYINT" property="delFlag"/>
<result column="created_date" jdbcType="TIMESTAMP" property="createdDate"/>
<result column="created_by" jdbcType="INTEGER" property="createdBy"/>
<result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate"/>
<result column="updated_by" jdbcType="INTEGER" property="updatedBy"/>
</resultMap>
<sql id="Base_Column_List">
id, account, password, username, realname, phone, avatar, salt,
del_flag, created_date, created_by, updated_date, updated_by
</sql>
<select id="selectList" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from t_user
where del_flag = 0
</select>
<select id="selectById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from t_user
where del_flag = 0
and id = #{id}
</select>
<update id="logicDeleteById" parameterType="java.lang.Long">
update t_user
set del_flag = -1
where id = #{id}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!