|
@@ -762,16 +762,19 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 定时任务,对需要检定的进行检定状态设置,
|
|
|
+ * 定时任务,对需要检定的进行检定状态设置
|
|
|
+ * 范围:包括计量设备、特种设备、需要检定的(自检和外检都包括)
|
|
|
* 1:根据设备的检定预警周期
|
|
|
* 2:筛选
|
|
|
* a) 检定状态为正常的
|
|
|
* b) 当前日期+预警天数>有效期的
|
|
|
+ *
|
|
|
*/
|
|
|
@Override
|
|
|
public void generateSbMeasureLog() {
|
|
|
SbInfoDTO record = new SbInfoDTO();
|
|
|
- record.setUseType(SbUseType.BGCL.getValue());
|
|
|
+ // record.setUseType(SbUseType.BGCL.getValue());
|
|
|
+ record.setUseTypeList(Arrays.asList(SbUseType.BGCL.getValue(), SbUseType.TZSB.getValue()));
|
|
|
record.setMeasureStatus(YesNoEnum.NO.getValue());
|
|
|
record.setIsMeasure(YesNoEnum.YES.getValue());
|
|
|
List<SbInfoVO> list = mapper.selectPageInfoForWarn(record);
|
|
@@ -2154,6 +2157,9 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
if (vo.getCheckPeriod() != null) {
|
|
|
tempInfo.setIsMeasure(1);
|
|
|
}
|
|
|
+ if (vo.getUseType() == 5) {// 特种设备全部需要检定
|
|
|
+ tempInfo.setIsMeasure(1);
|
|
|
+ }
|
|
|
if (tempInfo.getIsMeasure() == 1) {
|
|
|
if (tempInfo.getNextCheckDate() == null) {
|
|
|
if (tempInfo.getCheckDate() != null) {
|