1.完善专项分析-终端检测管理

This commit is contained in:
wr
2024-02-19 10:13:56 +08:00
parent 3148a84444
commit 06c2cf095c
3 changed files with 3 additions and 10 deletions

View File

@@ -90,7 +90,7 @@
</if>
</where>
GROUP BY
Create_Time
statisticsDate
</select>
<select id="selectResultsCycleStatistics" resultType="com.njcn.process.pojo.vo.TerminalVO$ResultsStatistics">
SELECT

View File

@@ -136,7 +136,7 @@ public class PmsTerminalDetectionServiceImpl extends ServiceImpl<PmsTerminalDete
LocalDate inspectionTime = param.getInspectionTime();
detection.setNextInspectionTime(inspectionTime.plusYears(5));
detection.setTestResults(0);
detection.setTestResults(StrUtil.isNotBlank(param.getOriginalReport())?1:0);
detection.setStatus(1);
return this.save(detection);
}
@@ -414,7 +414,7 @@ public class PmsTerminalDetectionServiceImpl extends ServiceImpl<PmsTerminalDete
addMsg(terminalExcelMsg, terminalExcel, msg, "当前终端编号重复");
continue;
}
String orgName = terminalExcel.getOrgName();
String orgName = terminalExcel.getOrgName().trim();
//判断
List<PvTerminalTreeVO> deptList = data.stream().filter(d ->
d.getName().indexOf(orgName) > -1