项目管理
This commit is contained in:
parent
088b8833fc
commit
e422008325
|
|
@ -8,6 +8,7 @@ import com.bonus.web.mapper.ProjectMapper;
|
||||||
import com.bonus.web.service.ProjectService;
|
import com.bonus.web.service.ProjectService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
@ -34,7 +35,9 @@ public class ProjectServiceImpl implements ProjectService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public AjaxResult updateContentsName(ProjectDto projectDto) {
|
public AjaxResult updateContentsName(ProjectDto projectDto) {
|
||||||
|
try {
|
||||||
Integer num = projectMapper.updateContentsName(projectDto);
|
Integer num = projectMapper.updateContentsName(projectDto);
|
||||||
if (num > 0) {
|
if (num > 0) {
|
||||||
// 档案管理中新增一条目录
|
// 档案管理中新增一条目录
|
||||||
|
|
@ -50,5 +53,9 @@ public class ProjectServiceImpl implements ProjectService {
|
||||||
} else {
|
} else {
|
||||||
return AjaxResult.error("配置失败");
|
return AjaxResult.error("配置失败");
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
return AjaxResult.error("接口异常");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue