| | |
| | | package org.jeecg.modules.base.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | |
| | | } |
| | | |
| | | |
| | | //@AutoLog(value = "线边仓库信息-通过id查询") |
| | | @ApiOperation(value="线边仓库信息-通过id查询", notes="线边仓库信息-通过id查询") |
| | | @ApiOperation(value = "线边仓库信息-通过产线ID查询", notes = "线边仓库信息-通过产线ID查询") |
| | | @GetMapping(value = "/queryByFactoryId") |
| | | public Result<LineSideWarehouse> queryByFactoryId(@RequestParam(name="factoryId") String factoryId) { |
| | | LineSideWarehouse lineSideWarehouse = lineSideWarehouseService.queryByFactoryId(factoryId); |
| | |
| | | return Result.OK(lineSideWarehouse); |
| | | } |
| | | |
| | | @ApiOperation(value = "线边仓库信息-通过产线分类查询", notes = "线边仓库信息-通过产线分类查询") |
| | | @GetMapping(value = "/queryByProductionType") |
| | | public Result<List<LineSideWarehouse>> queryByProductionType(@RequestParam(name = "productionType") String productionType) { |
| | | List<LineSideWarehouse> list = lineSideWarehouseService.queryByProductionType(productionType); |
| | | if (list == null) { |
| | | return Result.OK(Collections.emptyList()); |
| | | } |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | } |