Compare commits
No commits in common. "4b8dc5d6994c4a60ff7bc248d256d453be50582d" and "5b7daf58249d929ec0cbe8f421ab801d09f3ab86" have entirely different histories.
4b8dc5d699
...
5b7daf5824
@ -232,10 +232,6 @@ public class ProjectDAO {
|
||||
|
||||
ProjectDO projectDO = projectMapper.getProjectById(projectId);
|
||||
|
||||
if (projectDO == null) {
|
||||
return "项目负责人不存在";
|
||||
}
|
||||
|
||||
UserDO userDO = userMapper.getUserById(projectDO.getPrincipalId());
|
||||
|
||||
if (userDO == null) {
|
||||
|
@ -16,7 +16,6 @@ public class ProjectModuleSimpleVO {
|
||||
private Integer workLoad;
|
||||
private Timestamp deadLine;
|
||||
private String status;
|
||||
private Integer cycle;
|
||||
private String principalUser;
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import com.jsl.oa.dao.ProjectDAO;
|
||||
import com.jsl.oa.dao.ProjectDailyDAO;
|
||||
import com.jsl.oa.dao.UserDAO;
|
||||
import com.jsl.oa.mapper.ProjectDailyMapper;
|
||||
import com.jsl.oa.model.dodata.ProjectDO;
|
||||
import com.jsl.oa.model.dodata.ProjectDailyDO;
|
||||
import com.jsl.oa.model.dodata.UserDO;
|
||||
import com.jsl.oa.model.vodata.ProjectDailyAddVO;
|
||||
@ -211,12 +210,8 @@ public class ProjectDailyServiceImpl implements ProjectDailyService {
|
||||
// 复制相同的属性值
|
||||
Processing.copyProperties(projectDailyDO, projectDailyVO);
|
||||
// 赋值其他需查询的属性
|
||||
ProjectDO projectDO = projectDAO.getProjectById(projectDailyVO.getProjectId());
|
||||
if (projectDO == null) {
|
||||
projectDailyVO.setProjectName(projectDO.getName());
|
||||
} else {
|
||||
projectDailyVO.setPrincipalName("项目不存在");
|
||||
}
|
||||
projectDailyVO.setProjectName(
|
||||
projectDAO.getProjectById(projectDailyVO.getProjectId()).getName());
|
||||
//设置发送者名称,如果为昵称为空则赋值用户账号
|
||||
UserDO senderUser = userDAO.getUserById(projectDailyDO.getUserId());
|
||||
|
||||
|
@ -346,14 +346,13 @@ public class ProjectServiceImpl implements ProjectService {
|
||||
if (projectModuleDO == null) {
|
||||
return ResultUtil.error(ErrorCode.MODULE_NOT_EXIST);
|
||||
}
|
||||
if (projectModuleEditVO.getDescription() != null) {
|
||||
HashMap<String, Object> descriptionMap = new HashMap<>();
|
||||
descriptionMap.put("description", projectModuleEditVO.getDescription());
|
||||
projectModuleEditVO.setDescription(gson.toJson(descriptionMap));
|
||||
}
|
||||
projectModuleEditVO.setId(id);
|
||||
projectMapper.projectModuleEdit(projectModuleEditVO);
|
||||
}
|
||||
|
||||
return ResultUtil.success("修改成功");
|
||||
}
|
||||
|
||||
@ -370,13 +369,11 @@ public class ProjectServiceImpl implements ProjectService {
|
||||
JsonObject jsonObject = gson
|
||||
.fromJson(projectChildDO.getDescription(), JsonObject.class);
|
||||
//改动简介发送消息
|
||||
if (projectChildAddVO.getDescription() != null) {
|
||||
if (!Objects.equals(projectChildAddVO.getDescription(), "")
|
||||
&& !projectChildAddVO.getDescription()
|
||||
.equals(jsonObject.get("description").getAsString())) {
|
||||
messageService.messageAdd(projectMapper.getProjectIdBySysId(id)
|
||||
.intValue(), id.intValue(), null, 2, request);
|
||||
}
|
||||
} // 改动周期或工作量发送消息
|
||||
if ((projectChildAddVO.getCycle() != null
|
||||
&& projectChildDO.getCycle().equals(projectChildAddVO.getCycle()))
|
||||
@ -392,11 +389,9 @@ public class ProjectServiceImpl implements ProjectService {
|
||||
messageService.messageAdd(projectMapper.getProjectIdBySysId(id)
|
||||
.intValue(), 3, id.intValue(), request);
|
||||
}
|
||||
if (projectChildAddVO.getDescription() != null) {
|
||||
HashMap<String, Object> descriptionMap = new HashMap<>();
|
||||
descriptionMap.put("description", projectChildAddVO.getDescription());
|
||||
projectChildAddVO.setDescription(gson.toJson(descriptionMap));
|
||||
}
|
||||
|
||||
projectChildAddVO.setId(id);
|
||||
projectMapper.projectChildEditAll(projectChildAddVO);
|
||||
@ -468,22 +463,17 @@ public class ProjectServiceImpl implements ProjectService {
|
||||
if (projectEdit.getStatus() != null && !projectDO.getStatus().equals(projectEdit.getStatus())) {
|
||||
messageService.messageAdd(projectId.intValue(), 2, null, request);
|
||||
}
|
||||
if (projectEdit.getDescription() != null) {
|
||||
HashMap<String, Object> descriptionMap = new HashMap<>();
|
||||
descriptionMap.put("description", projectEdit.getDescription());
|
||||
projectEdit.setDescription(gson.toJson(descriptionMap));
|
||||
}
|
||||
|
||||
if (projectEdit.getDescription() != null) {
|
||||
HashMap<String, Object> tagMap = new HashMap<>();
|
||||
tagMap.put("tags", projectEdit.getTags().split(","));
|
||||
projectEdit.setTags(gson.toJson(tagMap));
|
||||
}
|
||||
if (projectEdit.getDescription() != null) {
|
||||
|
||||
HashMap<String, Object> filesMap = new HashMap<>();
|
||||
filesMap.put("URI", projectEdit.getFiles());
|
||||
projectEdit.setFiles(gson.toJson(filesMap));
|
||||
}
|
||||
|
||||
projectEdit.setId(projectId);
|
||||
ProjectDO projectEdit1 = new ProjectDO();
|
||||
|
@ -40,7 +40,6 @@
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete},
|
||||
</if>
|
||||
updated_at = CURRENT_TIMESTAMP
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@ -106,7 +105,6 @@
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="projectChildEditAll">
|
||||
update organize_oa.oa_project_child
|
||||
<set>
|
||||
|
Loading…
x
Reference in New Issue
Block a user