From a2093e0389656b3485303da48204f0939c95e8fb Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期五, 26 七月 2024 17:31:47 +0800 Subject: [PATCH] 静态常量整理 --- pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java index 783a93c..fceba39 100644 --- a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java +++ b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java @@ -6,6 +6,7 @@ import com.dy.pmsGlobal.daoPlt.PltStationMapper; import com.dy.pmsGlobal.pojoPlt.PltProductionLine; import com.dy.pmsGlobal.pojoPlt.PltStation; +import com.dy.pmsGlobal.util.QrCodeConstant; import com.dy.pmsGlobal.util.QrCodeUtil; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.common.utils.PojoUtils; @@ -23,7 +24,7 @@ private PltStationMapper dao; private PltProductionLineMapper lineDao; - private static final String stationPrefix = "103" ; +// private static final String stationPrefix = "103" ; private static final String DEFAULT_CODE = "0001"; private static final String CODE_FORMAT = "%04d"; @@ -125,7 +126,7 @@ //鏌ヨ绗﹀悎鏉′欢鐨勮褰� rsVo.obj = this.dao.selectSome(params) ; rsVo.obj.parallelStream().forEach(item->{ - item.qrCode = QrCodeUtil.genQrCodeString(stationPrefix+item.id); + item.qrCode = QrCodeUtil.genQrCodeString(QrCodeConstant.TypeStation+item.id); }); return rsVo ; } -- Gitblit v1.8.0