|
@@ -101,38 +101,14 @@ public class TaLiveActivityServiceImpl extends ServiceImpl<TaLiveActivityMapper,
|
101
|
101
|
}
|
102
|
102
|
|
103
|
103
|
@Override
|
104
|
|
- public ResponseBean listLiveActivityByCondition(Integer pageNum, Integer pageSize, Integer orgId, String liveActivityTitle,
|
105
|
|
- String cityId, String buildingId, String liveDetailType, Integer status) {
|
|
104
|
+ public IPage<TaLiveActivity> listLiveActivityByCondition(Integer pageNum, Integer pageSize, Integer orgId, String liveActivityTitle,
|
|
105
|
+ String cityId, String buildingId, Integer status) {
|
106
|
106
|
logger.info("TaLiveActivityServiceImpl.listLiveActivityByCondition 接收参数:pageNum:{},pageSize:{},orgId:{}," +
|
107
|
107
|
"liveActivityTitle:{},cityId:{},buildingId:{},liveDetailType:{},status:{}", pageNum, pageSize,
|
108
|
|
- liveActivityTitle, cityId, buildingId, liveDetailType, status);
|
|
108
|
+ liveActivityTitle, cityId, buildingId, status);
|
109
|
109
|
|
110
|
|
- ResponseBean responseBean = new ResponseBean();
|
111
|
110
|
IPage<TaLiveActivity> pg = new Page<>(pageNum, pageSize);
|
112
|
|
- QueryWrapper<TaLiveActivity> queryWrapper = new QueryWrapper<>();
|
113
|
|
-
|
114
|
|
- if (orgId != null) {
|
115
|
|
- queryWrapper.eq("org_id", orgId);
|
116
|
|
- }
|
117
|
|
- if (StringUtils.isNotBlank(liveActivityTitle)) {
|
118
|
|
- queryWrapper.like("live_activity_title", liveActivityTitle);
|
119
|
|
- }
|
120
|
|
- if (StringUtils.isNotBlank(cityId)) {
|
121
|
|
- queryWrapper.eq("city_id", cityId);
|
122
|
|
- }
|
123
|
|
- if (StringUtils.isNotBlank(buildingId)) {
|
124
|
|
- queryWrapper.eq("building_id", buildingId);
|
125
|
|
- }
|
126
|
|
- if (StringUtils.isNotBlank(liveDetailType)) {
|
127
|
|
- queryWrapper.eq("live_detail_type", liveDetailType);
|
128
|
|
- }
|
129
|
|
- if (status != null) {
|
130
|
|
- queryWrapper.eq("status", status);
|
131
|
|
- }
|
132
|
|
- queryWrapper.orderByDesc("create_date");
|
133
|
|
- IPage<TaLiveActivity> result = page(pg, queryWrapper);
|
134
|
|
- responseBean.addSuccess(result);
|
135
|
|
- return responseBean;
|
|
111
|
+ return taLiveActivityMapper.selectLiveListByCondition(pg, liveActivityTitle, cityId, buildingId, status, orgId);
|
136
|
112
|
}
|
137
|
113
|
|
138
|
114
|
@Override
|