Browse Source

修复托盘打托报的语音

master
pref_mail@163.com 10 months ago
parent
commit
add050559a
  1. 12
      blade-service/logpm-business/src/main/java/com/logpm/business/service/impl/BusinessPreOrderServiceImpl.java

12
blade-service/logpm-business/src/main/java/com/logpm/business/service/impl/BusinessPreOrderServiceImpl.java

@ -329,7 +329,7 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl<BusinessPreOrde
} }
}else{ }else{
String key =RedisKeyConstant.BUSINESS_IN_CARNUMBER + businessSanDTO.getDistrCarNumber()+businessSanDTO.getTrayCode(); String key =RedisKeyConstant.BUSINESS_IN_CARNUMBER + businessSanDTO.getDistrCarNumber()+":"+businessSanDTO.getTrayCode();
Object o = bladeRedis.get(key); Object o = bladeRedis.get(key);
if (Objects.isNull(o)) { if (Objects.isNull(o)) {
@ -337,7 +337,8 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl<BusinessPreOrde
TrayTypeDataVO trayTypeDataVO = warehouseTrayTypeClient.selectListByTrayCode(businessSanDTO.getTrayCode()); TrayTypeDataVO trayTypeDataVO = warehouseTrayTypeClient.selectListByTrayCode(businessSanDTO.getTrayCode());
o = 1; o = 1;
if(!Objects.isNull(trayTypeDataVO)){ if(!Objects.isNull(trayTypeDataVO)){
o=trayTypeDataVO.getOrderlNum(); o=trayTypeDataVO.getTrayNum();
a= (int) o;
} }
bladeRedis.setEx(key, o, 60 * 60 * 24L); bladeRedis.setEx(key, o, 60 * 60 * 24L);
}else{ }else{
@ -391,7 +392,7 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl<BusinessPreOrde
if(StringUtil.isNotBlank(businessSanDTO.getTrayCode())){ if(StringUtil.isNotBlank(businessSanDTO.getTrayCode())){
String key =RedisKeyConstant.BUSINESS_IN_CARNUMBER + businessSanDTO.getDistrCarNumber()+businessSanDTO.getTrayCode(); String key =RedisKeyConstant.BUSINESS_IN_CARNUMBER + businessSanDTO.getDistrCarNumber()+":"+businessSanDTO.getTrayCode();
Object o = bladeRedis.get(key); Object o = bladeRedis.get(key);
if (Objects.isNull(o)) { if (Objects.isNull(o)) {
@ -399,9 +400,10 @@ public class BusinessPreOrderServiceImpl extends BaseServiceImpl<BusinessPreOrde
TrayTypeDataVO trayTypeDataVO = warehouseTrayTypeClient.selectListByTrayCode(businessSanDTO.getTrayCode()); TrayTypeDataVO trayTypeDataVO = warehouseTrayTypeClient.selectListByTrayCode(businessSanDTO.getTrayCode());
o = 1; o = 1;
if(!Objects.isNull(trayTypeDataVO)){ if(!Objects.isNull(trayTypeDataVO)){
o=trayTypeDataVO.getOrderlNum(); o=trayTypeDataVO.getTrayNum();
} }
bladeRedis.setEx(key, o, 60 * 60 * 24L); a= (int) o;
bladeRedis.setEx(key, o, 60 * 60 * 24L);
}else{ }else{
a = (int) o; a = (int) o;
a = a + 1; a = a + 1;

Loading…
Cancel
Save