|
|
|
@ -106,6 +106,33 @@ public class ProductionReturnController extends AbstractController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("getQualifiedReturnListByProcedure") |
|
|
|
public R getQualifiedReturnListByProcedure(@RequestBody Map<String, Object> params) { |
|
|
|
try { |
|
|
|
String warehouseId = (String) params.get("warehouseId"); |
|
|
|
String searchCode = (String) params.get("searchCode"); |
|
|
|
String site = (String) params.get("site"); |
|
|
|
String status = (String) params.get("status"); |
|
|
|
|
|
|
|
if (warehouseId == null || warehouseId.trim().isEmpty()) { |
|
|
|
return R.error("仓库ID不能为空"); |
|
|
|
} |
|
|
|
|
|
|
|
// 默认状态为待入库 |
|
|
|
if (status == null || status.trim().isEmpty()) { |
|
|
|
status = "待入库"; |
|
|
|
} |
|
|
|
|
|
|
|
List<Map<String, Object>> resultList = productionReturnService.getQualifiedReturnListByProcedure( |
|
|
|
site, warehouseId, searchCode, status); |
|
|
|
|
|
|
|
return R.ok().put("data", resultList); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("获取生产待入库列表失败", e); |
|
|
|
return R.error("获取数据失败: " + e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取生产入库单详情 |
|
|
|
*/ |
|
|
|
|