소스 검색

盯盘-个人消耗添加运营姓名

yangzian 3 년 전
부모
커밋
08b6a975b7

+ 2 - 1
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialStareMapper.xml

@@ -383,7 +383,8 @@
     <!-- 快手-运营 月总消耗 -->
     <select id="getKuaiShouAccountCostMonth" resultType="com.alibaba.fastjson.JSONObject">
         SELECT
-            SUM( d.charge ) cost
+            SUM( d.charge ) cost,
+            (SELECT realname from `jeecg-boot`.sys_user u where u.id = d.user_id) as userName
         FROM
             application.kuaishou_account_report_daily_dw d
         <where>

+ 1 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/service/impl/MaterialStareServiceImpl.java

@@ -302,6 +302,7 @@ public class MaterialStareServiceImpl implements MaterialStareService {
             //当前月消耗
             JSONObject monthCost = materialStareMapper.getKuaiShouAccountCostMonth(userId, monthFirstDay,nowDate);
             resultMap.put("monthCost",Check.isNull(monthCost) ? "0" : monthCost.getString("cost"));
+            resultMap.put("userName",Check.isNull(monthCost) ? "-" : monthCost.getString("userName"));
 
 
             //公司 组内排名