| | |
| | | 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; |
| | |
| | | |
| | | 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"; |
| | | |
| | |
| | | //查询符合条件的记录 |
| | | 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 ; |
| | | } |