1; sql优化(数据库加索引)

2;mq问题排查处理(重新部署mq,后续切换)
3;登录页面去掉 默认admin
This commit is contained in:
wangshuai 2024-08-05 15:02:53 +08:00
parent 12d4d785df
commit 7e6df9e96e
3 changed files with 7 additions and 8 deletions

View File

@ -42,7 +42,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="returnVisitTime != null "> and return_visit_time = #{returnVisitTime}</if>
<if test="finishTime != null "> and finish_time = #{finishTime}</if>
<if test="beginTime != null and endTime != null"> and return_visit_time between #{beginTime} and #{endTime}</if>
<if test="beginTime == null and endTime == null"> and date_format(return_visit_time,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')</if>
<if test="storeList != null">
and store_code in
<foreach collection="storeList" open="(" close=")" item="item" separator="," index="i">
@ -63,13 +62,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectBusReturnVisitInfoVo"/>
<where>
<if test="storeCode != null and storeCode != ''"> and store_code = #{storeCode}</if>
<if test="date != null "> and DATE_FORMAT(return_visit_time,'%Y-%m-%d') = #{date}</if>
<if test="date != null "> and return_visit_time between CONCAT(#{date}, ' 00:00:00') AND CONCAT(#{date}, ' 23:59:59')</if>
</where>
</select>
<select id="countByToday" resultType="java.lang.Integer">
select count(id) from bus_return_visit_info
where date_format(return_visit_time,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')
<if test="storeCode != null and storeCode != ''"> and store_code = #{storeCode}</if>
where return_visit_time between CONCAT(CURDATE(), ' 00:00:00') AND CONCAT(CURDATE(), ' 23:59:59')
and store_code = #{storeCode}
</select>
<insert id="batchInsertVisit">

View File

@ -143,7 +143,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN (
select rv.store_code,count(rv.id) ct
from bus_return_visit_info rv
where DATE_FORMAT(rv.return_visit_time,'%Y-%m-%d') = CURDATE()
where rv.return_visit_time between CONCAT(CURDATE(), ' 00:00:00') AND CONCAT(CURDATE(), ' 23:59:59')
group by rv.store_code
) sdd ON sdd.store_code = s.store_code
where s.self_delivery_status != '3'
@ -173,7 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ifnull(sd.score,'-') score,
#{storeBelong} bindTime
FROM bus_store_info s
LEFT JOIN bus_store_day_history_info sd ON s.id = sd.store_id and DATE_FORMAT(sd.create_time,'%Y-%m-%d') = #{storeBelong}
LEFT JOIN bus_store_day_history_info sd ON s.id = sd.store_id and sd.create_time between CONCAT(#{storeBelong}, ' 00:00:00') AND CONCAT(#{storeBelong}, ' 23:59:59')
LEFT JOIN bus_store_config_info sc ON s.store_code = sc.store_code
where s.self_delivery_status != '3'
<if test="selfDeliveryStatus != null and selfDeliveryStatus != ''"> and s.self_delivery_status = #{selfDeliveryStatus}</if>
@ -258,7 +258,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ifnull(sd.score,'-')score,
#{storeBelong} bindTime
FROM bus_store_info s
LEFT JOIN bus_store_day_history_info sd ON s.id = sd.store_id and DATE_FORMAT(sd.create_time,'%Y-%m-%d') = #{storeBelong}
LEFT JOIN bus_store_day_history_info sd ON s.id = sd.store_id and sd.create_time between CONCAT(#{storeBelong}, ' 00:00:00') AND CONCAT(#{storeBelong}, ' 23:59:59')
LEFT JOIN bus_store_config_info sc ON s.store_code = sc.store_code
where s.self_delivery_status != '3'
<if test="saleBindId != null "> and s.sale_bind_id = #{saleBindId}</if>

View File

@ -115,7 +115,7 @@ export default {
return {
codeUrl: "",
loginForm: {
username: "admin",
username: "",
password: "",
rememberMe: false,
code: "",