|
@@ -194,6 +194,10 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
public HttpRespMsg editReport(List<Report> reportList) {
|
|
public HttpRespMsg editReport(List<Report> reportList) {
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
for (Report report : reportList) {
|
|
for (Report report : reportList) {
|
|
|
|
+ if (report.getWorkingTime() <= 0.0) {
|
|
|
|
+ httpRespMsg.setError("工作时长必须大于零");
|
|
|
|
+ return httpRespMsg;
|
|
|
|
+ }
|
|
if (report.getId() == null) {
|
|
if (report.getId() == null) {
|
|
if (reportMapper.insert(report) == 0) {
|
|
if (reportMapper.insert(report) == 0) {
|
|
httpRespMsg.setError("操作失败");
|
|
httpRespMsg.setError("操作失败");
|