修改sql语句报错的问题

This commit is contained in:
yangjun 2025-07-03 15:38:45 +08:00
parent f83a274716
commit 063bb7607b
2 changed files with 8 additions and 6 deletions

View File

@ -17,6 +17,8 @@ import org.jeecg.modules.zh.view.hy.entity.Hy;
*/
public interface BlHousingestateInfoMapper extends BaseMapper<BlHousingestateInfo> {
IPage<BlHousingestateInfo> findPage(Page<BlHousingestateInfo> page, @Param("params")BlHousingestateInfo blHousingestateInfo);
IPage<Hy> queryXqHyTdzlList(Page<Hy> page, @Param("hy")Hy hy);
IPage<Hy> queryXqHyXzList(Page<Hy> page, @Param("hy")Hy hy);

View File

@ -25,8 +25,8 @@
round(sum(a.weight),2) as weight
from bl_order_info a
inner join bl_housingestate_info b on a.housingestate_id = b.housingestate_id
and a.add_time >= #{beginTime}
and a.add_time &lt;= #{endTime}
and a.add_time >= #{hy.beginTime}
and a.add_time &lt;= #{hy.endTime}
group by a.housingestate_id,b.name
ORDER BY weight desc
</select>
@ -38,8 +38,8 @@
count(a.phone) as cn
from bl_user_info a
inner join bl_housingestate_info b on a.housingestate_id = b.housingestate_id
where a.register_date >= #{beginTime}
and a.register_date &lt;= #{endTime}
where a.register_date >= #{hy.beginTime}
and a.register_date &lt;= #{hy.endTime}
group by a.housingestate_id,b.name
ORDER BY cn desc
</select>
@ -51,8 +51,8 @@
count(a.id) as cn
from bl_order_info a
inner join bl_housingestate_info b on a.housingestate_id = b.housingestate_id
where a.add_time >= #{beginTime}
and a.add_time &lt;= #{endTime}
where a.add_time >= #{hy.beginTime}
and a.add_time &lt;= #{hy.endTime}
group by a.housingestate_id,b.name
order by cn desc
</select>