| | |
| | | */ |
| | | 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; |
| | |
| | | * @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; |
| | |
| | | |
| | | |
| | | @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; |
| | | } |