|
@@ -5,6 +5,7 @@ import com.zhongzheng.common.core.controller.BaseController;
|
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
import com.zhongzheng.common.core.redis.RedisCache;
|
|
|
+import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.common.utils.ToolsUtils;
|
|
|
import com.zhongzheng.framework.web.service.WxLoginService;
|
|
@@ -16,6 +17,8 @@ import com.zhongzheng.modules.course.service.ICourseTopicService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseTopicGoodsVo;
|
|
|
import com.zhongzheng.modules.course.vo.CourseTopicVo;
|
|
|
import com.zhongzheng.modules.course.vo.CourseUserVo;
|
|
|
+import com.zhongzheng.modules.data.domain.DataWxTpClick;
|
|
|
+import com.zhongzheng.modules.data.service.IDataWxTpClickService;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsSpecTemplateService;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsSpecTemplateVo;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsUserVo;
|
|
@@ -68,6 +71,8 @@ public class CommonController extends BaseController {
|
|
|
|
|
|
private final ISysTenantService iSysTenantService;
|
|
|
|
|
|
+ private final IDataWxTpClickService iDataWxTpClickService;
|
|
|
+
|
|
|
/**
|
|
|
* 获取微信小程序信息(网页跳转小程序)
|
|
|
*/
|
|
@@ -283,4 +288,20 @@ public class CommonController extends BaseController {
|
|
|
return toAjax(iCourseService.checkTime()? 1 : 0);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 领取题库活动记录
|
|
|
+ */
|
|
|
+ @ApiOperation("领取题库活动记录")
|
|
|
+ @GetMapping("/save/activity/record/{crowdType}")
|
|
|
+ public AjaxResult<Void> saveActivityRecord(@PathVariable("crowdType") Integer crowdType) {
|
|
|
+ DataWxTpClick dataWxTpClick = new DataWxTpClick();
|
|
|
+ dataWxTpClick.setCrowdType(crowdType);
|
|
|
+ dataWxTpClick.setCreateTime(DateUtils.getNowTime());
|
|
|
+ dataWxTpClick.setType(2);
|
|
|
+ dataWxTpClick.setStatus(1);
|
|
|
+ dataWxTpClick.setInformId(0L);
|
|
|
+ dataWxTpClick.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ return toAjax(iDataWxTpClickService.save(dataWxTpClick)? 1 : 0);
|
|
|
+ }
|
|
|
+
|
|
|
}
|