Commit d7bfb71b authored by shiyu's avatar shiyu

usr表

parent dbdff0e4
......@@ -48,11 +48,11 @@ public class AdminDashbordController {
int userTotal = userService.count();
int goodsTotal = goodsService.count();
int productTotal = productService.count();
// int productTotal = productService.count();
Map<String, Integer> data = new HashMap<>();
data.put("userTotal", userTotal);
data.put("goodsTotal", goodsTotal);
data.put("productTotal", productTotal);
// data.put("productTotal", productTotal);
logger.info("【请求结束】系统管理->首页仪表盘查询:响应结果:{}", JSONObject.toJSONString(data));
return ResponseUtil.ok(data);
......
......@@ -15,7 +15,7 @@
<select id="statisIncreaseUserCnt" resultMap="DayStatis" parameterType="map">
select date_format(t.add_time,"%Y-%m-%d") as statis_day,count(1) as statis_cnts
from dts_user t where t.add_time &gt; date_add(now(),interval -#{daysAgo} day)
from user t where t.add_time &gt; date_add(now(),interval -#{daysAgo} day)
and t.deleted=0
group by date_format(t.add_time,"%Y-%m-%d")
</select>
......@@ -41,7 +41,7 @@
select
substr(add_time,1,10) as day,
count(distinct id) as users
from dts_user
from user
group by substr(add_time,1,10)
</select>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment