1、cad拆单新增plateno生成规则,追加5位组织号在前;2、小程序解析新plateno号;

This commit is contained in:
gaoqr
2026-06-02 10:12:55 +08:00
parent 1cc176bee0
commit 6ba45874a1
3 changed files with 5 additions and 5 deletions
@@ -780,7 +780,7 @@ public class WebCadOrderImportAsyncFactory {
.id(plateId)
.orderId(orderId)
.name(block.getName())
.plateNo(obtainingTime + Long.toString(plateNo).substring(2))
.plateNo(String.format("%05d", organId) + obtainingTime + Long.toString(plateNo).substring(2))
.type(block.getType())
.goodsId(goodsDO.getId())
.width(getBigDecimalOrNull(block.getWidth()))
@@ -977,7 +977,7 @@ public class WebCadOrderImportFactory {
.id(plateId)
.orderId(orderId)
.name(block.getName())
.plateNo(obtainingTime + Long.toString(plateNo).substring(2))
.plateNo(String.format("%05d", organId) + obtainingTime + Long.toString(plateNo).substring(2))
.type(block.getType())
.goodsId(goodsDO.getId())
.width(getBigDecimalOrNull(block.getWidth()))