This commit is contained in:
xzh
2025-07-24 21:26:56 +08:00
parent d1daa00258
commit 625ce49c7e
2 changed files with 4 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ public class TGiftBookServiceImpl implements ITGiftBookService {
private LambdaQueryWrapper<TGiftBook> buildQueryWrapper(TGiftBookBo bo) { private LambdaQueryWrapper<TGiftBook> buildQueryWrapper(TGiftBookBo bo) {
Map<String, Object> params = bo.getParams(); Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<TGiftBook> lqw = Wrappers.lambdaQuery(); LambdaQueryWrapper<TGiftBook> lqw = Wrappers.lambdaQuery();
lqw.eq(TGiftBook::getDelFlag, 0);
lqw.orderByAsc(TGiftBook::getId); lqw.orderByAsc(TGiftBook::getId);
lqw.like(StringUtils.isNotBlank(bo.getName()), TGiftBook::getName, bo.getName()); lqw.like(StringUtils.isNotBlank(bo.getName()), TGiftBook::getName, bo.getName());
return lqw; return lqw;

View File

@@ -20,6 +20,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="null != bo.eventType"> <if test="null != bo.eventType">
and tgbd.event_type = #{bo.eventType} and tgbd.event_type = #{bo.eventType}
</if> </if>
<if test="null != bo.isReturn">
and tgbd.is_return = #{bo.isReturn}
</if>
<if test="null != bo.address"> <if test="null != bo.address">
and tgbd.address like concat('%', #{bo.address}, '%') and tgbd.address like concat('%', #{bo.address}, '%')
</if> </if>