|
@@ -25,7 +25,7 @@ public class TpNewsServiceImpl extends ServiceImpl<TpNewsMapper, TpNews> impleme
|
25
|
25
|
public IPage<TpNews> getListBy(IPage<TpNews> page, Integer orgId, String newsName, Integer status,String newsTypeId) {
|
26
|
26
|
QueryWrapper<TpNews> queryWrapper = new QueryWrapper<>();
|
27
|
27
|
queryWrapper.eq("org_id", orgId);
|
28
|
|
- queryWrapper.eq(StringUtils.isEmpty(newsTypeId),"org_id", newsTypeId);
|
|
28
|
+ queryWrapper.eq(!StringUtils.isEmpty(newsTypeId),"news_type_id", newsTypeId);
|
29
|
29
|
queryWrapper.eq(status != null, "status", status);
|
30
|
30
|
queryWrapper.gt(status == null, "status", CommConstant.STATUS_DELETE);
|
31
|
31
|
queryWrapper.like(!StringUtils.isEmpty(newsName), "news_name", "%" + newsName + "%");
|