|
@@ -1,9 +1,9 @@
|
|
package org.dromara.InventoryManagement.controller;
|
|
package org.dromara.InventoryManagement.controller;
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
-import org.dromara.InventoryManagement.domain.bo.SupplierBo;
|
|
|
|
-import org.dromara.InventoryManagement.domain.vo.SupplierVo;
|
|
|
|
-import org.dromara.InventoryManagement.service.impl.SupplierServiceImpl;
|
|
|
|
|
|
+import org.dromara.InventoryManagement.domain.bo.BaseSupplierBo;
|
|
|
|
+import org.dromara.InventoryManagement.domain.vo.BaseSupplierVo;
|
|
|
|
+import org.dromara.InventoryManagement.service.impl.BaseBaseSupplierServiceImpl;
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
import org.dromara.common.web.core.BaseController;
|
|
import org.dromara.common.web.core.BaseController;
|
|
@@ -16,39 +16,39 @@ import org.springframework.web.bind.annotation.*;
|
|
@RestController
|
|
@RestController
|
|
@RequiredArgsConstructor
|
|
@RequiredArgsConstructor
|
|
@RequestMapping("/inventoryManagement/Supplier")
|
|
@RequestMapping("/inventoryManagement/Supplier")
|
|
-public class SupplierController extends BaseController {
|
|
|
|
|
|
+public class BaseSupplierController extends BaseController {
|
|
|
|
|
|
- private final SupplierServiceImpl supplierService;
|
|
|
|
|
|
+ private final BaseBaseSupplierServiceImpl supplierService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 分页查询供应商管理
|
|
* 分页查询供应商管理
|
|
- * @param supplierBo 查询条件
|
|
|
|
|
|
+ * @param baseSupplierBo 查询条件
|
|
* @param pageQuery 分页条件
|
|
* @param pageQuery 分页条件
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@GetMapping("/PageList")
|
|
@GetMapping("/PageList")
|
|
- public TableDataInfo<SupplierVo> selectPageSupplierList(SupplierBo supplierBo, PageQuery pageQuery) {
|
|
|
|
- return supplierService.selectPageSupplierList(supplierBo, pageQuery);
|
|
|
|
|
|
+ public TableDataInfo<BaseSupplierVo> selectPageSupplierList(BaseSupplierBo baseSupplierBo, PageQuery pageQuery) {
|
|
|
|
+ return supplierService.selectPageSupplierList(baseSupplierBo, pageQuery);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 新增供应商
|
|
* 新增供应商
|
|
- * @param supplierBo 供应商BO对象
|
|
|
|
|
|
+ * @param baseSupplierBo 供应商BO对象
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@PostMapping()
|
|
@PostMapping()
|
|
- public int insertSupplier(@Validated @RequestBody SupplierBo supplierBo) {
|
|
|
|
- return supplierService.insertSupplier(supplierBo);
|
|
|
|
|
|
+ public int insertSupplier(@Validated @RequestBody BaseSupplierBo baseSupplierBo) {
|
|
|
|
+ return supplierService.insertSupplier(baseSupplierBo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改供应商
|
|
* 修改供应商
|
|
- * @param supplierBo 供应商BO对象
|
|
|
|
|
|
+ * @param baseSupplierBo 供应商BO对象
|
|
* @return 影响行数
|
|
* @return 影响行数
|
|
*/
|
|
*/
|
|
@PutMapping()
|
|
@PutMapping()
|
|
- public int updateSupplier(@Validated @RequestBody SupplierBo supplierBo) {
|
|
|
|
- return supplierService.updateSupplier(supplierBo);
|
|
|
|
|
|
+ public int updateSupplier(@Validated @RequestBody BaseSupplierBo baseSupplierBo) {
|
|
|
|
+ return supplierService.updateSupplier(baseSupplierBo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|