|
|
@ -44,22 +44,15 @@ public class PdaServiceImpl implements PdaService { |
|
|
|
private AcsToWmsService acsToWmsService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PdaResponseVo outSave(JSONObject param) { |
|
|
|
param.put("device_code",param.getString("point_code")); |
|
|
|
if(!param.getString("point_code").startsWith("TBX")){ |
|
|
|
throw new BadRequestException("非涂板线禁止叫料!"); |
|
|
|
} |
|
|
|
if (!param.getString("point_code").endsWith("01")){ |
|
|
|
throw new BadRequestException("只有下料位才允许下料!"); |
|
|
|
} |
|
|
|
param.put("request_medthod_code","MJXLTask"); |
|
|
|
param.put("request_medthod_name","涂板线满架下料"); |
|
|
|
public PdaResponseVo yclck(JSONObject param) { |
|
|
|
param.put("request_medthod_code","YCLCKTask"); |
|
|
|
param.put("request_medthod_name","原材料出库"); |
|
|
|
acsToWmsService.acsApply(param); |
|
|
|
return PdaResponseVo.pdaResultOk("涂板线满架下料请求成功"); |
|
|
|
return PdaResponseVo.pdaResultOk("原材料出库成功"); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PdaResponseVo callingEmpty(JSONObject param) { |
|
|
|
public PdaResponseVo hwcl(JSONObject param) { |
|
|
|
param.put("device_code",param.getString("point_code")); |
|
|
|
if(!param.getString("point_code").startsWith("TBX")){ |
|
|
|
throw new BadRequestException("非涂板线禁止补空架!"); |
|
|
@ -71,7 +64,7 @@ public class PdaServiceImpl implements PdaService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PdaResponseVo cleanVehicle(JSONObject param) { |
|
|
|
public PdaResponseVo fbccl(JSONObject param) { |
|
|
|
//根据载具编码寻找点位,并且将它更新掉
|
|
|
|
String vehicleCode=param.getString("vehicle_code"); |
|
|
|
SchBaseVehiclematerialgroup groupEntity = vehiclematerialgroupService.getOne(new LambdaQueryWrapper<SchBaseVehiclematerialgroup>() |
|
|
@ -94,7 +87,31 @@ public class PdaServiceImpl implements PdaService { |
|
|
|
return PdaResponseVo.pdaResultOk("清空物料信息请求成功"); |
|
|
|
} |
|
|
|
@Override |
|
|
|
public PdaResponseVo callingMaterialTask(JSONObject param) { |
|
|
|
public PdaResponseVo ktphs(JSONObject param) { |
|
|
|
if(!param.getString("point_code").startsWith("BP")){ |
|
|
|
throw new BadRequestException("非包片机禁止叫料!"); |
|
|
|
} |
|
|
|
param.put("device_code",param.getString("point_code")); |
|
|
|
param.put("request_medthod_code","BPSLTask"); |
|
|
|
param.put("request_medthod_name","包片上料"); |
|
|
|
acsToWmsService.acsApply(param); |
|
|
|
return PdaResponseVo.pdaResultOk("呼叫物料请求成功"); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PdaResponseVo ktpck(JSONObject param) { |
|
|
|
if(!param.getString("point_code").startsWith("BP")){ |
|
|
|
throw new BadRequestException("非包片机禁止叫料!"); |
|
|
|
} |
|
|
|
param.put("device_code",param.getString("point_code")); |
|
|
|
param.put("request_medthod_code","BPSLTask"); |
|
|
|
param.put("request_medthod_name","包片上料"); |
|
|
|
acsToWmsService.acsApply(param); |
|
|
|
return PdaResponseVo.pdaResultOk("呼叫物料请求成功"); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PdaResponseVo zpjb(JSONObject param) { |
|
|
|
if(!param.getString("point_code").startsWith("BP")){ |
|
|
|
throw new BadRequestException("非包片机禁止叫料!"); |
|
|
|
} |
|
|
|