add: 现场优化

This commit is contained in:
ls
2025-09-05 09:30:03 +08:00
parent b2d45d2c20
commit c556787ee8
10 changed files with 18 additions and 14 deletions

View File

@@ -487,7 +487,7 @@ public class SlitterPdaServiceImpl implements SlitterPdaService {
plan.setSplit_group(virtualContainer);
plan.setDescription("-");
plan.setWare_house("-");
plan.setResource_name(cutDevice.getExt_code());
plan.setResource_name(cutDevice.getPoint_code());
plan.setManufacture_sort("1");
plan.setMfg_order_name("-");
plan.setManufacture_date(DateUtil.format(new Date(), "yyyy-MM-dd"));

View File

@@ -384,7 +384,7 @@ public class NbjPdaServiceImpl implements NbjPdaService {
.map(item -> {
JSONObject jsonObject = new JSONObject();
jsonObject.put("text", item.getPoint_code());
jsonObject.put("value", item.getExt_code());
jsonObject.put("value", item.getPoint_code());
return jsonObject;
})
.collect(Collectors.toCollection(JSONArray::new));

View File

@@ -68,7 +68,10 @@ public interface IstIvtHotpointivtService extends IService<StIvtHotpointivt> {
* @param used 是否使用
* @return /
*/
List<StIvtHotpointivt> getNotTaskHotOven(String rollType, String used);
List<StIvtHotpointivt> getNotTaskHotOven(String rollType, String used, String status);
/**
* 查找设备号给ACS

View File

@@ -1,6 +1,5 @@
package org.nl.wms.pdm.ivt.hot.service.dao.mapper;
import com.alibaba.fastjson.JSONArray;
import org.nl.wms.pdm.ivt.hot.service.dao.StIvtHotpointivt;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.nl.wms.quartz.dto.HotDeviceAndEreaDto;
@@ -16,7 +15,7 @@ import java.util.List;
public interface StIvtHotpointivtMapper extends BaseMapper<StIvtHotpointivt> {
List<StIvtHotpointivt> getNotTaskHotOven(String rollType, String used);
List<StIvtHotpointivt> getNotTaskHotOven(String rollType, String used, String status);
List<HotDeviceAndEreaDto> getHotDeviceInfoForAcs(String productArea);

View File

@@ -6,7 +6,7 @@
<select id="getNotTaskHotOven" resultType="org.nl.wms.pdm.ivt.hot.service.dao.StIvtHotpointivt">
SELECT ht.*
FROM `st_ivt_hotpointivt` ht
WHERE ht.point_status = '01'
WHERE ht.point_status = #{status}
AND ht.plan = #{rollType}
AND ht.is_used = #{used}
AND 0 = (SELECT COUNT(*)

View File

@@ -129,10 +129,12 @@ public class StIvtHotpointivtServiceImpl extends ServiceImpl<StIvtHotpointivtMap
}
@Override
public List<StIvtHotpointivt> getNotTaskHotOven(String rollType, String used) {
return stIvtHotpointivtMapper.getNotTaskHotOven(rollType, used);
public List<StIvtHotpointivt> getNotTaskHotOven(String rollType, String used,String status) {
return stIvtHotpointivtMapper.getNotTaskHotOven(rollType, used,status);
}
@Override
public List<HotDeviceAndEreaDto> getHotDeviceInfoForAcs(String productArea) {
return stIvtHotpointivtMapper.getHotDeviceInfoForAcs(productArea);

View File

@@ -80,7 +80,7 @@ public class AutoInHotTrussTask extends AbstractTask {
}
String bakingTemperature = order.getBaking_temperature();
// 如果需要烘烤, 先找对应点
List<StIvtHotpointivt> hotList = hotpointivtService.getNotTaskHotOven(order.getRoll_type(), "1");
List<StIvtHotpointivt> hotList = hotpointivtService.getNotTaskHotOven(order.getRoll_type(), "1","01");
if (hotList.size() == 0) {
log.error("找不到温度为:{} 的可用烘箱位置", bakingTemperature);
break;

View File

@@ -93,7 +93,7 @@ public class InHotTrussTask extends AbstractTask {
requestObj.put("baking_temperature", bakingTemperature);
requestObj.put("baking_time", order.getBaking_time());
// 如果需要烘烤, 先找对应点
List<StIvtHotpointivt> hotList = hotpointivtService.getNotTaskHotOven(order.getRoll_type(), "1");
List<StIvtHotpointivt> hotList = hotpointivtService.getNotTaskHotOven(order.getRoll_type(), "1","01");
if (hotList.size() > 0) {
List<StIvtHotpointivt> hotListFilter = multiFilter(hotList);
// 查找合适温度的点位
@@ -125,9 +125,9 @@ public class InHotTrussTask extends AbstractTask {
}
// todo: 需要烘烤,且是小卷,但是没有位置,需要将最快结束的烘箱组锁住
} else {
// 如果是去烘箱暂存的,找禁用的烘箱
// 如果是去烘箱暂存的,找暂存的烘箱
if (GeneralDefinition.YES.equals(isStorage)) {
List<StIvtHotpointivt> hotList = hotpointivtService.getNotTaskHotOven(plan, "0");
List<StIvtHotpointivt> hotList = hotpointivtService.getNotTaskHotOven(plan, "1","03");
for (StIvtHotpointivt hotPoint : hotList) {
String pointCode = hotPoint.getPoint_code();
String pointTemperature = (String) redisUtils.hget(pointCode, "temperature");

View File

@@ -79,7 +79,7 @@ public class OutHotTrussTask extends AbstractTask {
// 找一个没开启的烘箱???
PdmBiRawfoilworkorder order = rawfoilworkorderService.getById(hotPoint.getWorkorder_id());
List<StIvtHotpointivt> notTaskHotOven = hotpointivtService.getNotTaskHotOven(order.getRoll_type(),
"0");
"0","01");
// 没有位置,自然需要报错
if (notTaskHotOven.size() == 0) {
throw new BadRequestException("烘箱烘烤完毕的暂存位不够!");

View File

@@ -428,6 +428,6 @@ public class TaskUtils {
* @return
*/
public static String createVirtualSubContainer(String format, String pointCode, int count) {
return "S-" + pointCode + "-" + TaskUtils.getDateTime(format) + "-" + count;
return TaskUtils.getDateTime(format) + "-" + count;
}
}