2024-07-15 16:43:52 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Project: wms
|
|
|
|
|
* @Title: WmsWarehouseController.java
|
|
|
|
|
* @author linfso
|
|
|
|
|
* @date 2023-05-08 04:06:49
|
|
|
|
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
|
|
|
|
* @version v1.0
|
|
|
|
|
* @Description: <p> 仓库 控制器 </p>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package com.xdadan.erp.apiweb;
|
|
|
|
|
|
|
|
|
|
import com.xdadan.erp.common.annotation.Log;
|
|
|
|
|
import com.xdadan.erp.common.core.controller.BaseController;
|
|
|
|
|
import com.xdadan.erp.common.core.domain.AjaxResult;
|
|
|
|
|
import com.xdadan.erp.common.core.page.TableDataInfo;
|
|
|
|
|
import com.xdadan.erp.common.enums.BusinessType;
|
|
|
|
|
import com.xdadan.erp.wms.domain.WmsWarehouse;
|
|
|
|
|
import com.xdadan.erp.wms.service.IWmsWarehouseService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 仓库Controller
|
|
|
|
|
*
|
|
|
|
|
* @author linfso
|
|
|
|
|
* @date 2023-05-08 04:06:49
|
|
|
|
|
*/
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/apiweb/wmsWarehouse")
|
|
|
|
|
public class WmsWarehouseController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
@Autowired
|
|
|
|
|
private IWmsWarehouseService wmsWarehouseService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询仓库列表
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/listWmsWarehouse")
|
2024-07-15 22:42:32 +00:00
|
|
|
public TableDataInfo listWmsWarehouse(String searchValue)
|
2024-07-15 16:43:52 +00:00
|
|
|
{
|
|
|
|
|
startPage();
|
2024-07-15 22:42:32 +00:00
|
|
|
WmsWarehouse wmsWarehouse = new WmsWarehouse();
|
|
|
|
|
wmsWarehouse.setSearchValue(searchValue);
|
2024-07-15 16:43:52 +00:00
|
|
|
List<WmsWarehouse> list = wmsWarehouseService.selectWmsWarehouseList(wmsWarehouse);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|