抽奖次数
This commit is contained in:
parent
886392e878
commit
c6e45134d0
|
|
@ -217,14 +217,15 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, Course> implements
|
|||
long courseId = Convert.toLong(map.get("courseId"));
|
||||
Map<String, Object> countMap = courseDetailsDao.countCourse(courseId);
|
||||
BigDecimal payMoney = ordersDao.sumPayByCourseId(courseId);
|
||||
map.put("courseDetailsId", payMoney==null?BigDecimal.ZERO:payMoney);
|
||||
map.put("payMoney", payMoney == null ? BigDecimal.ZERO : payMoney);
|
||||
map.put("courseDetailsId", null);
|
||||
map.put("courseDetailsName", "");
|
||||
map.put("dyEpisodeId", "");
|
||||
map.put("wxCourseDetailsId", "");
|
||||
map.putAll(countMap);
|
||||
}
|
||||
PageUtils pageUtils = PageUtils.page(pageInfo);
|
||||
setCache(cacheKey, JSONUtil.toJsonStr(pageUtils));
|
||||
// setCache(cacheKey, JSONUtil.toJsonStr(pageUtils));
|
||||
return Result.success().put("data", pageUtils);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@
|
|||
|
||||
|
||||
<select id="countDraw" resultType="int">
|
||||
SELECT count(1) FROM `disc_spinning_record` where user_id = #{userId} and draw_day = DATE_FORMAT(CURDATE(), '%Y-%m-%d');
|
||||
SELECT count(1) FROM `disc_spinning_record` where user_id = #{userId} and `source` = 'order' and draw_day = DATE_FORMAT(CURDATE(), '%Y-%m-%d');
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue