|
|
|
@ -103,11 +103,12 @@ public class BasicdataCodeServiceImpl implements IBasicdataCodeService {
|
|
|
|
|
log.warn("############generateTraysCode: 未找到对应仓库warehouseCode={}",warehouseCode); |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
String abbreviation = entity.getAbbreviation();//简称
|
|
|
|
|
// String abbreviation = entity.getAbbreviation();//简称
|
|
|
|
|
String code = entity.getCode(); |
|
|
|
|
//获得年月日短字符串
|
|
|
|
|
String dateShort = CommonUtil.dateToStringShortYM(new Date()); |
|
|
|
|
|
|
|
|
|
String key = "汇通"+":"+abbreviation+":"+dateShort; |
|
|
|
|
String key = "HT"+":"+code+":"+dateShort; |
|
|
|
|
|
|
|
|
|
//获得序号
|
|
|
|
|
Long incr = bladeRedis.incr(key); |
|
|
|
@ -116,7 +117,7 @@ public class BasicdataCodeServiceImpl implements IBasicdataCodeService {
|
|
|
|
|
bladeRedis.expireAt(key,CommonUtil.getMonthDayEnd()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return "汇通"+abbreviation+dateShort+CommonUtil.geFourNumber(incr,5); |
|
|
|
|
return "HT"+code+dateShort+CommonUtil.geFourNumber(incr,5); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|