|
|
@@ -5,14 +5,7 @@ import java.util.List;
|
|
|
import com.fs.his.vo.OptionsVO;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
@@ -107,9 +100,12 @@ public class FsQuestionAndAnswerController extends BaseController
|
|
|
* 查询问答列表
|
|
|
*/
|
|
|
@GetMapping("/allList")
|
|
|
- public TableDataInfo getHospital()
|
|
|
+ public TableDataInfo getHospital(@RequestParam(name = "type",required = false) Integer type)
|
|
|
{
|
|
|
- List<OptionsVO> list = fsQuestionAndAnswerService.selectAllQuestionOptions();
|
|
|
+ if (type == null) {
|
|
|
+ type = 1;
|
|
|
+ }
|
|
|
+ List<OptionsVO> list = fsQuestionAndAnswerService.selectAllQuestionOptions(type);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
}
|