提交 23dcbf94 authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 798590cf
......@@ -117,7 +117,7 @@ public interface GoodsLogMapper extends BaseMapper<GoodsLog> {
// 交易次数除以总订单数
+ " CONCAT(ROUND(tradenum/(SELECT COUNT(*) FROM sta_order)*100,2),'','%') percent, "
+ " sum(a.tradeamount) tradeamount, sum(a.downloadnum) "
+ " downloadnum, s.id type, a.typezh, a.siteid, date_format(a.createtime, '') createtime from sta_goods_log a, (select count(c.id) id,c.typezh,c.shuliang from (select z.id,COUNT(z.id) shuliang, "
+ " downloadnum, s.typezh type, a.typezh, a.siteid, date_format(a.createtime, '') createtime from sta_goods_log a, (select count(c.id) id,c.typezh,c.shuliang from (select z.id,COUNT(z.id) shuliang, "
+ " z.typezh, z.name from sta_goods_log z group by z.name) c group by c.typezh ) s where a.typezh = s.typezh group by a.typezh order by sum(a.clicknum) desc "
+ "</script>")
List<GoodsLogVo> getAll();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论