修改
This commit is contained in:
@@ -73,6 +73,7 @@ public class TGiftBookServiceImpl implements ITGiftBookService {
|
||||
private LambdaQueryWrapper<TGiftBook> buildQueryWrapper(TGiftBookBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<TGiftBook> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(TGiftBook::getDelFlag, 0);
|
||||
lqw.orderByAsc(TGiftBook::getId);
|
||||
lqw.like(StringUtils.isNotBlank(bo.getName()), TGiftBook::getName, bo.getName());
|
||||
return lqw;
|
||||
|
||||
@@ -20,6 +20,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="null != bo.eventType">
|
||||
and tgbd.event_type = #{bo.eventType}
|
||||
</if>
|
||||
<if test="null != bo.isReturn">
|
||||
and tgbd.is_return = #{bo.isReturn}
|
||||
</if>
|
||||
<if test="null != bo.address">
|
||||
and tgbd.address like concat('%', #{bo.address}, '%')
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user