Compare commits

...

6 Commits

Author SHA1 Message Date
176yunxuan
b096ce21a2 fix:子系统返回负责人名
All checks were successful
代码检查 / 代码检查 (pull_request) Successful in 19s
2024-04-18 23:08:42 +08:00
3527c250d4 Merge branch 'master' into develop
All checks were successful
代码检查 / 代码检查 (pull_request) Successful in 16s
2024-04-18 22:34:30 +08:00
b9aa1b25cc
fix(业务): 业务补丁
All checks were successful
代码检查 / 代码检查 (pull_request) Successful in 16s
数据库建表内容修改
2024-04-18 22:34:03 +08:00
acb3fab074
fix(业务): 业务补丁
All checks were successful
代码检查 / 代码检查 (pull_request) Successful in 17s
json 补丁
2024-04-18 22:32:39 +08:00
3383fef3f0 Merge pull request 'fix:新增子系统,子模块,消息总数记录' (#25) from feature-jie into develop
Reviewed-on: #25
2024-04-18 22:31:39 +08:00
725f5f7fee Merge pull request 'develop' (#23) from develop into master
All checks were successful
代码检查 / 代码检查 (push) Successful in 19s
Reviewed-on: #23
2024-04-18 16:33:19 +08:00
7 changed files with 50 additions and 16 deletions

View File

@ -31,4 +31,6 @@ public class ProjectChildDO {
private Timestamp createdAt;
private Timestamp completeTime;
private Timestamp updatedAt;
private String status;
private Timestamp deadLine;
}

View File

@ -17,6 +17,8 @@ public class ProjectModuleDO {
private String description;
private String name;
private Integer isDelete;
private String status;
private Timestamp deadLine;
private Timestamp createdAt;
private Timestamp updatedAt;
private Timestamp completeTime;

View File

@ -2,13 +2,17 @@ package com.jsl.oa.model.vodata;
import lombok.Data;
import java.util.List;
@Data
public class PermissionContentVO {
// 主键
private Long id;
// 权限名称
private String name;
// 权限描述
private String description;
private String code;
private Short type;
private List<PermissionContentVO> children;
}

View File

@ -0,0 +1,24 @@
package com.jsl.oa.model.vodata;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;
import java.sql.Timestamp;
@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProjectChildGetVO {
private Long id;
private String principalName;
private Long projectId;
private Integer workLoad;
private Integer cycle;
private String name;
private String description;
private Integer isDelete;
private String status;
private Timestamp deadLine;
}

View File

@ -15,19 +15,17 @@ import java.sql.Timestamp;
public class ProjectWorkAndNameVO {
private Long id;
private Long pid;
private String childSystemName;
private Long projectId;
private Long projectChildId;
private Long principalId;
private String principalUser;
private Integer cycle;
private Integer workLoad;
private Integer type;
private String name;
private String description;
private Integer isDelete;
private Integer isFinish;
private boolean status;
private String status;
private Timestamp deadLine;
private Timestamp beginTime;
private Timestamp completeTime;
}

View File

@ -6,6 +6,7 @@ import com.jsl.oa.dao.UserDAO;
import com.jsl.oa.mapper.ModuleMapper;
import com.jsl.oa.model.dodata.ProjectChildDO;
import com.jsl.oa.model.dodata.ProjectModuleDO;
import com.jsl.oa.model.vodata.ProjectChildGetVO;
import com.jsl.oa.model.vodata.ProjectWorkAndNameVO;
import com.jsl.oa.services.ModuleService;
import com.jsl.oa.utils.BaseResponse;
@ -42,9 +43,15 @@ public class ModuleServiceImpl implements ModuleService {
log.info("不是负责人");
is = 0;
}
List<ProjectChildDO> projectWorkDOList = moduleMapper.getByProjectId(projectId, userId, is);
return ResultUtil.success(projectWorkDOList);
List<ProjectChildGetVO> projectWorkAndNameVOS = new ArrayList<>();
for (ProjectChildDO projectWorkDO : projectWorkDOList) {
ProjectChildGetVO projectWorkAndNameVO = new ProjectChildGetVO();
Processing.copyProperties(projectWorkDO, projectWorkAndNameVO);
projectWorkAndNameVO.setPrincipalName(userDAO.getUserById(projectWorkDO.getPrincipalId()).getUsername());
projectWorkAndNameVOS.add(projectWorkAndNameVO);
}
return ResultUtil.success(projectWorkAndNameVOS);
}
@Override

View File

@ -2,7 +2,7 @@ create table oa_project_child
(
id bigint unsigned auto_increment comment '项目id'
primary key,
project_id bigint unsigned not null comment '主要项目id',
project_id bigint unsigned null comment '主要项目id',
name varchar(100) not null comment '项目名称',
principal_id bigint unsigned not null comment '项目负责人',
description json null comment '项目描述(技术选择,描述)',
@ -13,11 +13,8 @@ create table oa_project_child
created_at timestamp default CURRENT_TIMESTAMP not null comment '创建时间',
updated_at timestamp null comment '更新时间',
is_delete tinyint(1) default 0 not null comment '项目是否删除',
dead_line timestamp not null comment '子系统的截止时间',
status varchar(8) default 'progress' not null comment '系统状态draft: 草稿progress: 进行pause: 暂停abnormal: 异常complete: 完成)',
constraint oa_project_child_oa_user_id_fk
foreign key (principal_id) references oa_user (id)
on update cascade
)
comment '项目表';