Browse Source

选品库提交初版

zhaoxian 3 years ago
parent
commit
ff5e0061d6

+ 2 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/material/mapper/xml/ProductMaterialMapper.xml

@@ -70,7 +70,7 @@
         t1.item_run as 'itemRun',
         IFNULL(sum(t2.charge),0.00) as 'charge',
         CONCAT(t1.start_month,' ~ ',t1.end_month) as 'time',
-        (select realname from sys_user where t1.user_id = id)as 'user',
+        IFNULL(t3.realname,'-') as 'user',
         (SELECT COUNT(1) FROM ctop_product_material tt WHERE tt.product_id = t1.product_id AND tt.trade_name =
         t1.trade_name) as 'videoCount'
         FROM ctop_product_material t1
@@ -90,6 +90,7 @@
         </where>
         GROUP BY signature
         ) t2 ON t1.signature = t2.signature
+            left join (select id, realname from sys_user)t3 on t1.user_id =t3.id
         <where>
             <if test="productId!=null">
                 and t1.product_id = #{productId}