|
@ -11,6 +11,7 @@ import com.yihu.jw.util.common.StringUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@ -44,12 +45,17 @@ public class StdDatasetController extends EnvelopRestEndpoint {
|
|
|
@RequestParam(value = "stdVersion") String stdVersion,
|
|
|
@ApiParam(name = "condition", value = "查询条件:编码或名称")
|
|
|
@RequestParam(value = "condition", required = false) String condition,
|
|
|
@ApiParam(name = "q", value = "前端控件传过来的查询条件,此值会覆盖condition")
|
|
|
@RequestParam(value = "q", required = false) String q,
|
|
|
@ApiParam(name = "order", value = "Order param,Must be json.ascending:asc,descending:desc")
|
|
|
@RequestParam(value = "order", required = false) String order,
|
|
|
@ApiParam(name = "rows", value = "Limit the size of result set. Must be an integer")
|
|
|
@RequestParam(value = "rows", required = false) Integer rows,
|
|
|
@ApiParam(name = "page", value = "Start position of result set. Must be an integer")
|
|
|
@RequestParam(value = "page", required = false) Integer page) {
|
|
|
if(StringUtils.isNotBlank(q)){
|
|
|
condition="{\"name\":\""+q+"\"}";
|
|
|
}
|
|
|
return stdDatasetService.getDetailModelList(stdVersion, condition, order, rows, page);
|
|
|
}
|
|
|
|