|
@@ -1408,9 +1408,21 @@ public class StorageBillServiceImpl extends ServiceImpl<StorageBillMapper, Stora
|
|
|
|
|
|
String redisKey = String.format("ccmno:length:stream:%s", ccmNo);
|
|
String redisKey = String.format("ccmno:length:stream:%s", ccmNo);
|
|
|
|
|
|
|
|
+ // 定尺模式
|
|
|
|
+ String cuttolengthKey = String.format("cut:to:length:%s", ccmNo);
|
|
|
|
+
|
|
// 获取 Redis 中的值
|
|
// 获取 Redis 中的值
|
|
String value = (String) redisTemplate.opsForValue().get(redisKey);
|
|
String value = (String) redisTemplate.opsForValue().get(redisKey);
|
|
|
|
|
|
|
|
+ // 定尺模式值
|
|
|
|
+ String cuttolengthValue = (String) redisTemplate.opsForValue().get(cuttolengthKey);
|
|
|
|
+ // 判空处理
|
|
|
|
+ if (cuttolengthValue != null && !cuttolengthValue.isEmpty()) {
|
|
|
|
+ onDutyInfo.setCutToLength(cuttolengthValue);
|
|
|
|
+ } else {
|
|
|
|
+ onDutyInfo.setCutToLength("2");
|
|
|
|
+ }
|
|
|
|
+
|
|
// 判空处理
|
|
// 判空处理
|
|
if (value != null && !value.isEmpty()) {
|
|
if (value != null && !value.isEmpty()) {
|
|
onDutyInfo.setStandNoSize(String.valueOf(JSON.parseArray(value)));
|
|
onDutyInfo.setStandNoSize(String.valueOf(JSON.parseArray(value)));
|