|
@@ -1,5 +1,6 @@
|
|
|
package com.hssx.cloudmodel.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
@@ -771,4 +772,17 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
msg.data = mouldMapper.selectListByCompanyId(companyId, userVO.getProjectId());
|
|
|
return msg;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public HttpRespMsg setProjectDelete(Project project, String token) {
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ User user = userMapper.selectOne(new QueryWrapper<User>().eq("head_imgurl", token));
|
|
|
+ if ((user.getParentId() == 1 && user.getSubordinateType() == 0)) {
|
|
|
+ //资产方管理员才有权限操作
|
|
|
+ projectMapper.updateById(project);
|
|
|
+ } else {
|
|
|
+ msg.setError("您无权操作,请联系资产方管理员操作。");
|
|
|
+ }
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
}
|