From a3202d4c62be404247d23f0676e95f8c5d146983 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期六, 06 七月 2024 09:49:17 +0800 Subject: [PATCH] 添加根据设备号查询生产日志,生命周期,和相关信息;限制上传文档类型 --- pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java index 2238604..674443e 100644 --- a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java +++ b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java @@ -390,4 +390,26 @@ FileRestVo fileRestVo = fileOperate.parseHashcode(fmUrl, file.hash); return fileRestVo.fileWebUrl + file.filePath; } + + public Map<String,String> queryByDeviceNo(String deviceNo) { + Map<String,String> map = new HashMap<>(); + map.put("deviceNo", deviceNo); + map.put("proName", "-"); + map.put("proType", "-"); + + PltProduct product = productDao.selectByCode(deviceNo.substring(3,6)); + if(product != null){ + map.put("proName", product.getName()); + map.put("proType", product.getType()); + } + return map; + } + + public List<StaDeviceLife> queryLifeByDeviceNo(String deviceNo) { + return deviceLifeDao.selectByEquipNo(deviceNo); + } + + public List<StaDeviceProductionLog> queryLogByDeviceNo(String devoiceNo) { + return deviceProductionLogDao.selectByEquipNo(devoiceNo); + } } -- Gitblit v1.8.0