|
@@ -8,9 +8,12 @@ import com.platform.common.validation.group.UpdateGroup;
|
|
import com.platform.dao.dto.sb.BatchSbMeasureLog;
|
|
import com.platform.dao.dto.sb.BatchSbMeasureLog;
|
|
import com.platform.dao.dto.sb.SbMeasureLogDTO;
|
|
import com.platform.dao.dto.sb.SbMeasureLogDTO;
|
|
import com.platform.dao.entity.sb.SbMeasureLog;
|
|
import com.platform.dao.entity.sb.SbMeasureLog;
|
|
|
|
+import com.platform.dao.entity.sb.SbUpdateLog;
|
|
|
|
+import com.platform.dao.mapper.sb.SbUpdateLogMapper;
|
|
import com.platform.dao.util.ExcelUtil;
|
|
import com.platform.dao.util.ExcelUtil;
|
|
import com.platform.dao.vo.export.sb.ExportSbMeasureLogVO;
|
|
import com.platform.dao.vo.export.sb.ExportSbMeasureLogVO;
|
|
import com.platform.dao.vo.query.sb.SbMeasureLogVO;
|
|
import com.platform.dao.vo.query.sb.SbMeasureLogVO;
|
|
|
|
+import com.platform.dao.vo.sb.SbUpdateLogVO;
|
|
import com.platform.rest.log.annotation.SysLog;
|
|
import com.platform.rest.log.annotation.SysLog;
|
|
import com.platform.service.sb.SbMeasureLogService;
|
|
import com.platform.service.sb.SbMeasureLogService;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
@@ -19,7 +22,9 @@ import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
+import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description 设备计量记录 控制器
|
|
* @Description 设备计量记录 控制器
|
|
@@ -34,6 +39,8 @@ public class SbMeasureLogController {
|
|
|
|
|
|
private final SbMeasureLogService sbMeasureLogService;
|
|
private final SbMeasureLogService sbMeasureLogService;
|
|
|
|
|
|
|
|
+ private final SbUpdateLogMapper sbUpdateLogMapper;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 通过id查询标准
|
|
* 通过id查询标准
|
|
*
|
|
*
|
|
@@ -162,4 +169,22 @@ public class SbMeasureLogController {
|
|
return new R<>();
|
|
return new R<>();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取列表
|
|
|
|
+ *
|
|
|
|
+ * @param checkStandardDTO 设备计量记录DTO
|
|
|
|
+ * @return R
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/getLogBySbId")
|
|
|
|
+ public R getLogBySbId(SbMeasureLogDTO checkStandardDTO) {
|
|
|
|
+ SbUpdateLog log = new SbUpdateLog();
|
|
|
|
+ log.setSbId(checkStandardDTO.getSbId());
|
|
|
|
+ List<SbUpdateLogVO> updateLogs = sbUpdateLogMapper.selectList(log);
|
|
|
|
+ List<SbMeasureLogVO> measureLogVOS = sbMeasureLogService.selectList(checkStandardDTO);
|
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
|
+ map.put("1",updateLogs);
|
|
|
|
+ map.put("2",measureLogVOS);
|
|
|
|
+ return new R<>(map);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|