diff --git a/src/main/java/org/energy/modules/leger/controller/InventoryDocumentController.java b/src/main/java/org/energy/modules/leger/controller/InventoryDocumentController.java index 67a58e1..ce5f9a9 100644 --- a/src/main/java/org/energy/modules/leger/controller/InventoryDocumentController.java +++ b/src/main/java/org/energy/modules/leger/controller/InventoryDocumentController.java @@ -26,6 +26,7 @@ import com.dayu.daf.core.mp.support.Condition; import com.dayu.daf.core.mp.support.Query; import com.dayu.daf.core.tool.api.R; import com.dayu.daf.core.tool.utils.Func; +import org.energy.modules.leger.entity.TechParameters; import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.RequestParam; import com.baomidou.mybatisplus.core.metadata.IPage; @@ -34,6 +35,8 @@ import org.energy.modules.leger.vo.InventoryDocumentVO; import org.energy.modules.leger.service.IInventoryDocumentService; import com.dayu.daf.core.boot.ctrl.DafController; +import java.util.List; + /** * 文档清册一览 控制器 * @@ -111,7 +114,7 @@ public class InventoryDocumentController extends DafController { return R.status(inventoryDocumentService.saveOrUpdate(inventoryDocument)); } - + /** * 删除 文档清册一览 */ @@ -122,5 +125,14 @@ public class InventoryDocumentController extends DafController { return R.status(inventoryDocumentService.deleteLogic(Func.toLongList(ids))); } - + /** + * 列表 技术参数一览 + */ + @GetMapping("/getList") + @ApiOperationSupport(order = 8) + @ApiOperation(value = "列表", notes = "传入inventoryDocument") + public R> getList(InventoryDocument inventoryDocument) { + List list = inventoryDocumentService.list(Condition.getQueryWrapper(inventoryDocument)); + return R.data(list); + } }