|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.usky.common.core.bean.CommonPage;
|
|
|
+import com.usky.common.core.exception.BusinessException;
|
|
|
import com.usky.common.security.utils.SecurityUtils;
|
|
|
import com.usky.fire.domain.PatrolInspectionEvent;
|
|
|
import com.usky.fire.domain.PatrolInspectionPersonnel;
|
|
@@ -106,6 +107,11 @@ public class PatrolInspectionEventServiceImpl extends AbstractCrudService<Patrol
|
|
|
|
|
|
@Override
|
|
|
public void edit(PatrolInspectionEvent patrolInspectionEvent){
|
|
|
+ PatrolInspectionEvent one = this.getById(patrolInspectionEvent.getId());
|
|
|
+ if(one == null){
|
|
|
+ throw new BusinessException("没有对应记录数据");
|
|
|
+ }
|
|
|
+
|
|
|
patrolInspectionEvent.setHandleStatus(1);
|
|
|
patrolInspectionEvent.setHandleName(SecurityUtils.getUsername());
|
|
|
patrolInspectionEvent.setHandleTime(LocalDateTime.now());
|