|
@@ -1,25 +1,32 @@
|
|
|
package com.miaxis.app.controller.test;
|
|
|
|
|
|
-import com.miaxis.app.test.domain.TestTable;
|
|
|
-import com.miaxis.app.test.service.ITestTableService;
|
|
|
+import java.util.List;
|
|
|
+import io.swagger.annotations.*;
|
|
|
+import com.miaxis.common.core.domain.Response;
|
|
|
+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.ModelAttribute;
|
|
|
import com.miaxis.common.annotation.Log;
|
|
|
import com.miaxis.common.core.controller.BaseController;
|
|
|
-import com.miaxis.common.core.domain.Response;
|
|
|
-import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
import com.miaxis.common.enums.BusinessTypeEnum;
|
|
|
+import com.miaxis.app.test.domain.TestTable;
|
|
|
+import com.miaxis.app.test.service.ITestTableService;
|
|
|
import com.miaxis.common.utils.poi.ExcelUtil;
|
|
|
-import io.swagger.annotations.*;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-
|
|
|
-import java.util.List;
|
|
|
+import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
|
|
|
/**
|
|
|
* 【测试表】Controller
|
|
|
*
|
|
|
* @author miaxis
|
|
|
- * @date 2020-12-21
|
|
|
+ * @date 2020-12-22
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/test/table")
|
|
@@ -39,6 +46,7 @@ public class TestTableController extends BaseController{
|
|
|
@ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
|
|
|
})
|
|
|
public ResponsePageInfo<TestTable> list(@ModelAttribute TestTable testTable){
|
|
|
+ startPage();
|
|
|
List<TestTable> list = testTableService.selectTestTableList(testTable);
|
|
|
return toResponsePageInfo(list);
|
|
|
}
|