fix: 没有管芯的97,98信号问题
This commit is contained in:
@@ -60,4 +60,7 @@ public interface SlitterConstant {
|
|||||||
*/
|
*/
|
||||||
String SLITTER_TYPE_FRP = "2";
|
String SLITTER_TYPE_FRP = "2";
|
||||||
|
|
||||||
|
String TO_SHAFT_INFO_98 = "0";
|
||||||
|
String TO_SHAFT_INFO_97 = "2";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
res.put("device_code", deviceCode);
|
res.put("device_code", deviceCode);
|
||||||
res.put("data", con);
|
res.put("data", con);
|
||||||
if ("1".equals(autoSendEmpty.getValue()) && gxQtyList.size() == 0) {
|
if ("1".equals(autoSendEmpty.getValue()) && gxQtyList.size() == 0) {
|
||||||
con.put("is_bushing", "2");
|
con.put("is_bushing", SlitterConstant.TO_SHAFT_INFO_97);
|
||||||
} else {
|
} else {
|
||||||
// int sum = list.stream()
|
// int sum = list.stream()
|
||||||
// .mapToInt(e -> e.getQty().intValue())
|
// .mapToInt(e -> e.getQty().intValue())
|
||||||
@@ -183,7 +183,9 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
.distinct()
|
.distinct()
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
Integer tasks = papervehicleService.checkHaveTaskByPoints(pointCodes);
|
Integer tasks = papervehicleService.checkHaveTaskByPoints(pointCodes);
|
||||||
con.put("is_bushing", tasks > 0 ? SlitterConstant.SLITTER_YES : SlitterConstant.SLITTER_NO);
|
con.put("is_bushing", tasks > 0
|
||||||
|
? SlitterConstant.SLITTER_YES
|
||||||
|
: "1".equals(autoSendEmpty.getValue()) ? SlitterConstant.TO_SHAFT_INFO_97 : SlitterConstant.TO_SHAFT_INFO_98);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user