|
@@ -48,7 +48,7 @@ public class PlanController {
|
|
|
|
|
|
@GetMapping("/page")
|
|
|
@ApiOperation(value = "分页查询")
|
|
|
- @ToFlyAppLog(title = "分页查询巡检计划详细信息")
|
|
|
+
|
|
|
public ResultRespone<Page<Plan>> getPlanPage(Page page, @ModelAttribute PlanDto parDto) {
|
|
|
ResultRespone<Page<Plan>> rest = new ResultRespone<>();
|
|
|
try {
|
|
@@ -63,7 +63,7 @@ public class PlanController {
|
|
|
}
|
|
|
@GetMapping("/getPlanTimeIntervalPage")
|
|
|
@ApiOperation(value = "分页查询巡检计划满足时间范围内详细信息")
|
|
|
- @ToFlyAppLog(title = "分页查询巡检计划满足时间范围内详细信息")
|
|
|
+
|
|
|
public ResultRespone<Page<Plan>> getPlanTimeIntervalPage(Page page, @ModelAttribute PlanDto parDto) {
|
|
|
ResultRespone<Page<Plan>> rest = new ResultRespone<>();
|
|
|
try {
|
|
@@ -79,7 +79,7 @@ public class PlanController {
|
|
|
|
|
|
@ApiOperation(value = "新增基本信息对象")
|
|
|
@PostMapping("/save")
|
|
|
- @ToFlyAppLog(title = "新增巡检计划详细信息")
|
|
|
+
|
|
|
public ResultRespone<Object> savePlan(@Valid @RequestBody PlanDto parDto) {
|
|
|
ResultRespone<Object> rest = new ResultRespone<>();
|
|
|
|
|
@@ -97,7 +97,7 @@ public class PlanController {
|
|
|
|
|
|
@ApiOperation(value = "修改基本信息")
|
|
|
@PutMapping("/updata")
|
|
|
- @ToFlyAppLog(title = "修改巡检计划详细信息")
|
|
|
+
|
|
|
public ResultRespone<Object> updateByIdPlan(@Valid @RequestBody PlanDto parDto) {
|
|
|
ResultRespone<Object> rest = new ResultRespone<>();
|
|
|
|
|
@@ -119,7 +119,7 @@ public class PlanController {
|
|
|
@ApiImplicitParam(name = "planState", value = "planState 3 正在执行 5 已开始未执行", required = true, dataType = "String"),
|
|
|
@ApiImplicitParam(name = "userId", value = "userId", required = true, dataType = "Long"),
|
|
|
})
|
|
|
- @ToFlyAppLog(title = "修改计划状态")
|
|
|
+
|
|
|
public ResultRespone<Boolean> updatePlanState(Long planId, String planState, Long userId) {
|
|
|
ResultRespone<Boolean> rest = new ResultRespone<>();
|
|
|
try {
|
|
@@ -139,7 +139,7 @@ public class PlanController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "id", value = "ID", required = true, dataType = "Long")
|
|
|
})
|
|
|
- @ToFlyAppLog(title = "通过ID查询巡检计划详细信息")
|
|
|
+
|
|
|
public ResultRespone<Plan> getByIdPlan(@PathVariable Long id) {
|
|
|
ResultRespone<Plan> rest = new ResultRespone<>();
|
|
|
try {
|
|
@@ -157,7 +157,7 @@ public class PlanController {
|
|
|
@ApiImplicitParam(name = "idList", value = "批量删除,多个id以逗号隔开", required = true, dataType = "String")
|
|
|
})
|
|
|
@DeleteMapping("/deleteByIds")
|
|
|
- @ToFlyAppLog(title = "通过ID批量删除巡检计划详细信息")
|
|
|
+
|
|
|
public ResultRespone<Object> removeByIdListPlan(String idList) {
|
|
|
ResultRespone<Object> rest = new ResultRespone<>();
|
|
|
try {
|
|
@@ -177,7 +177,7 @@ public class PlanController {
|
|
|
@ApiImplicitParam(name = "id", value = "计划id", required = true, dataType = "Long"),
|
|
|
@ApiImplicitParam(name = "flag", value = "是否展示部门下所有数据 是则填1 个人不填为空", required = false, dataType = "String")
|
|
|
})
|
|
|
- @ToFlyAppLog(title = "通过ID查询计划详情")
|
|
|
+
|
|
|
public ResultRespone<List<PlanDetailVo>> getPlanDetail(Long id, String flag) {
|
|
|
ResultRespone<List<PlanDetailVo>> rest = new ResultRespone<>();
|
|
|
try {
|
|
@@ -192,7 +192,7 @@ public class PlanController {
|
|
|
|
|
|
@GetMapping("/planUrgent")
|
|
|
@ApiOperation(value = "巡检计划加急督办处理")
|
|
|
- @ToFlyAppLog(title = "巡检计划加急督办处理")
|
|
|
+
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "planId", value = "巡检计划计划id", required = true, dataType = "Long"),
|
|
|
@ApiImplicitParam(name = "planState", value = "计划状态", required = true, dataType = "String"),
|