|
@@ -4,7 +4,7 @@ package com.gqy.web.controller.document;
|
|
import com.gqy.common.core.controller.BaseController;
|
|
import com.gqy.common.core.controller.BaseController;
|
|
import com.gqy.common.core.domain.AjaxResult;
|
|
import com.gqy.common.core.domain.AjaxResult;
|
|
import com.gqy.common.core.page.TableDataInfo;
|
|
import com.gqy.common.core.page.TableDataInfo;
|
|
-import com.gqy.document.domain.Work;
|
|
|
|
|
|
+import com.gqy.document.domain.DcWork;
|
|
import com.gqy.document.service.IWorkService;
|
|
import com.gqy.document.service.IWorkService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -14,7 +14,7 @@ import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/work")
|
|
@RequestMapping("/work")
|
|
-public class WorkController extends BaseController {
|
|
|
|
|
|
+public class DcWorkController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IWorkService iWorkService;
|
|
private IWorkService iWorkService;
|
|
@@ -28,11 +28,11 @@ public class WorkController extends BaseController {
|
|
*/
|
|
*/
|
|
//@PostMapping("/list")
|
|
//@PostMapping("/list")
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
- public TableDataInfo list(Work work) {
|
|
|
|
|
|
+ public TableDataInfo list(DcWork work) {
|
|
// 开启分页
|
|
// 开启分页
|
|
startPage();
|
|
startPage();
|
|
// 获取工程列表
|
|
// 获取工程列表
|
|
- List<Work> list = iWorkService.selectWorkList(work);
|
|
|
|
|
|
+ List<DcWork> list = iWorkService.selectWorkList(work);
|
|
// 返回分页数据
|
|
// 返回分页数据
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|
|
@@ -45,7 +45,7 @@ public class WorkController extends BaseController {
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/add")
|
|
@PostMapping(value = "/add")
|
|
- public AjaxResult add(@Validated @RequestBody Work work) {
|
|
|
|
|
|
+ public AjaxResult add(@Validated @RequestBody DcWork work) {
|
|
return toAjax(iWorkService.insertWork(work));
|
|
return toAjax(iWorkService.insertWork(work));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -57,7 +57,7 @@ public class WorkController extends BaseController {
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/edit")
|
|
@PostMapping(value = "/edit")
|
|
- public AjaxResult edit(@Validated @RequestBody Work work) {
|
|
|
|
|
|
+ public AjaxResult edit(@Validated @RequestBody DcWork work) {
|
|
return toAjax(iWorkService.updateWork(work));
|
|
return toAjax(iWorkService.updateWork(work));
|
|
}
|
|
}
|
|
|
|
|