| Pass |
- 19:35:03 |
+ 0:07:47 |
Test passed
|
@@ -128,13 +128,13 @@
Started
-
十月 08, 2024 19:35:03
+
十月 13, 2024 00:07:47
Ended
-
十月 08, 2024 19:35:03
+
十月 13, 2024 00:07:47
diff --git a/hiver-core/src/main/java/cc/hiver/core/common/constant/ShopConstant.java b/hiver-core/src/main/java/cc/hiver/core/common/constant/ShopConstant.java
index 1039e895..db223358 100644
--- a/hiver-core/src/main/java/cc/hiver/core/common/constant/ShopConstant.java
+++ b/hiver-core/src/main/java/cc/hiver/core/common/constant/ShopConstant.java
@@ -16,4 +16,6 @@ public interface ShopConstant {
*/
Integer SHOP_STATUS_LOCK = 0;
+ String[] PRINTING_METHOD = {"0","1"};
+
}
diff --git a/hiver-modules/hiver-base/src/main/java/cc/hiver/base/controller/manage/AuthController.java b/hiver-modules/hiver-base/src/main/java/cc/hiver/base/controller/manage/AuthController.java
index 14a7cd42..a5d8530f 100644
--- a/hiver-modules/hiver-base/src/main/java/cc/hiver/base/controller/manage/AuthController.java
+++ b/hiver-modules/hiver-base/src/main/java/cc/hiver/base/controller/manage/AuthController.java
@@ -5,10 +5,7 @@ import cc.hiver.base.vo.QRStatusVo;
import cc.hiver.base.vo.RegisterShopVo;
import cc.hiver.core.common.annotation.RateLimiter;
import cc.hiver.core.common.annotation.SystemLog;
-import cc.hiver.core.common.constant.AppToBConstant;
-import cc.hiver.core.common.constant.CommonConstant;
-import cc.hiver.core.common.constant.SecurityConstant;
-import cc.hiver.core.common.constant.UserConstant;
+import cc.hiver.core.common.constant.*;
import cc.hiver.core.common.enums.LogType;
import cc.hiver.core.common.exception.HiverException;
import cc.hiver.core.common.redis.RedisTemplateHelper;
@@ -446,6 +443,8 @@ public class AuthController {
// 20240525 鏂板搴楅摵锛屾柊澧炲簵閾哄昂鐮佸簱
final String categoryId = productCategoryService.addCategoryOfShop();
shop.setAttrId(categoryId);
+ // 20241010 鎵撳嵃鏂瑰紡 瀛楁榛樿缁 0
+ shop.setPrintingMethod(ShopConstant.PRINTING_METHOD[0]);
shopService.save(shop);
// 20240625鏂板榛樿渚涘簲鍟
final Supplier supplier = new Supplier();
diff --git a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/CustomerController.java b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/CustomerController.java
index ecc5fe12..48defce0 100644
--- a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/CustomerController.java
+++ b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/CustomerController.java
@@ -29,6 +29,7 @@ import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.*;
import java.util.List;
+import java.util.Map;
@Slf4j
@RestController
@@ -248,5 +249,29 @@ public class CustomerController {
final List list = customerService.findByUserPhoneAndShopId(userPhone, shopId);
return new ResultUtil>().setData(list);
}
-
+ /**
+ * 鏍规嵁productId鍜宎ttributeList鍜宑ustomerId鏌ヨ璇ュ鎴疯喘涔拌鍟嗗搧瑙勬牸鐨勬讳欢鏁帮紝浠ュ強閫璐ф讳欢鏁
+ * @author 鐜嬪瘜搴
+ * @date 2024/10/11
+ * @param productId
+ * @param attributeList
+ * @param customerId
+ * @return Result
+ */
+ @RequestMapping(value = "/getCustomerBuyHistory", method = RequestMethod.POST)
+ @ApiOperation("鏍规嵁productId鍜宎ttributeList鍜宑ustomerId鏌ヨ璇ュ鎴疯喘涔拌鍟嗗搧瑙勬牸鐨勬讳欢鏁帮紝浠ュ強閫璐ф讳欢鏁")
+ public Result getCustomerBuyHistory(String productId, String attributeList, String customerId) {
+ if(StringUtils.isEmpty(productId)){
+ return ResultUtil.error("鍟嗗搧id涓嶈兘涓虹┖");
+ }
+ if(StringUtils.isEmpty(attributeList)){
+ return ResultUtil.error("鍟嗗搧瑙勬牸涓嶈兘涓虹┖");
+ }
+ if(StringUtils.isEmpty(customerId)){
+ return ResultUtil.error("瀹㈡埛id涓嶈兘涓虹┖");
+ }
+ // shopId浠庣紦瀛樹腑璁剧疆
+ final Map map = customerService.getCustomerBuyHistory(productId, attributeList, customerId);
+ return new ResultUtil