|
|
@ -3,6 +3,7 @@ package com.gaotao.modules.schedule.controller; |
|
|
import com.gaotao.common.annotation.RepeatSubmit; |
|
|
import com.gaotao.common.annotation.RepeatSubmit; |
|
|
import com.gaotao.common.constant.SysMsgConstant; |
|
|
import com.gaotao.common.constant.SysMsgConstant; |
|
|
import com.gaotao.common.exception.XJException; |
|
|
import com.gaotao.common.exception.XJException; |
|
|
|
|
|
import com.gaotao.common.utils.PageUtils; |
|
|
import com.gaotao.common.utils.R; |
|
|
import com.gaotao.common.utils.R; |
|
|
import com.gaotao.modules.rollNoReview.data.SFDCMaterialHistOutData; |
|
|
import com.gaotao.modules.rollNoReview.data.SFDCMaterialHistOutData; |
|
|
import com.gaotao.modules.schedule.data.*; |
|
|
import com.gaotao.modules.schedule.data.*; |
|
|
@ -2160,6 +2161,8 @@ public class ScheduleController extends AbstractController { |
|
|
String site = (String) params.get("site"); |
|
|
String site = (String) params.get("site"); |
|
|
String orderNo = (String) params.get("orderNo"); |
|
|
String orderNo = (String) params.get("orderNo"); |
|
|
String partNo = (String) params.get("partNo"); |
|
|
String partNo = (String) params.get("partNo"); |
|
|
|
|
|
Integer page = params.get("page") != null ? Integer.valueOf(params.get("page").toString()) : 1; |
|
|
|
|
|
Integer limit = params.get("limit") != null ? Integer.valueOf(params.get("limit").toString()) : 20; |
|
|
|
|
|
|
|
|
if (site == null || site.isEmpty()) { |
|
|
if (site == null || site.isEmpty()) { |
|
|
return R.error("站点不能为空").put("code", 400); |
|
|
return R.error("站点不能为空").put("code", 400); |
|
|
@ -2171,12 +2174,11 @@ public class ScheduleController extends AbstractController { |
|
|
return R.error("物料编码不能为空").put("code", 400); |
|
|
return R.error("物料编码不能为空").put("code", 400); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
List<Map<String, Object>> resultList = scheduleService.getMaterialRecordList(site, orderNo, partNo); |
|
|
|
|
|
|
|
|
PageUtils pageUtils = scheduleService.getMaterialRecordList(site, orderNo, partNo, page, limit); |
|
|
return R.ok() |
|
|
return R.ok() |
|
|
.put("code", 0) |
|
|
.put("code", 0) |
|
|
.put("msg", "success") |
|
|
.put("msg", "success") |
|
|
.put("rows", resultList) |
|
|
|
|
|
.put("total", resultList.size()); |
|
|
|
|
|
|
|
|
.put("page", pageUtils); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
logger.error("获取领料记录失败", e); |
|
|
logger.error("获取领料记录失败", e); |
|
|
return R.error("获取领料记录失败: " + e.getMessage()) |
|
|
return R.error("获取领料记录失败: " + e.getMessage()) |
|
|
|