1; 查询订单
This commit is contained in:
parent
795b2e6955
commit
1a7494076c
|
@ -79,14 +79,18 @@ spring:
|
||||||
# redis 配置
|
# redis 配置
|
||||||
redis:
|
redis:
|
||||||
# 地址
|
# 地址
|
||||||
host: 49.232.250.68
|
host: 43.140.224.18
|
||||||
|
# host: 49.232.250.68
|
||||||
# host: localhost
|
# host: localhost
|
||||||
# 端口,默认为6379
|
# 端口,默认为6379
|
||||||
port: 16379
|
port: 6379
|
||||||
|
# port: 16379
|
||||||
# 数据库索引
|
# 数据库索引
|
||||||
database: 0
|
database: 0
|
||||||
# 密码
|
# 密码
|
||||||
password: MjJUyaRZ_HDgZ2w_6XxK
|
password: xxhy@2024
|
||||||
|
# password: MjJUyaRZ_HDgZ2w_6XxK
|
||||||
|
# password:
|
||||||
# 连接超时时间
|
# 连接超时时间
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
lettuce:
|
lettuce:
|
||||||
|
|
|
@ -109,6 +109,8 @@ public class BusStoreInfoServiceImpl implements IBusStoreInfoService
|
||||||
return busStoreInfoMapper.updateBusStoreInfo(busStoreInfo);
|
return busStoreInfoMapper.updateBusStoreInfo(busStoreInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
public int changeReturnVisitStatus(BusStoreInfo busStoreInfo)
|
public int changeReturnVisitStatus(BusStoreInfo busStoreInfo)
|
||||||
{
|
{
|
||||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||||
|
|
|
@ -52,14 +52,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT t1.*
|
SELECT t1.*
|
||||||
FROM bus_order_info AS t1
|
FROM bus_order_info AS t1
|
||||||
JOIN (
|
JOIN (
|
||||||
select a.order_no,min(a.id) AS min_id
|
select a.privcy_phone,a.order_no,min(a.id) AS min_id
|
||||||
from bus_order_info a
|
from bus_return_visit_info b
|
||||||
LEFT JOIN bus_return_visit_info b on b.phone_number=a.privcy_phone
|
LEFT JOIN bus_order_info a on b.phone_number=a.privcy_phone
|
||||||
where b.return_visit_time is null
|
where b.return_visit_time is null and b.phone_number != ''
|
||||||
<if test="storeCode != null and storeCode != ''"> and a.store_code = #{storeCode}</if>
|
and a.store_code = #{storeCode}
|
||||||
<if test="t1 != null and t1 != ''"> and a.complete_time > #{t1}</if>
|
and a.complete_time > #{t1}
|
||||||
<if test="t2 != null and t2 != ''"> and a.complete_time <= #{t2}</if>
|
and a.complete_time <= #{t2}
|
||||||
GROUP BY a.order_no
|
GROUP BY a.privcy_phone,a.order_no
|
||||||
) AS t2 ON t1.order_no = t2.order_no AND t1.id = t2.min_id;
|
) AS t2 ON t1.order_no = t2.order_no AND t1.id = t2.min_id;
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -67,13 +67,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT t1.*
|
SELECT t1.*
|
||||||
FROM bus_order_info AS t1
|
FROM bus_order_info AS t1
|
||||||
JOIN (
|
JOIN (
|
||||||
select a.order_no,min(a.id) AS min_id
|
select a.privcy_phone,a.order_no,min(a.id) AS min_id
|
||||||
from bus_order_info a
|
from bus_return_visit_info b
|
||||||
LEFT JOIN bus_return_visit_info b on b.phone_number=a.privcy_phone
|
LEFT JOIN bus_order_info a on b.phone_number=a.privcy_phone
|
||||||
where b.return_visit_time is null
|
where b.return_visit_time is null and b.phone_number != ''
|
||||||
<if test="storeCode != null and storeCode != ''"> and a.store_code = #{storeCode}</if>
|
and a.store_code = #{storeCode}
|
||||||
<if test="t2 != null and t2 != ''"> and a.order_time <= #{t2}</if>
|
and a.order_time <= #{t2}
|
||||||
GROUP BY a.order_no
|
GROUP BY a.privcy_phone,a.order_no
|
||||||
) AS t2 ON t1.order_no = t2.order_no AND t1.id = t2.min_id;
|
) AS t2 ON t1.order_no = t2.order_no AND t1.id = t2.min_id;
|
||||||
</select>
|
</select>
|
||||||
<select id="selectBusOrderInfoListA" resultMap="BusOrderInfoResult">
|
<select id="selectBusOrderInfoListA" resultMap="BusOrderInfoResult">
|
||||||
|
|
Loading…
Reference in New Issue