Procházet zdrojové kódy

盯盘运营操作记录自定义列

yangzian před 3 roky
rodič
revize
59240ca6a5

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

@@ -1777,7 +1777,7 @@
 
 
     <select id="getColumnInfo" resultType="com.alibaba.fastjson.JSONObject">
-        select json from ctop_column_load where
+        select json from ctop_column_load
        <where>
             <if test="userId != null and userId != '' ">
                 AND user_id = #{userId}
@@ -1786,6 +1786,8 @@
                 AND column_type = #{columnType}
             </if>
         </where>
+        ORDER BY create_time
+        LIMIT 1
     </select>
 
 

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

@@ -88,7 +88,7 @@ public class KuaishouOperationRecordServiceImpl implements KuaishouOperationReco
     public Result getKuaishouUnitChargeTopTenByAccountId(String userId,long advertiserId, String startTime, String endTime) throws NoSuchFieldException {
 
         //用户查询自定义列数据
-        JSONObject jsonObject = materialStareMapper.getColumnInfo(userId,"2001");
+        JSONObject jsonObject = materialStareMapper.getColumnInfo(null,"2001");
         if (Check.isNull(jsonObject)){
             return Result.errorMsg("暂无自定义列。");
         }