|
|
|
@ -13,6 +13,7 @@ import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@ -66,6 +67,13 @@ public class CustomServiceImpl implements CustomService {
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject query(JSONObject param, int page, int limit) {
|
|
|
|
|
param.put("orderStatus", OrderStatus.SUCCESS.getStatus());
|
|
|
|
|
List<String> channels = customSupport.customSupportedChannels(param.getIntValue("client_id"));
|
|
|
|
|
param.put("channels",channels);
|
|
|
|
|
if(!StringUtils.isEmpty(param.getString("channel"))) {
|
|
|
|
|
channels.clear();
|
|
|
|
|
channels.add(param.getString("channel"));
|
|
|
|
|
param.put("channels",channels);
|
|
|
|
|
}
|
|
|
|
|
return PageListUtils.buildPageListResult(customReportsMapper.queryWithTrans(param, new PageBounds(page, limit)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|