|
@@ -1,19 +1,15 @@
|
|
|
-package com.ebei.device.weixin.controller;
|
|
|
+package com.ebei.device.asset.weixin.contorller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
|
|
-import com.ebei.device.base.controller.BaseController;
|
|
|
-import com.ebei.device.common.util.ResponsePageEx;
|
|
|
-import com.ebei.device.weixin.model.vo.AssetHistoryTask;
|
|
|
-import com.ebei.device.weixin.service.AssetTaskService;
|
|
|
+import com.ebei.device.asset.weixin.model.vo.AssetHistoryTask;
|
|
|
+import com.ebei.device.asset.weixin.service.AssetTaskService;
|
|
|
+import com.ebei.device.asset.weixin.util.ResponsePageEx;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
@@ -25,7 +21,7 @@ import java.util.Map;
|
|
|
@RestController
|
|
|
@RequestMapping("/assetTask")
|
|
|
@Api(value = "assetTask", description = "资产任务")
|
|
|
-public class AssetTaskController extends BaseController {
|
|
|
+public class AssetTaskController {
|
|
|
|
|
|
|
|
|
@Autowired
|
|
@@ -39,9 +35,9 @@ public class AssetTaskController extends BaseController {
|
|
|
@ApiImplicitParam(name = "tenantId", value = "租户Id", required = true, paramType = "query"),
|
|
|
@ApiImplicitParam(name = "assetId", value = "资产Id", required = true, paramType = "query")
|
|
|
})
|
|
|
- @PostMapping("/selectAssetTaskList")
|
|
|
+ @GetMapping("/selectAssetTaskList")
|
|
|
public ResponsePageEx<Object> selectAssetTaskList(@RequestParam(required = false) Integer pageSize, @RequestParam(required = false) Integer pageIndex,
|
|
|
- @RequestParam Long tenantId, @RequestParam Long assetId) {
|
|
|
+ @RequestParam Long tenantId, @RequestParam Long assetId) {
|
|
|
|
|
|
Page<AssetHistoryTask> page = new Page<>(pageIndex == null ? 1 : pageIndex, pageSize == null ? Integer.MAX_VALUE : pageSize);
|
|
|
Map<String,Object> params = new HashMap<>();
|