|
@@ -325,7 +325,7 @@ public class PatrolInspectionPlanSonServiceImpl extends AbstractCrudService<Patr
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public void addSite(PatrolInspectionSite patrolInspectionSite){
|
|
|
+ public void addSite(PatrolInspectionSite patrolInspectionSite) {
|
|
|
patrolInspectionSite.setCreator(SecurityUtils.getUsername());
|
|
|
patrolInspectionSite.setCollector(SecurityUtils.getUsername());
|
|
|
patrolInspectionSite.setCollectTime(LocalDateTime.now());
|
|
@@ -335,6 +335,19 @@ public class PatrolInspectionPlanSonServiceImpl extends AbstractCrudService<Patr
|
|
|
patrolInspectionSiteService.save(patrolInspectionSite);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<PatrolInspectionSite> siteList(String startTime, String endTime) {
|
|
|
+ LambdaQueryWrapper<PatrolInspectionSite> queryWrapper = Wrappers.lambdaQuery();
|
|
|
+ queryWrapper.eq(PatrolInspectionSite::getTenantId, SecurityUtils.getTenantId());
|
|
|
+ queryWrapper.eq(PatrolInspectionSite::getCollector, SecurityUtils.getUsername());
|
|
|
+ queryWrapper.eq(PatrolInspectionSite::getEnable, 1);
|
|
|
+ if (startTime != null && !"".equals(startTime) && endTime != null && !"".equals(endTime)) {
|
|
|
+ queryWrapper.between(PatrolInspectionSite::getCollectTime, startTime, endTime);
|
|
|
+ }
|
|
|
+ List<PatrolInspectionSite> list = patrolInspectionSiteService.list(queryWrapper);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public Integer planSiteSonCount(Integer planSonId, Integer inspectionStatus) {
|