linwe
2023-12-23 55d677758efadb6d42e6d4e595cecc2c50c20d5a
src/main/java/org/springblade/modules/task/service/impl/TaskCampusReportingEventServiceImpl.java
@@ -16,6 +16,7 @@
 */
package org.springblade.modules.task.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springblade.common.constant.DictConstant;
import org.springblade.core.secure.utils.AuthUtil;
@@ -39,7 +40,7 @@
 * @since 2023-11-06
 */
@Service
public class TaskCampusReportingEventServiceImpl extends BaseServiceImpl<TaskCampusReportingEventMapper, TaskCampusReportingEventEntity> implements ITaskCampusReportingEventService {
public class TaskCampusReportingEventServiceImpl extends ServiceImpl<TaskCampusReportingEventMapper, TaskCampusReportingEventEntity> implements ITaskCampusReportingEventService {
   @Resource
   private ITaskService taskService;
@@ -50,12 +51,12 @@
   @Override
   public Boolean saveCampusReporting(TaskCampusReportingEventDTO taskCampusReportingEvent) {
      Long aLong = taskService.saveTask(1, DictConstant.CAMPUS_SECURITY_INSPECTION, 3 , "", AuthUtil.getUserId(),taskCampusReportingEvent.getHouseCode());
   public Boolean saveCampusReporting(TaskCampusReportingEventDTO reporting) {
      Long aLong = taskService.saveTask(1, DictConstant.CAMPUS_SECURITY_INSPECTION, 1 , "", AuthUtil.getUserId(),reporting.getHouseCode(),reporting.getReportType());
      if (aLong > 0) {
         taskCampusReportingEvent.setTaskId(aLong);
         taskCampusReportingEvent.setCheckUserId(AuthUtil.getUserId());
         return baseMapper.insert(taskCampusReportingEvent) > 0 ? true : false;
         reporting.setTaskId(aLong);
         reporting.setCheckUserId(AuthUtil.getUserId());
         return baseMapper.insert(reporting) > 0 ? true : false;
      }
      return false;
   }