1.取消任务fix

2.包片机任务取QHQ点位
This commit is contained in:
psh
2024-01-12 18:11:17 +08:00
parent c232a96ab4
commit 9fa9f8fcb4
4 changed files with 11 additions and 12 deletions

View File

@@ -239,11 +239,11 @@ public class BPSLTask extends AbstractTask {
JSONObject jsonObject = JSONObject.parseObject(schBaseTask.getExt_group_data());
SchBasePoint point = this.findNextPoint(jsonObject,schBaseTask);
//正极板现在不堆叠
// if( "1".equals(jsonObject.getString("material_type"))) {
// schBaseTask.setPoint_code1(point.getPoint_code()+"0"+point.getVehicle_qty());
// }else{
if( "1".equals(jsonObject.getString("material_type"))) {
schBaseTask.setPoint_code1(point.getPoint_code());
// }
}else{
schBaseTask.setPoint_code1(point.getPoint_code().replace("HCQ","QHQ"));
}
//重算点位时把点位占用
point.setIng_task_code(schBaseTask.getTask_code());
// point.setVehicle_qty(point.getVehicle_qty() - 1);

View File

@@ -220,7 +220,7 @@ public class KGHJRKTask extends AbstractTask {
if("ZJBKGHJDJW".equals(point.getRegion_code())) {
schBaseTask.setPoint_code2(point.getPoint_code() + "0" + (point.getVehicle_qty() + 1));
}else{
schBaseTask.setPoint_code2(point.getPoint_code());
schBaseTask.setPoint_code2(point.getPoint_code().replace("HCQ","QHQ"));
if(ObjectUtil.isNotEmpty(point.getIng_task_code())&&!schBaseTask.getTask_code().equals(point.getIng_task_code())){
throw new BadRequestException("当前空架点位有任务,暂不反馈!");
}