|
@ -140,6 +140,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Override |
|
|
@SneakyThrows |
|
|
@SneakyThrows |
|
|
public ApplyTaskResponse applyPutFullVehicle(JSONObject param) { |
|
|
public ApplyTaskResponse applyPutFullVehicle(JSONObject param) { |
|
|
// 找到当前的设备
|
|
|
// 找到当前的设备
|
|
@ -172,6 +173,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Override |
|
|
@SneakyThrows |
|
|
@SneakyThrows |
|
|
public ApplyTaskResponse applyPutEmptyVehicle(JSONObject param) { |
|
|
public ApplyTaskResponse applyPutEmptyVehicle(JSONObject param) { |
|
|
// 找到当前的设备
|
|
|
// 找到当前的设备
|
|
@ -204,6 +206,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Override |
|
|
@SneakyThrows |
|
|
@SneakyThrows |
|
|
public ApplyTaskResponse applyTakeEmptyVehicle(JSONObject param) { |
|
|
public ApplyTaskResponse applyTakeEmptyVehicle(JSONObject param) { |
|
|
// 找到当前的设备
|
|
|
// 找到当前的设备
|
|
@ -236,6 +239,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Override |
|
|
@SneakyThrows |
|
|
@SneakyThrows |
|
|
public ApplyTaskResponse applyTakeFullVehicle(JSONObject param) { |
|
|
public ApplyTaskResponse applyTakeFullVehicle(JSONObject param) { |
|
|
// 找到当前的设备
|
|
|
// 找到当前的设备
|
|
@ -268,6 +272,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @param param: ApplyTaskRequest的json形式 |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Override |
|
|
@SneakyThrows |
|
|
@SneakyThrows |
|
|
public ApplyTaskResponse applyForceTakeFullVehicle(JSONObject param) { |
|
|
public ApplyTaskResponse applyForceTakeFullVehicle(JSONObject param) { |
|
|
String deviceCode = param.getString("device_code"); |
|
|
String deviceCode = param.getString("device_code"); |
|
@ -315,6 +320,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 强制去包装位(半托) 记录不包装 --- 业务不需要*/ |
|
|
/** 强制去包装位(半托) 记录不包装 --- 业务不需要*/ |
|
|
|
|
|
@Override |
|
|
@Deprecated |
|
|
@Deprecated |
|
|
public String forceNoPackage(JSONObject param) { |
|
|
public String forceNoPackage(JSONObject param) { |
|
|
String requestNo = param.getString("requestNo"); |
|
|
String requestNo = param.getString("requestNo"); |
|
@ -322,6 +328,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 质检记录 */ |
|
|
/** 质检记录 */ |
|
|
|
|
|
@Override |
|
|
public BaseResponse qualityInspection(JSONObject param) { |
|
|
public BaseResponse qualityInspection(JSONObject param) { |
|
|
ApplyTaskRequest applyTaskRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
ApplyTaskRequest applyTaskRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
// 记录质检信息
|
|
|
// 记录质检信息
|
|
@ -330,6 +337,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 分拣 - 记录钢托与木托的绑定 */ |
|
|
/** 分拣 - 记录钢托与木托的绑定 */ |
|
|
|
|
|
@Override |
|
|
public BaseResponse recordVehicleBiding(JSONObject param) { |
|
|
public BaseResponse recordVehicleBiding(JSONObject param) { |
|
|
FeedBackSplitPalletStationRequest request = param.toJavaObject(FeedBackSplitPalletStationRequest.class); |
|
|
FeedBackSplitPalletStationRequest request = param.toJavaObject(FeedBackSplitPalletStationRequest.class); |
|
|
String getStation = request.getGet_station(); // 取货点
|
|
|
String getStation = request.getGet_station(); // 取货点
|
|
@ -362,6 +370,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 反馈压机残留重量*/ |
|
|
/** 反馈压机残留重量*/ |
|
|
|
|
|
@Override |
|
|
public BaseResponse applyFeedbackWeight(JSONObject param) { |
|
|
public BaseResponse applyFeedbackWeight(JSONObject param) { |
|
|
ApplyTaskRequest applyTaskRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
ApplyTaskRequest applyTaskRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
materialResidueService.addByApplyTaskRequest(applyTaskRequest); |
|
|
materialResidueService.addByApplyTaskRequest(applyTaskRequest); |
|
@ -369,6 +378,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 申请贴标 */ |
|
|
/** 申请贴标 */ |
|
|
|
|
|
@Override |
|
|
public BaseResponse applyLabelling(JSONObject param) { |
|
|
public BaseResponse applyLabelling(JSONObject param) { |
|
|
// 木托盘号##物料编码##数量##吨量(单重X数量)##生产日期## todo: 成型工单号(未添加)
|
|
|
// 木托盘号##物料编码##数量##吨量(单重X数量)##生产日期## todo: 成型工单号(未添加)
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
String requestNo = param.getString("requestNo"); |
|
@ -390,6 +400,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 单次放置完成 - 每块砖的信息 */ |
|
|
/** 单次放置完成 - 每块砖的信息 */ |
|
|
|
|
|
@Override |
|
|
public BaseResponse applyOneGrab(JSONObject param) { |
|
|
public BaseResponse applyOneGrab(JSONObject param) { |
|
|
String requestNo = param.getString("requestNo"); |
|
|
String requestNo = param.getString("requestNo"); |
|
|
JSONObject brickInfo = param.getJSONObject("brick_info"); |
|
|
JSONObject brickInfo = param.getJSONObject("brick_info"); |
|
@ -399,6 +410,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 人工排产确认 */ |
|
|
/** 人工排产确认 */ |
|
|
|
|
|
@Override |
|
|
public BaseResponse orderVerify(JSONObject param) { // 执行中
|
|
|
public BaseResponse orderVerify(JSONObject param) { // 执行中
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
String requestNo = param.getString("requestNo"); |
|
|
String workorderCode = param.getString("order_code"); |
|
|
String workorderCode = param.getString("order_code"); |
|
@ -417,6 +429,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 工单完成 */ |
|
|
/** 工单完成 */ |
|
|
|
|
|
@Override |
|
|
public BaseResponse orderFinish(JSONObject param) { // 完成
|
|
|
public BaseResponse orderFinish(JSONObject param) { // 完成
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
String requestNo = param.getString("requestNo"); |
|
|
String workorderCode = param.getString("order_code"); |
|
|
String workorderCode = param.getString("order_code"); |
|
@ -435,6 +448,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 扫码成功申请 - 判断是否静置完成 */ |
|
|
/** 扫码成功申请 - 判断是否静置完成 */ |
|
|
|
|
|
@Override |
|
|
public ApplyTaskResponse barcodeSuccessApply(JSONObject param) { |
|
|
public ApplyTaskResponse barcodeSuccessApply(JSONObject param) { |
|
|
ApplyTaskRequest baseRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
ApplyTaskRequest baseRequest = param.toJavaObject(ApplyTaskRequest.class); |
|
|
ApplyTaskResponse taskResponse = ApplyTaskResponse.responseOk(baseRequest.getRequestNo()); |
|
|
ApplyTaskResponse taskResponse = ApplyTaskResponse.responseOk(baseRequest.getRequestNo()); |
|
@ -454,6 +468,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 扫码成功申请 - 判断是否静置完成 */ |
|
|
/** 扫码成功申请 - 判断是否静置完成 */ |
|
|
|
|
|
@Override |
|
|
public ApplyTaskResponse isStandingFinish(ApplyTaskRequest baseRequest) { |
|
|
public ApplyTaskResponse isStandingFinish(ApplyTaskRequest baseRequest) { |
|
|
String requestNo = baseRequest.getRequestNo(); |
|
|
String requestNo = baseRequest.getRequestNo(); |
|
|
ApplyTaskResponse taskResponse = ApplyTaskResponse.responseOk(requestNo); |
|
|
ApplyTaskResponse taskResponse = ApplyTaskResponse.responseOk(requestNo); |
|
@ -514,6 +529,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 扫码成功申请 - 入窑记录时间 */ |
|
|
/** 扫码成功申请 - 入窑记录时间 */ |
|
|
|
|
|
@Override |
|
|
public ApplyTaskResponse recordKilnTime(ApplyTaskRequest baseRequest) { |
|
|
public ApplyTaskResponse recordKilnTime(ApplyTaskRequest baseRequest) { |
|
|
if (ObjectUtil.isEmpty(baseRequest.getVehicle_code())) { |
|
|
if (ObjectUtil.isEmpty(baseRequest.getVehicle_code())) { |
|
|
throw new BadRequestException("载具编码不能为空"); |
|
|
throw new BadRequestException("载具编码不能为空"); |
|
@ -544,6 +560,21 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
return ApplyTaskResponse.responseOk(baseRequest.getRequestNo()); |
|
|
return ApplyTaskResponse.responseOk(baseRequest.getRequestNo()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 压机请求要料 |
|
|
|
|
|
* @param param |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@Override |
|
|
|
|
|
public BaseResponse pressRequestMaterial(JSONObject param) { |
|
|
|
|
|
// todo: 换成acs请求
|
|
|
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
|
|
|
// todo: 1、校验是否有工单,是否需要叫料
|
|
|
|
|
|
// todo: 2、通知混碾机生产泥料
|
|
|
|
|
|
// todo: 3、修改设备点位为空位,并且更新时间
|
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 提前要料 |
|
|
* 提前要料 |
|
|
* @param param |
|
|
* @param param |
|
@ -551,8 +582,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
*/ |
|
|
*/ |
|
|
@Deprecated |
|
|
@Deprecated |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public BaseResponse pressRequestMaterial(JSONObject param) { // (公共接口进来)只是给我一个下料位(中间位置)
|
|
|
public BaseResponse pressRequestMaterial2(JSONObject param) { // (公共接口进来)只是给我一个下料位(中间位置)
|
|
|
// todo: 换成acs请求,修改设备点位为空位,并且更新时间
|
|
|
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
String requestNo = param.getString("requestNo"); |
|
|
// 压机、原材料物料(混碾)、压机工单、叫料时间
|
|
|
// 压机、原材料物料(混碾)、压机工单、叫料时间
|
|
|
String deviceCode = param.getString("device_code");// 几号压机下料位
|
|
|
String deviceCode = param.getString("device_code");// 几号压机下料位
|
|
@ -581,6 +611,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
return BaseResponse.responseOk(requestNo); |
|
|
return BaseResponse.responseOk(requestNo); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 任务反馈 */ |
|
|
|
|
|
@Override |
|
|
public BaseResponse feedbackTaskStatus(JSONObject param) { |
|
|
public BaseResponse feedbackTaskStatus(JSONObject param) { |
|
|
// todo: action暂未维护
|
|
|
// todo: action暂未维护
|
|
|
String requestNo = param.getString("requestNo"); |
|
|
String requestNo = param.getString("requestNo"); |
|
@ -624,6 +656,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
return BaseResponse.responseOk(requestNo, "任务状态反馈成功!"); |
|
|
return BaseResponse.responseOk(requestNo, "任务状态反馈成功!"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 获取组盘信息 */ |
|
|
|
|
|
@Override |
|
|
public GetPalletizeResponse getVehicleInfo(JSONObject param) { |
|
|
public GetPalletizeResponse getVehicleInfo(JSONObject param) { |
|
|
// 校验组盘信息
|
|
|
// 校验组盘信息
|
|
|
GetPalletizeRequest palletizeRequest = param.toJavaObject(GetPalletizeRequest.class); |
|
|
GetPalletizeRequest palletizeRequest = param.toJavaObject(GetPalletizeRequest.class); |
|
@ -645,6 +679,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 实时修改点位状态 */ |
|
|
/** 实时修改点位状态 */ |
|
|
|
|
|
@Override |
|
|
public BaseResponse realTimeSetPoint(JSONObject param) { |
|
|
public BaseResponse realTimeSetPoint(JSONObject param) { |
|
|
// todo: 实体错误
|
|
|
// todo: 实体错误
|
|
|
PutActionRequest actionRequest = param.toJavaObject(PutActionRequest.class); |
|
|
PutActionRequest actionRequest = param.toJavaObject(PutActionRequest.class); |
|
|