|
@@ -2,10 +2,7 @@ package com.management.platform.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
-import com.management.platform.entity.Project;
|
|
|
|
-import com.management.platform.entity.Report;
|
|
|
|
-import com.management.platform.entity.TimeCalculation;
|
|
|
|
-import com.management.platform.entity.User;
|
|
|
|
|
|
+import com.management.platform.entity.*;
|
|
import com.management.platform.mapper.*;
|
|
import com.management.platform.mapper.*;
|
|
import com.management.platform.service.ReportService;
|
|
import com.management.platform.service.ReportService;
|
|
import com.management.platform.util.HttpRespMsg;
|
|
import com.management.platform.util.HttpRespMsg;
|
|
@@ -44,10 +41,8 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
private TimeCalculationMapper timeCalculationMapper;
|
|
private TimeCalculationMapper timeCalculationMapper;
|
|
@Resource
|
|
@Resource
|
|
private ProjectMapper projectMapper;
|
|
private ProjectMapper projectMapper;
|
|
-
|
|
|
|
@Resource
|
|
@Resource
|
|
- private TimeCalculationShowMapper timeCalculationShowMapper;
|
|
|
|
-
|
|
|
|
|
|
+ private InformationMapper informationMapper;
|
|
|
|
|
|
@Value(value = "${upload.path}")
|
|
@Value(value = "${upload.path}")
|
|
private String path;
|
|
private String path;
|
|
@@ -267,6 +262,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
} else {
|
|
} else {
|
|
reportMapper.update(new Report().setState(2),
|
|
reportMapper.update(new Report().setState(2),
|
|
new QueryWrapper<Report>().eq("creator_id", id).eq("create_date", date));
|
|
new QueryWrapper<Report>().eq("creator_id", id).eq("create_date", date));
|
|
|
|
+ informationMapper.insert(new Information().setType(0).setContent(date).setUserId(id));
|
|
}
|
|
}
|
|
} catch (NullPointerException e) {
|
|
} catch (NullPointerException e) {
|
|
httpRespMsg.setError("验证失败");
|
|
httpRespMsg.setError("验证失败");
|