Commit 72fd1aac by 徐高华

sql bug

parent 9e167979
......@@ -738,7 +738,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
return (List<String>) cache;
}
List<String> list = hmQrcodeService.getHmStoreForWxa(wxEnterpriseId ,enterpriseId);
RedisUtil.setCache(key, list, 10L, TimeUnit.MINUTES);
RedisUtil.setCache(key, list, 5L, TimeUnit.MINUTES);
return list;
}
......
......@@ -315,9 +315,9 @@
select store_id storeId,
MIN(over_flag) overFlag
from tab_haoban_hm_qrcode
where 1
where 1
<if test="null != wxEnterpriseId">
wx_enterprise_id = #{wxEnterpriseId}
and wx_enterprise_id = #{wxEnterpriseId}
</if>
and enterprise_id = #{enterpriseId} and status_flag = 1
and store_id is not null
......@@ -329,7 +329,7 @@
from tab_haoban_hm_qrcode
where 1
<if test="null != wxEnterpriseId">
wx_enterprise_id = #{wxEnterpriseId}
and wx_enterprise_id = #{wxEnterpriseId}
</if>
and enterprise_id = #{enterpriseId} and status_flag = 1 and over_flag = 0 and store_id is not null
</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