| | |
| | | import org.springframework.transaction.TransactionStatus; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | |
| | | pam.setProDocumentName(split[1].substring(0, rexIdex)); |
| | | pam.setProDocumentFormat(split[1].substring(rexIdex + 1)); |
| | | pam.setProUploadDate(new Date()); |
| | | pam.setGainDate(new Date()); |
| | | projectArchiveManageMapper.insert(pam); |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | /** |
| | | * 项目管理 |
| | | * 项目过程管理/己确认、未确认阶段 |
| | | * @param projectManage |
| | | * @return |
| | | */ |
| | |
| | | Response response = new Response<>(); |
| | | |
| | | try { |
| | | List<ProjectManage> projectManages = projectManageMapper.searchManageStateByCondition(projectManage); |
| | | ProjectManage pm = projectManageMapper.searchManageStateByCondition(projectManage); |
| | | List<ProjectArchiveManage> pams = projectArchiveManageMapper.searchByConditionDocumentPath(projectManage); |
| | | HashMap<Object, Object> map = new HashMap<>(); |
| | | map.put("项目管理", pm); |
| | | ArrayList<Object> list = new ArrayList<>(); |
| | | if (null != pams) { |
| | | for (int i = 0; i < pams.size(); i++) { |
| | | ProjectArchiveManage pam = pams.get(i); |
| | | HashMap<Object, Object> mapDoc = new HashMap<>(); |
| | | mapDoc.put("文件名", pam.getProDocumentName()); |
| | | mapDoc.put("文件路径", pam.getProFilePath()); |
| | | list.add(mapDoc); |
| | | } |
| | | } |
| | | map.put("文档材料", list); |
| | | response.setCode(1); |
| | | response.setMsg(1,"查询成功"); |
| | | response.setData(projectManages); |
| | | response.setMsg(1, "查询成功"); |
| | | response.setData(map); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return response.setMsg(0,"查询失败"); |
| | | return response.setMsg(0, "查询失败"); |
| | | } |
| | | return response; |
| | | } |
| | |
| | | |
| | | /** |
| | | * 项目进度确认 |
| | | * |
| | | *未归档可以修改更新,归档后不能修改 |
| | | * @param pm |
| | | * @return |
| | | */ |