psh 11 months ago
parent
commit
4275b365e5
  1. 4
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/KGHJRKTask.java
  2. 23
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/TBXBKJTask.java
  3. 4
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/XSCKTask.java
  4. 6
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/ghs/GHSQHTask.java

4
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/KGHJRKTask.java

@ -107,8 +107,8 @@ public class KGHJRKTask extends AbstractTask {
private SchBasePoint findNextPoint(SchBasePoint startPoint) { private SchBasePoint findNextPoint(SchBasePoint startPoint) {
String regionCode = null; String regionCode = null;
if ("A1".equals(startPoint.getWorkshop_code())) { if ("A1".equals(startPoint.getWorkshop_code())) {
//A1空架到HCQ3 //A1空架到HCQ1
regionCode = "HCQ3"; regionCode = "HCQ1";
} else if ("A2".equals(startPoint.getWorkshop_code())) { } else if ("A2".equals(startPoint.getWorkshop_code())) {
//A1空架到KGHJ2 //A1空架到KGHJ2

23
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/TBXBKJTask.java

@ -110,20 +110,25 @@ public class TBXBKJTask extends AbstractTask {
String regionCode = null; String regionCode = null;
if ("TBX1".equals(startPoint.getRegion_code())) { if ("TBX1".equals(startPoint.getRegion_code())) {
//TBX1找A区 //TBX1找A区
regionCode = "HCQ3"; regionCode = "HCQ1";
} else if ("TBX2".equals(startPoint.getRegion_code())) { } else if ("TBX2".equals(startPoint.getRegion_code())) {
//TBX2找B区 //TBX2找B区
regionCode = "HCQ5"; regionCode = "HCQ5";
} }
List<SchBasePoint> schBasePointList = pointMapper.findPointByRegion(regionCode,"1"); SchBasePoint temp = null;
List<SchBasePoint> schBasePointList = pointMapper.findPointByRegion(regionCode, "1");
for (SchBasePoint schBasePoint : schBasePointList) { for (SchBasePoint schBasePoint : schBasePointList) {
if (schBasePoint.getVehicle_qty() > 0&&ObjectUtil.isEmpty(schBasePoint.getIng_task_code())) { if (schBasePoint.getVehicle_qty() > 0 && ObjectUtil.isEmpty(schBasePoint.getIng_task_code())) {
log.info("涂板线补空架找到当前符合条件的点位{}",schBasePoint.getPoint_code()); if (temp == null ||
return schBasePoint; schBasePoint.getPoint_code().startsWith(temp.getPoint_code().substring(0, temp.getPoint_code().length() - 2))
&&schBasePoint.getPoint_code().compareTo(temp.getPoint_code())>0){
temp=schBasePoint;
log.info("涂板线补空架找到当前符合条件的点位{}", schBasePoint.getPoint_code());
}
} }
} }
return null; return temp;
} }
@Override @Override
@ -150,8 +155,8 @@ public class TBXBKJTask extends AbstractTask {
if (status.equals(TaskStatus.FINISHED)) { // 完成 if (status.equals(TaskStatus.FINISHED)) { // 完成
// 起点解锁,库存减少 // 起点解锁,库存减少
startPointObj.setIng_task_code(""); startPointObj.setIng_task_code("");
startPointObj.setVehicle_qty(startPointObj.getVehicle_qty()-1); startPointObj.setVehicle_qty(startPointObj.getVehicle_qty() - 1);
pointService.update(endPointObj); pointService.update(startPointObj);
// 任务完成 // 任务完成
taskObj.setTask_status(TaskStatus.FINISHED.getCode()); taskObj.setTask_status(TaskStatus.FINISHED.getCode());
@ -185,7 +190,7 @@ public class TBXBKJTask extends AbstractTask {
} }
@Override @Override
protected void feedbackTaskState(JSONObject param,SchBaseTask schBaseTask, BaseResponse result) { protected void feedbackTaskState(JSONObject param, SchBaseTask schBaseTask, BaseResponse result) {
//todo 重算最优点 //todo 重算最优点
SchBasePoint startPoint = pointService.getOne(new LambdaQueryWrapper<SchBasePoint>() SchBasePoint startPoint = pointService.getOne(new LambdaQueryWrapper<SchBasePoint>()
.eq(SchBasePoint::getPoint_code, schBaseTask.getPoint_code2())); .eq(SchBasePoint::getPoint_code, schBaseTask.getPoint_code2()));

4
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/XSCKTask.java

@ -120,9 +120,9 @@ public class XSCKTask extends AbstractTask {
String regionCode = null; String regionCode = null;
String materialType = extGroupData.getString("material_type"); String materialType = extGroupData.getString("material_type");
if ("XSQ1".equals(nextPoint.getRegion_code())) { if ("XSQ1".equals(nextPoint.getRegion_code())) {
//XSQ1找A区 边负极板HCQ01 负极板HCQ02 //XSQ1找A区 边负极板HCQ03 负极板HCQ02
if("3".equals(materialType)) { if("3".equals(materialType)) {
regionCode = "HCQ1"; regionCode = "HCQ3";
}else if("2".equals(materialType)){ }else if("2".equals(materialType)){
regionCode = "HCQ2"; regionCode = "HCQ2";
} }

6
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/ghs/GHSQHTask.java

@ -162,7 +162,7 @@ public class GHSQHTask extends AbstractTask {
/** /**
* 1.根据当前固化室所处区域判断到哪个区的缓存位 * 1.根据当前固化室所处区域判断到哪个区的缓存位
* 正极板到HCQ4,负极板到HCQ2边负极板到HCQ1 * 正极板到HCQ4,负极板到HCQ2边负极板到HCQ3
* 2.从1010列到0101列倒叙判断当前列物料类型是否与起点一致且存在空位 * 2.从1010列到0101列倒叙判断当前列物料类型是否与起点一致且存在空位
* 3.将当前点位设置为目标点 * 3.将当前点位设置为目标点
* 4.如果没有符合条件的点位跳过执行暂时等待 * 4.如果没有符合条件的点位跳过执行暂时等待
@ -178,8 +178,8 @@ public class GHSQHTask extends AbstractTask {
//负极板到缓存区2 //负极板到缓存区2
regionCode = "HCQ2"; regionCode = "HCQ2";
} else if ("3".equals(startPoint.getVehicle_type())) { } else if ("3".equals(startPoint.getVehicle_type())) {
//边负极板到缓存区1 //边负极板到缓存区3
regionCode = "HCQ1"; regionCode = "HCQ3";
} }
List<SchBasePoint> schBasePointList = pointMapper.findPointByRegion(regionCode, "1"); List<SchBasePoint> schBasePointList = pointMapper.findPointByRegion(regionCode, "1");
for (int i = schBasePointList.size() - 1; i >= 0; i--) { for (int i = schBasePointList.size() - 1; i >= 0; i--) {

Loading…
Cancel
Save