You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package com.gaotao.modules.automatedWarehouse.controller;
import com.gaotao.common.utils.PageUtils;import com.gaotao.common.utils.R;import com.gaotao.modules.automatedWarehouse.entity.PalletMergeQueryData;import com.gaotao.modules.automatedWarehouse.entity.PalletTypeOption;import com.gaotao.modules.automatedWarehouse.service.PalletMergeQueryService;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.PostMapping;import org.springframework.web.bind.annotation.RequestBody;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/** * @Description 合托查询Controller - rqrq * @Author rqrq * @Date 2026/01/06 */@RestController@RequestMapping("automatedWarehouse/palletMergeQuery")public class PalletMergeQueryController { @Autowired private PalletMergeQueryService palletMergeQueryService; /** * @Description 获取托盘类型下拉选项(用于合托查询筛选)- rqrq * @Title getPalletTypeOptions * @param data 查询条件(包含site) * @return R * @author rqrq * @date 2026/01/06 */ @PostMapping(value = "/getPalletTypeOptions") public R getPalletTypeOptions(@RequestBody PalletMergeQueryData data) throws Exception { List<PalletTypeOption> rows = palletMergeQueryService.getPalletTypeOptions(data.getSite()); return R.ok().put("rows", rows); } /** * @Description 查询需要合托的托盘列表(分页)- rqrq * @Title searchPalletMergeList * @param data 查询条件(包含site、palletType、maxPositionCount可选、page、limit) * @return R * @author rqrq * @date 2026/01/15 */ @PostMapping(value = "/searchPalletMergeList") public R searchPalletMergeList(@RequestBody PalletMergeQueryData data) throws Exception { PageUtils page = palletMergeQueryService.searchPalletMergeList(data); return R.ok().put("page", page); } /** * @Description 提交合托请求 - 校验栈板状态并推送WCS合托任务 - rqrq * @Title submitPalletMerge * @param dataList 选中的托盘列表 * @return R * @author rqrq * @date 2026/01/08 */ @PostMapping(value = "/submitPalletMerge") public R submitPalletMerge(@RequestBody List<PalletMergeQueryData> dataList) throws Exception { palletMergeQueryService.submitPalletMerge(dataList); return R.ok(); }}
|