|
@@ -4,9 +4,7 @@ package com.hssx.pcbms.controller;
|
|
|
import com.hssx.pcbms.entity.*;
|
|
|
import com.hssx.pcbms.entity.vo.GoodsVO;
|
|
|
import com.hssx.pcbms.entity.vo.MaintainRecordVO;
|
|
|
-import com.hssx.pcbms.entity.vo.OperateRecordVO;
|
|
|
import com.hssx.pcbms.service.GoodsService;
|
|
|
-import com.hssx.pcbms.util.FileUtil;
|
|
|
import com.hssx.pcbms.util.HttpRespMsg;
|
|
|
import com.hssx.pcbms.util.PageUtil;
|
|
|
import com.hssx.pcbms.util.UploadFileToFileNameUtil;
|
|
@@ -15,15 +13,10 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
-import javax.annotation.Resource;
|
|
|
-import java.io.File;
|
|
|
-
|
|
|
/**
|
|
|
* @author 吴涛涛
|
|
|
* @since 2019-10-25
|
|
@@ -102,13 +95,16 @@ public class GoodsController {
|
|
|
* 参数:
|
|
|
* name :名称,keyName:关键字,pageNum:当前页,pageSize:每页多少条
|
|
|
* tagId:标签id(单个标签)(查看全部不传)
|
|
|
+ * uid :查看我的资产时传当前人的id
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation(value = "资产列表", notes = "资产列表方法")
|
|
|
@RequestMapping("/list")
|
|
|
@ResponseBody
|
|
|
- public HttpRespMsg list(PageUtil page, @RequestParam(required = false) String keyName, @RequestParam(required = false)Integer tagId) {
|
|
|
- HttpRespMsg msg = goodsService.getList(page, keyName, tagId);
|
|
|
+ public HttpRespMsg list(PageUtil page, @RequestParam(required = false) String keyName,
|
|
|
+ @RequestParam(required = false)Integer tagId,
|
|
|
+ @RequestParam(required = false)Integer uid) {
|
|
|
+ HttpRespMsg msg = goodsService.getList(page, keyName, tagId,uid);
|
|
|
return msg;
|
|
|
}
|
|
|
|
|
@@ -199,21 +195,6 @@ public class GoodsController {
|
|
|
return msg;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 资产编号删除
|
|
|
- * 参数:
|
|
|
- * id:对应编号的id
|
|
|
- *
|
|
|
- * @return
|
|
|
- */
|
|
|
- @ApiOperation(value = "资产编号删除", notes = "资产编号删除方法")
|
|
|
- @RequestMapping("/goodsNodel")
|
|
|
- @ResponseBody
|
|
|
- public HttpRespMsg goodsNodel(GoodsNo goodsNo) {
|
|
|
- HttpRespMsg msg = goodsService.goodsNodel(goodsNo);
|
|
|
- return msg;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 资产编号添加
|
|
|
* 参数:
|
|
@@ -232,7 +213,7 @@ public class GoodsController {
|
|
|
/**
|
|
|
* 处置资产操作记录
|
|
|
* 参数:
|
|
|
- * id:资产id,
|
|
|
+ * id:资产id,pageNum:当前页,pageSize:每页多少条
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
@@ -275,7 +256,7 @@ public class GoodsController {
|
|
|
/**
|
|
|
* 维护资产记录
|
|
|
* 参数:
|
|
|
- * id:资产id
|
|
|
+ * id:资产id,pageNum:当前页,pageSize:每页多少条
|
|
|
*
|
|
|
* @return
|
|
|
*/
|