|
@@ -9,6 +9,7 @@ import com.platform.common.util.*;
|
|
|
import com.platform.dao.bean.MyPage;
|
|
|
import com.platform.dao.dto.sb.BatchSbMeasureLog;
|
|
|
import com.platform.dao.dto.sb.SbChangeRecordDTO;
|
|
|
+import com.platform.dao.dto.sb.SbInfoDTO;
|
|
|
import com.platform.dao.dto.sb.SbMeasureLogDTO;
|
|
|
import com.platform.dao.entity.check.CheckProjectStandardRelation;
|
|
|
import com.platform.dao.entity.sb.SbChangeRecord;
|
|
@@ -23,6 +24,7 @@ import com.platform.dao.enums.YesNoEnum;
|
|
|
import com.platform.dao.mapper.sb.*;
|
|
|
import com.platform.dao.vo.query.sb.SbMeasureLogVO;
|
|
|
import com.platform.dao.vo.report.MeasureLogReportVO;
|
|
|
+import com.platform.dao.vo.sb.SbInfoVO;
|
|
|
import com.platform.service.base.impl.BaseServiceImpl;
|
|
|
import com.platform.service.sb.SbMeasureLogService;
|
|
|
import com.platform.service.upms.SysFileService;
|
|
@@ -489,6 +491,31 @@ public class SbMeasureLogServiceImpl extends BaseServiceImpl<SbMeasureLogMapper,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void generateInitLog() {
|
|
|
+ SbInfoDTO sbInfoDTO = new SbInfoDTO();
|
|
|
+ sbInfoDTO.setUseType(4);
|
|
|
+ sbInfoDTO.setIsMeasure(1);
|
|
|
+ List<SbInfoVO> list = sbInfoMapper.selectVOList(sbInfoDTO);
|
|
|
+ List<SbMeasureLog> logList = ListUtils.newArrayList();
|
|
|
+ list.forEach(item -> {
|
|
|
+ SbMeasureLog log = new SbMeasureLog();
|
|
|
+ log.setName("huangrh");
|
|
|
+ log.setLastDate(item.getCheckDate());
|
|
|
+ log.setType(1);
|
|
|
+ log.setCheckUserId("62d61960030de40d4cdd579f");
|
|
|
+ log.setRequirement("龙岩质检");
|
|
|
+ log.setCreatedUserId("62d61960030de40d4cdd579f");
|
|
|
+ log.setCreatedTime(LocalDateTime.now());
|
|
|
+ log.setCreatedUserName("黄汝煌");
|
|
|
+ log.setUpdateTime(LocalDateTime.now());
|
|
|
+ log.setSbId(item.getId());
|
|
|
+ log.setId(IdGeneratorUtils.getObjectId());
|
|
|
+ logList.add(log);
|
|
|
+ });
|
|
|
+ mapper.insertList(logList);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 入库
|
|
|
* @param sbId
|