|
@@ -24,9 +24,9 @@ import com.ym.mec.util.http.HttpUtil;
|
|
|
import com.yonge.log.model.AuditLogAnnotation;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
-import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.time.LocalTime;
|
|
@@ -276,6 +276,9 @@ public class PracticeGroupController extends BaseController {
|
|
|
@PostMapping(value = "/buyActivity")
|
|
|
@AuditLogAnnotation(operateName = "营销活动购买")
|
|
|
public HttpResponseResult buyActivity(@RequestBody PracticeGroupBuyParamsDto practiceGroupBuyParams) throws Exception {
|
|
|
+ if(CollectionUtils.isNotEmpty(practiceGroupBuyParams.getCouponIdList())){
|
|
|
+ throw new BizException("当前活动不支持优惠券");
|
|
|
+ }
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (null == sysUser) {
|
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|