|
@@ -10,6 +10,7 @@ import com.caimei.modules.bulkpurchase.service.CmFinanceChargeService;
|
|
import com.caimei.modules.bulkpurchase.service.PurchaseProductService;
|
|
import com.caimei.modules.bulkpurchase.service.PurchaseProductService;
|
|
import com.caimei.modules.common.utils.ExcelUtil;
|
|
import com.caimei.modules.common.utils.ExcelUtil;
|
|
import com.caimei.modules.common.utils.UploadUtils;
|
|
import com.caimei.modules.common.utils.UploadUtils;
|
|
|
|
+import com.caimei.modules.coupon.entity.CmCouponRedemptionCode;
|
|
import com.caimei.modules.order.dao.*;
|
|
import com.caimei.modules.order.dao.*;
|
|
import com.caimei.modules.order.entity.*;
|
|
import com.caimei.modules.order.entity.*;
|
|
import com.caimei.modules.order.service.*;
|
|
import com.caimei.modules.order.service.*;
|
|
@@ -2120,14 +2121,27 @@ public class NewOrderController extends BaseController {
|
|
/**
|
|
/**
|
|
* 获取当前机构下所有已领取优惠券
|
|
* 获取当前机构下所有已领取优惠券
|
|
*/
|
|
*/
|
|
|
|
+ @ResponseBody
|
|
@RequestMapping("clubCouponList")
|
|
@RequestMapping("clubCouponList")
|
|
public Map<String, Object> clubCouponList(Integer userId) {
|
|
public Map<String, Object> clubCouponList(Integer userId) {
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
if (null == userId) {
|
|
if (null == userId) {
|
|
- map.put("success", false);
|
|
|
|
|
|
+ map.put("code", -1);
|
|
map.put("msg", "参数异常");
|
|
map.put("msg", "参数异常");
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
return newOrderService.clubCouponList(userId);
|
|
return newOrderService.clubCouponList(userId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /*@RequestMapping("/redeem")
|
|
|
|
+ public Map<String, Object> redeemCoupons(CmCouponRedemptionCode redemptionCode) {
|
|
|
|
+ if (redeemCouponsDto.getUserId() == null || redeemCouponsDto.getSource() == null) {
|
|
|
|
+ return ResponseJson.error("参数异常", null);
|
|
|
|
+ }
|
|
|
|
+ if (org.apache.commons.lang3.StringUtils.isBlank(redeemCouponsDto.getRedemptionCode())) {
|
|
|
|
+ return ResponseJson.error("请输入兑换码", null);
|
|
|
|
+ }
|
|
|
|
+ return newOrderService.redeemCoupons(redemptionCode);
|
|
|
|
+ }*/
|
|
}
|
|
}
|