|
@@ -14,6 +14,7 @@ import com.fdkankan.site.common.util.VUtils;
|
|
|
import com.fdkankan.site.entity.*;
|
|
|
import com.fdkankan.site.entity.dto.MarkingDTO;
|
|
|
import com.fdkankan.site.entity.dto.ProjectTeamDTO;
|
|
|
+import com.fdkankan.site.enums.ProjectAction;
|
|
|
import com.fdkankan.site.exception.BusinessException;
|
|
|
import com.fdkankan.site.httpClient.bim.BusinessStatus;
|
|
|
import com.fdkankan.site.mapper.IProjectMapper;
|
|
@@ -256,11 +257,11 @@ public class ProjectServiceImpl extends ServiceImpl<IProjectMapper, Project> imp
|
|
|
|
|
|
if(delNumList.size() >0){
|
|
|
projectNumService.delByNumList(param.getProjectId(),delNumList);
|
|
|
- projectLogService.addLog(param.getProjectId(),"删除场景",param.getToken(),delNumList);
|
|
|
+ projectLogService.addLog(param.getProjectId(), ProjectAction.REMOVE_SCENE.getKey(),param.getToken(),delNumList);
|
|
|
}
|
|
|
if(addNumList.size() >0){
|
|
|
projectNumService.addByNumList(param.getProjectId(),numType,addNumList);
|
|
|
- projectLogService.addLog(param.getProjectId(),"添加场景",param.getToken(),addNumList);
|
|
|
+ projectLogService.addLog(param.getProjectId(), ProjectAction.ADD_SCENE.getKey(),param.getToken(),addNumList);
|
|
|
}
|
|
|
this.updateTime(project.getProjectId());
|
|
|
}
|
|
@@ -274,7 +275,7 @@ public class ProjectServiceImpl extends ServiceImpl<IProjectMapper, Project> imp
|
|
|
|
|
|
VUtils.isTure(StringUtils.isBlank(param.getNum())).throwMessage(ResultCode.PARAM_MISS);
|
|
|
projectNumService.delByNumList(param.getProjectId(),Arrays.asList(param.getNum()));
|
|
|
- projectLogService.addLog(param.getProjectId(),"删除场景",param.getToken(),Arrays.asList(param.getNum()));
|
|
|
+ projectLogService.addLog(param.getProjectId(),ProjectAction.REMOVE_SCENE.getKey(),param.getToken(),Arrays.asList(param.getNum()));
|
|
|
this.updateTime(project.getProjectId());
|
|
|
|
|
|
List<Marking> markings = markingService.findByProjectIdAndNum(project.getProjectId(),param.getNum());
|
|
@@ -289,7 +290,7 @@ public class ProjectServiceImpl extends ServiceImpl<IProjectMapper, Project> imp
|
|
|
ProjectBim bim = projectBimService.getById(bimId);
|
|
|
if(bim != null){
|
|
|
checkTokenPer(token, bim.getProjectId());
|
|
|
- projectLogService.addLog(bim.getProjectId(),"删除BIM:"+bim.getBimName(),token,null);
|
|
|
+ projectLogService.addLog(bim.getProjectId(),ProjectAction.REMOVE_BIM_ONLY.getKey()+bim.getBimName(),token,null);
|
|
|
projectBimService.removeById(bimId);
|
|
|
this.updateTime(bim.getProjectId());
|
|
|
}
|
|
@@ -343,7 +344,7 @@ public class ProjectServiceImpl extends ServiceImpl<IProjectMapper, Project> imp
|
|
|
checkTokenPer(token, bim.getProjectId());
|
|
|
projectBimService.updateBimName(projectBim);
|
|
|
this.updateTime(bim.getProjectId());
|
|
|
- projectLogService.addLog(bim.getProjectId(),"修改BIM名称:"+projectBim.getBimName(),token,null);
|
|
|
+ projectLogService.addLog(bim.getProjectId(),ProjectAction.MODIFY_BIM_NAME.getKey()+projectBim.getBimName(),token,null);
|
|
|
|
|
|
}
|
|
|
|
|
@@ -360,7 +361,7 @@ public class ProjectServiceImpl extends ServiceImpl<IProjectMapper, Project> imp
|
|
|
}
|
|
|
this.update(wrapper);
|
|
|
this.updateTime(param.getProjectId());
|
|
|
- projectLogService.addLog(param.getProjectId(),"同步BIM位置",token,null);
|
|
|
+ projectLogService.addLog(param.getProjectId(),ProjectAction.SYNC_BIM_POSITION.getKey(),token,null);
|
|
|
|
|
|
}
|
|
|
|