Commit 3db154a0 authored by wujipeng's avatar wujipeng
Browse files

运维工单编辑

parent e7812100
...@@ -4,10 +4,7 @@ import com.platform.controller.BaseController; ...@@ -4,10 +4,7 @@ import com.platform.controller.BaseController;
import com.platform.page.TableDataInfo; import com.platform.page.TableDataInfo;
import com.ruzhoukj.sms.model.dto.KzWorkDTO; import com.ruzhoukj.sms.model.dto.KzWorkDTO;
import com.ruzhoukj.sms.service.KzWorkService; import com.ruzhoukj.sms.service.KzWorkService;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
...@@ -25,8 +22,13 @@ public class KzWorkController extends BaseController { ...@@ -25,8 +22,13 @@ public class KzWorkController extends BaseController {
private KzWorkService kzWorkService; private KzWorkService kzWorkService;
@PostMapping("/page") @PostMapping("/page")
public TableDataInfo page(@RequestBody KzWorkDTO kzWorkDTO){ public TableDataInfo page(@RequestBody KzWorkDTO kzWorkDTO) {
startPage(kzWorkDTO.getPageNum(), kzWorkDTO.getPageSize()); startPage(kzWorkDTO.getPageNum(), kzWorkDTO.getPageSize());
return getDataTable(kzWorkService.pageInfo(kzWorkDTO)); return getDataTable(kzWorkService.pageInfo(kzWorkDTO));
} }
@PutMapping("/update")
public boolean update(@RequestBody KzWorkDTO kzWorkDTO) {
return kzWorkService.updateById(kzWorkDTO);
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment