|
@@ -9,17 +9,20 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import com.jeeplus.assess.program.configuration.projectList.domain.*;
|
|
|
-import com.jeeplus.assess.program.configuration.projectList.service.dto.ProgramReportNoDto;
|
|
|
+import com.jeeplus.assess.program.configuration.projectList.domain.ProgramProjectListInfo;
|
|
|
+import com.jeeplus.assess.program.configuration.projectList.service.dto.ProgramAuditAssessPeopleDto;
|
|
|
+import com.jeeplus.assess.program.configuration.projectList.service.dto.ProgramAuditDto;
|
|
|
import com.jeeplus.assess.program.configuration.projectList.service.dto.ProjectListDto;
|
|
|
-import com.jeeplus.assess.workContract.domain.WorkContractInfo;
|
|
|
-import com.jeeplus.assess.workContract.service.WorkContractService;
|
|
|
-import com.jeeplus.assess.workContract.service.dto.WorkContractInfoDto;
|
|
|
+import com.jeeplus.assess.workContract.mapper.WorkContractInfoMapper;
|
|
|
import com.jeeplus.business.project.domain.JyProject;
|
|
|
+import com.jeeplus.business.project.domain.JyProjectAudit;
|
|
|
import com.jeeplus.business.project.domain.JyProjectMembers;
|
|
|
+import com.jeeplus.business.project.mapper.JyProjectAuditMapper;
|
|
|
import com.jeeplus.business.project.mapper.JyProjectMapper;
|
|
|
import com.jeeplus.business.project.mapper.JyProjectMemberMapper;
|
|
|
+import com.jeeplus.business.project.service.dto.JyProjectAuditDTO;
|
|
|
import com.jeeplus.business.project.service.dto.JyProjectDTO;
|
|
|
+import com.jeeplus.business.project.service.mapstruct.JyProjectAuditWrapper;
|
|
|
import com.jeeplus.business.workClientInfo.domain.JyWorkClientLinkman;
|
|
|
import com.jeeplus.business.workClientInfo.mapper.JyWorkClientInfoMapper;
|
|
|
import com.jeeplus.business.workClientInfo.mapper.JyWorkClientLinkmanMapper;
|
|
@@ -35,47 +38,55 @@ import com.jeeplus.sys.domain.WorkAttachmentInfo;
|
|
|
import com.jeeplus.sys.feign.IUserApi;
|
|
|
import com.jeeplus.sys.feign.IWorkAttachmentApi;
|
|
|
import com.jeeplus.sys.mapper.DictValueMapper;
|
|
|
-import com.jeeplus.sys.service.DictValueService;
|
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
|
+import org.apache.commons.compress.utils.Lists;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
-import java.util.stream.Collectors;
|
|
|
+
|
|
|
|
|
|
@Service
|
|
|
public class JyProjectService {
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private JyProjectMapper jyProjectMapper;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private IFlowableApi flowTaskService;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private JyWorkContractInfoMapper jyWorkContractInfoMapper;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private JyWorkClientInfoMapper jyWorkClientInfoMapper;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private JyProjectMemberMapper jyProjectMemberMapper;
|
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private JyWorkClientLinkmanMapper jyWorkClientLinkmanMapper;
|
|
|
|
|
|
- @Autowired
|
|
|
- private JyWorkContractService jyWorkContractService;
|
|
|
+// @Autowired
|
|
|
+// private JyWorkContractService jyWorkContractService;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private DictValueMapper dictValueMapper;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private JyProjectAuditMapper jyProjectAuditMapper;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private WorkContractInfoMapper workContractInfoMapper;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 项目登记列表
|
|
@@ -153,9 +164,10 @@ public class JyProjectService {
|
|
|
item.setAuditUserIds(flowTaskService.getTaskAuditUsers(item.getTaskId())); // 获取数据审核人
|
|
|
}
|
|
|
}
|
|
|
- //合同名称
|
|
|
+ //合同名称及委托方联系人
|
|
|
if (StringUtils.isEmpty(item.getContractName())){
|
|
|
item.setContractName("暂无合同");
|
|
|
+ item.setPrimaryLinkman(item.getClientName());
|
|
|
}
|
|
|
});
|
|
|
return pageList;
|
|
@@ -275,6 +287,24 @@ public class JyProjectService {
|
|
|
jyProjectMembers.setStatus("0");
|
|
|
jyProjectMemberMapper.insert(jyProjectMembers);
|
|
|
}
|
|
|
+ //三级校审添加
|
|
|
+ JyProjectAudit jyProjectAudit1 = new JyProjectAudit();
|
|
|
+ jyProjectAudit1.setProjectId(jyProject.getId());
|
|
|
+ jyProjectAudit1.setStatus("0");
|
|
|
+ jyProjectAudit1.setAuditLevel("1");
|
|
|
+ jyProjectAudit1.setExceedTimeStatus("0");
|
|
|
+ jyProjectAuditMapper.insert(jyProjectAudit1);
|
|
|
+ JyProjectAudit jyProjectAudit2 = new JyProjectAudit();
|
|
|
+ jyProjectAudit2.setProjectId(jyProject.getId());
|
|
|
+ jyProjectAudit2.setStatus("0");
|
|
|
+ jyProjectAudit2.setAuditLevel("2");
|
|
|
+ jyProjectAuditMapper.insert(jyProjectAudit2);
|
|
|
+ JyProjectAudit jyProjectAudit3 = new JyProjectAudit();
|
|
|
+ jyProjectAudit3.setProjectId(jyProject.getId());
|
|
|
+ jyProjectAudit3.setStatus("0");
|
|
|
+ jyProjectAudit3.setAuditLevel("3");
|
|
|
+ jyProjectAuditMapper.insert(jyProjectAudit3);
|
|
|
+
|
|
|
|
|
|
|
|
|
// 保存附件信息
|
|
@@ -404,7 +434,9 @@ public class JyProjectService {
|
|
|
// 查询主表信息
|
|
|
JyProject info = jyProjectMapper.getById(id);
|
|
|
//保存项目信息
|
|
|
- BeanUtils.copyProperties(info, jyProjectDTO);
|
|
|
+ if (ObjectUtil.isNotEmpty(info)){
|
|
|
+ BeanUtils.copyProperties(info, jyProjectDTO);
|
|
|
+ }
|
|
|
// 查询联系人列表
|
|
|
ArrayList<JyWorkClientLinkman> jyWorkClientLinkmen = new ArrayList<>();
|
|
|
JyWorkClientLinkman jyWorkClientLinkman = jyWorkClientLinkmanMapper.selectById(info.getClient());
|
|
@@ -466,6 +498,15 @@ public class JyProjectService {
|
|
|
*/
|
|
|
public void updateStatusById(JyProjectDTO jyProjectDTO) {
|
|
|
jyProjectMapper.updateStatusById(jyProjectDTO.getId(), jyProjectDTO.getStatus());
|
|
|
+ //获取到项目登记通过的信息
|
|
|
+ JyProject byId = jyProjectMapper.getById(jyProjectDTO.getId());
|
|
|
+ if (byId.getStatus().equals("5")){
|
|
|
+ //获取到项目校审一级的信息
|
|
|
+ JyProjectAudit jyProjectAudit= jyProjectAuditMapper.getIdByProId(byId.getId());
|
|
|
+ //设置项目登记通过的时间
|
|
|
+ jyProjectAudit.setProjectAgreeTime(byId.getUpdateTime());
|
|
|
+ jyProjectAuditMapper.updateById(jyProjectAudit);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -504,4 +545,443 @@ public class JyProjectService {
|
|
|
IPage<JyProject> projectIPage=jyProjectMapper.getByCreate(userDTO.getId(),page,wrapper);
|
|
|
return projectIPage;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取三级校审信息
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public JyProjectAuditDTO findByIdAudit(String id) {
|
|
|
+ //根据id获取校审信息
|
|
|
+ JyProjectAuditDTO jyProjectAuditDTO=jyProjectAuditMapper.findByIdAudit(id);
|
|
|
+ // 查询附件信息
|
|
|
+ List<WorkAttachmentInfo> files = workContractInfoMapper.findDtos(id);
|
|
|
+ if (CollectionUtils.isNotEmpty(files)) {
|
|
|
+ for (WorkAttachmentInfo i : files) {
|
|
|
+ i.setCreateBy(SpringUtil.getBean ( IUserApi.class ).getById(i.getBy()));
|
|
|
+ }
|
|
|
+ jyProjectAuditDTO.setWorkAttachmentDtoList(files);
|
|
|
+ }
|
|
|
+ //获取项目信息
|
|
|
+ JyProjectDTO byId = findById(jyProjectAuditDTO.getProjectId());
|
|
|
+ jyProjectAuditDTO.setJyProjectList(byId);
|
|
|
+
|
|
|
+
|
|
|
+ //根据项目的id去查校审的id
|
|
|
+ List<String> ids = jyProjectAuditMapper.getIDsByProId(jyProjectAuditDTO.getProjectId());
|
|
|
+ if (ids.size() >= 1) {
|
|
|
+ jyProjectAuditDTO.setId1(ids.get(0));
|
|
|
+ }
|
|
|
+ if (ids.size() >= 2) {
|
|
|
+ jyProjectAuditDTO.setId2(ids.get(1));
|
|
|
+ }
|
|
|
+ if (ids.size() >= 3) {
|
|
|
+ jyProjectAuditDTO.setId3(ids.get(2));
|
|
|
+ }
|
|
|
+ return jyProjectAuditDTO;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 三级校审新增或修改
|
|
|
+ * @param jyProjectAuditDTO
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ public String saveFormThree(JyProjectAuditDTO jyProjectAuditDTO) throws Exception {
|
|
|
+ //代码转化,将dto中的对象赋到实体类中
|
|
|
+ JyProjectAudit jyProjectAudit = JyProjectAuditWrapper.INSTANCE.toEntity(jyProjectAuditDTO);
|
|
|
+ //获取审核信息
|
|
|
+ JyProjectAuditDTO byIdAudit = jyProjectAuditMapper.findByIdAudit(jyProjectAuditDTO.getId());
|
|
|
+ if (ObjectUtil.isNotEmpty(byIdAudit)){
|
|
|
+ String audit="";
|
|
|
+ //对审核意见进行赋值
|
|
|
+ if (StringUtils.isNotBlank(byIdAudit.getInitialAuditOpinion())){
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTO.getAuditOpinion())){
|
|
|
+ audit=byIdAudit.getInitialAuditOpinion()+"<br/>"+jyProjectAuditDTO.getAuditOpinion();
|
|
|
+ }else {
|
|
|
+ audit=byIdAudit.getInitialAuditOpinion();
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ audit=jyProjectAuditDTO.getAuditOpinion();
|
|
|
+ }
|
|
|
+ jyProjectAudit.setInitialAuditOpinion(audit);
|
|
|
+ jyProjectAudit.setAuditOpinion("");
|
|
|
+ //对修改意见赋值
|
|
|
+ String edit="";
|
|
|
+ if (StringUtils.isNotBlank(byIdAudit.getInitialEditOpinion())){
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTO.getEditOpinion())){
|
|
|
+ edit=byIdAudit.getInitialEditOpinion()+"<br/>"+jyProjectAuditDTO.getEditOpinion();
|
|
|
+ }else {
|
|
|
+ edit=byIdAudit.getInitialEditOpinion();
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ edit=jyProjectAuditDTO.getEditOpinion();
|
|
|
+ }
|
|
|
+ jyProjectAudit.setInitialEditOpinion(edit);
|
|
|
+ jyProjectAudit.setEditOpinion("");
|
|
|
+ }
|
|
|
+ jyProjectAudit.setAuditPeople(jyProjectAuditDTO.getAuditPeople());
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAudit.getId())){
|
|
|
+ jyProjectAuditMapper.updateById(jyProjectAudit);
|
|
|
+ }else{
|
|
|
+ jyProjectAuditMapper.insert(jyProjectAudit);
|
|
|
+ }
|
|
|
+ if (ObjectUtil.isNotEmpty(jyProjectAudit)) {
|
|
|
+ //附件
|
|
|
+ Map<String,String> map = new HashMap<>();
|
|
|
+ String fileList = JSON.toJSONString((jyProjectAudit.getWorkAttachmentDtoList()));
|
|
|
+ String attachmentId = jyProjectAudit.getId();
|
|
|
+ String attachmentFlag = "jyProjectAudit";
|
|
|
+ map.put("fileList",fileList);
|
|
|
+ map.put("attachmentId",attachmentId);
|
|
|
+ map.put("attachmentFlag",attachmentFlag);
|
|
|
+ map.put("currentToken", TokenProvider.getCurrentToken ( ));
|
|
|
+ SpringUtil.getBean ( IWorkAttachmentApi.class ).saveOrUpdateFileList(map);
|
|
|
+
|
|
|
+ }
|
|
|
+ return jyProjectAudit.getId();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据id修改审核状态
|
|
|
+ * @param dto
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public String updateStatusByAuditId(JyProjectAuditDTO dto) {
|
|
|
+ JyProjectAudit jyProjectAudit = new JyProjectAudit();
|
|
|
+ jyProjectAudit.setId(dto.getId());
|
|
|
+ jyProjectAudit.setStatus(dto.getStatus());
|
|
|
+ jyProjectAuditMapper.update(jyProjectAudit,new QueryWrapper<JyProjectAudit>().lambda().eq(JyProjectAudit::getId,jyProjectAudit.getId()));
|
|
|
+ return "操作成功";
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询项目一级校审中逾期未发起的项目
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<JyProjectAudit> selectAudit() {
|
|
|
+ //获取一个月前的时间
|
|
|
+ //创建时间格式化对象
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ //获取当前时间
|
|
|
+ Date currentDate = new Date();
|
|
|
+ //将当前时间转化为字符串
|
|
|
+ String format = simpleDateFormat.format(currentDate);
|
|
|
+ //创建calendar对象
|
|
|
+ Calendar instance = Calendar.getInstance();
|
|
|
+ //将日期设置为当前时间
|
|
|
+ instance.setTime(currentDate);
|
|
|
+ //将日期往前推一个月
|
|
|
+ instance.add(Calendar.MONTH,-1);
|
|
|
+ //获取推送后的日期
|
|
|
+ Date newDate = instance.getTime();
|
|
|
+ List<JyProjectAudit> list=jyProjectAuditMapper.selectAudit(newDate);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改一级校审逾期状态
|
|
|
+ * @param
|
|
|
+ */
|
|
|
+ public void updateStatus(String id) {
|
|
|
+ JyProjectAuditDTO data = jyProjectAuditMapper.findByIdAudit(id);
|
|
|
+ //判断一级校审是否发起
|
|
|
+ if (StringUtils.isNotBlank(data.getStatus())){
|
|
|
+ if (data.getStatus().equals("0")){
|
|
|
+ jyProjectAuditMapper.updateStatus(data.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //判断一级校审是否在规定期限内完成
|
|
|
+ if (StringUtils.isNotBlank(data.getExceedTimeStatus())){
|
|
|
+ if (data.getExceedTimeStatus().equals("1")){
|
|
|
+ if (data.getStatus().equals("5")){
|
|
|
+ jyProjectAuditMapper.updateStatus2(data.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询校审数据信息并导出文档
|
|
|
+ * @param info
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Map<String,Object> getAuditInfoMap(JyProject info){
|
|
|
+ Map data = new HashMap();
|
|
|
+
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy年 MM月 dd日");
|
|
|
+
|
|
|
+ //查询项目信息
|
|
|
+ JyProjectDTO projectDTO = findById(info.getProjectId());
|
|
|
+
|
|
|
+ //项目名称
|
|
|
+ if(StringUtils.isNotBlank(projectDTO.getName())){
|
|
|
+ data.put("projectName",projectDTO.getName());
|
|
|
+ }else{
|
|
|
+ data.put("projectName","");
|
|
|
+ }
|
|
|
+ //项目地点
|
|
|
+ if (StringUtils.isNotBlank(projectDTO.getBuildPlace())){
|
|
|
+ data.put("buildPlace",projectDTO.getBuildPlace());
|
|
|
+ }else {
|
|
|
+ data.put("buildPlace","");
|
|
|
+ }
|
|
|
+ //建设单位
|
|
|
+ if (StringUtils.isNotBlank(projectDTO.getClientName())){
|
|
|
+ data.put("clientName",projectDTO.getClientName());
|
|
|
+ }else {
|
|
|
+ data.put("clientName","");
|
|
|
+ }
|
|
|
+ //审批部门
|
|
|
+ if (StringUtils.isNotBlank(projectDTO.getAuditOffice())){
|
|
|
+ data.put("auditOffice",projectDTO.getAuditOffice());
|
|
|
+ }else {
|
|
|
+ data.put("auditOffice","");
|
|
|
+ }
|
|
|
+ //项目负责人
|
|
|
+ if(StringUtils.isBlank(projectDTO.getLeader())){
|
|
|
+ data.put("projectMaster","");
|
|
|
+ }else{
|
|
|
+ data.put("projectMaster",projectDTO.getLeader());
|
|
|
+ }
|
|
|
+ //其他参与人员
|
|
|
+ if (ObjectUtil.isNotEmpty(projectDTO.getProjectMembers())){
|
|
|
+ ArrayList<String> strings = new ArrayList<>();
|
|
|
+ for (JyProjectMembers projectMember : projectDTO.getProjectMembers()) {
|
|
|
+ strings.add(projectMember.getName());
|
|
|
+ }
|
|
|
+ data.put("otherPeople",strings);
|
|
|
+ }else {
|
|
|
+ data.put("otherPeople","");
|
|
|
+ }
|
|
|
+ //根据项目id获取到所有的校审信息
|
|
|
+ List<JyProjectAuditDTO> jyProjectAuditDTOS=jyProjectAuditMapper.getByProjectId(info.getProjectId());
|
|
|
+ //如果存在审核意见则进行处理
|
|
|
+ if(null != jyProjectAuditDTOS){
|
|
|
+ if (jyProjectAuditDTOS.size()>=1){
|
|
|
+ //审核意见
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(0).getInitialAuditOpinion())){
|
|
|
+ String[] split = jyProjectAuditDTOS.get(0).getInitialAuditOpinion().split("<br/>");
|
|
|
+ //将审核意见放入集合中
|
|
|
+ ArrayList<String> strings = new ArrayList<>();
|
|
|
+ for (String s : split) {
|
|
|
+ strings.add(s);
|
|
|
+ }
|
|
|
+ data.put("firstAuditList",strings);
|
|
|
+ }else {
|
|
|
+ data.put("firstAuditList","");
|
|
|
+ }
|
|
|
+ //审核人
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(0).getAuditPeople())){
|
|
|
+ data.put("firstAuditPeople",SpringUtil.getBean(IUserApi.class).getById(jyProjectAuditDTOS.get(0).getAuditPeople()).getName());
|
|
|
+ }else {
|
|
|
+ data.put("firstAuditPeople","");
|
|
|
+
|
|
|
+ }
|
|
|
+ //日期
|
|
|
+ String format = sdf.format(jyProjectAuditDTOS.get(0).getUpdateTime());
|
|
|
+ if (null == jyProjectAuditDTOS.get(0).getUpdateTime()){
|
|
|
+ data.put("firstAuditDate","");
|
|
|
+ data.put("firstDate","");
|
|
|
+ }else {
|
|
|
+ data.put("firstAuditDate",format);
|
|
|
+ data.put("firstDate",format);
|
|
|
+ }
|
|
|
+ //修改意见
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(0).getInitialEditOpinion())){
|
|
|
+ String[] split = jyProjectAuditDTOS.get(0).getInitialEditOpinion().split("<br/>");
|
|
|
+ ArrayList<String> strings = new ArrayList<>();
|
|
|
+ for (String s : split) {
|
|
|
+ strings.add(s);
|
|
|
+ }
|
|
|
+ data.put("firstEditList",strings);
|
|
|
+ }else {
|
|
|
+ data.put("firstEditList","");
|
|
|
+ }
|
|
|
+ //签名
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(0).getCreateById())){
|
|
|
+ data.put("firstName",SpringUtil.getBean(IUserApi.class).getById(jyProjectAuditDTOS.get(0).getCreateById()).getName());
|
|
|
+ }else {
|
|
|
+ data.put("firstName","");
|
|
|
+ }
|
|
|
+ //校核修改结果认可意见及签名和日期
|
|
|
+ data.put("firstAgreeOpinion","");
|
|
|
+ data.put("firstAgreeName","");
|
|
|
+ data.put("firstAgreeDate","");
|
|
|
+
|
|
|
+ } else if (jyProjectAuditDTOS.size()>=2){
|
|
|
+ //审核意见
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(1).getInitialAuditOpinion())){
|
|
|
+ String[] split = jyProjectAuditDTOS.get(1).getInitialAuditOpinion().split("<br/>");
|
|
|
+ //将审核意见放入集合中
|
|
|
+ ArrayList<String> strings = new ArrayList<>();
|
|
|
+ for (String s : split) {
|
|
|
+ strings.add(s);
|
|
|
+ }
|
|
|
+ data.put("secondAuditList",strings);
|
|
|
+ }else {
|
|
|
+ data.put("secondAuditList","");
|
|
|
+
|
|
|
+ }
|
|
|
+ //审核人
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(1).getAuditPeople())){
|
|
|
+ data.put("secondAuditPeople",SpringUtil.getBean(IUserApi.class).getById(jyProjectAuditDTOS.get(1).getAuditPeople()).getName());
|
|
|
+ }else {
|
|
|
+ data.put("secondAuditPeople","");
|
|
|
+ }
|
|
|
+ //日期
|
|
|
+ String format = sdf.format(jyProjectAuditDTOS.get(1).getUpdateTime());
|
|
|
+ if (null == jyProjectAuditDTOS.get(1).getUpdateTime()){
|
|
|
+ data.put("secondAuditDate","");
|
|
|
+ data.put("secondDate","");
|
|
|
+ }else {
|
|
|
+ data.put("secondAuditDate",format);
|
|
|
+ data.put("secondDate",format);
|
|
|
+ }
|
|
|
+ //修改意见
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(1).getInitialEditOpinion())){
|
|
|
+ String[] split = jyProjectAuditDTOS.get(1).getInitialEditOpinion().split("<br/>");
|
|
|
+ ArrayList<String> strings = new ArrayList<>();
|
|
|
+ for (String s : split) {
|
|
|
+ strings.add(s);
|
|
|
+ }
|
|
|
+ data.put("secondEditList",strings);
|
|
|
+ }else {
|
|
|
+ data.put("secondEditList","");
|
|
|
+ }
|
|
|
+ //签名及日期
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(1).getCreateById())){
|
|
|
+ data.put("secondName",SpringUtil.getBean(IUserApi.class).getById(jyProjectAuditDTOS.get(1).getCreateById()).getName());
|
|
|
+ }else {
|
|
|
+ data.put("secondName","");
|
|
|
+ }
|
|
|
+ //校核修改结果认可意见
|
|
|
+ data.put("secondAgreeOpinion","");
|
|
|
+ data.put("secondAgreeName","");
|
|
|
+ data.put("secondAgreeDate","");
|
|
|
+
|
|
|
+
|
|
|
+ }else if (jyProjectAuditDTOS.size()>=3){
|
|
|
+ //审核意见
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(2).getInitialAuditOpinion())){
|
|
|
+ String[] split = jyProjectAuditDTOS.get(2).getInitialAuditOpinion().split("<br/>");
|
|
|
+ //将审核意见放入集合中
|
|
|
+ ArrayList<String> strings = new ArrayList<>();
|
|
|
+ for (String s : split) {
|
|
|
+ strings.add(s);
|
|
|
+ }
|
|
|
+ data.put("thirdAuditList",strings);
|
|
|
+ }else {
|
|
|
+ data.put("thirdAuditList","");
|
|
|
+ }
|
|
|
+ //审核人
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(2).getAuditPeople())){
|
|
|
+ data.put("thirdAuditPeople",SpringUtil.getBean(IUserApi.class).getById(jyProjectAuditDTOS.get(2).getAuditPeople()).getName());
|
|
|
+ }else {
|
|
|
+ data.put("thirdAuditPeople","");
|
|
|
+ }
|
|
|
+ //日期
|
|
|
+ String format = sdf.format(jyProjectAuditDTOS.get(2).getUpdateTime());
|
|
|
+ if (null == jyProjectAuditDTOS.get(2).getUpdateTime()){
|
|
|
+ data.put("thirdAuditDate","");
|
|
|
+ data.put("thirdDate","");
|
|
|
+ }
|
|
|
+ data.put("thirdAuditDate",format);
|
|
|
+ data.put("thirdDate",format);
|
|
|
+ //修改意见
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(2).getInitialEditOpinion())){
|
|
|
+ String[] split = jyProjectAuditDTOS.get(2).getInitialEditOpinion().split("<br/>");
|
|
|
+ ArrayList<String> strings = new ArrayList<>();
|
|
|
+ for (String s : split) {
|
|
|
+ strings.add(s);
|
|
|
+ }
|
|
|
+ data.put("thirdEditList",strings);
|
|
|
+ }else {
|
|
|
+ data.put("thirdEditList","");
|
|
|
+ }
|
|
|
+ //签名
|
|
|
+ if (StringUtils.isNotBlank(jyProjectAuditDTOS.get(2).getCreateById())){
|
|
|
+ data.put("thirdName",SpringUtil.getBean(IUserApi.class).getById(jyProjectAuditDTOS.get(2).getCreateById()).getName());
|
|
|
+ }else {
|
|
|
+ data.put("thirdName","");
|
|
|
+ }
|
|
|
+ //校核修改结果认可意见
|
|
|
+ data.put("thirdAgreeOpinion","");
|
|
|
+ data.put("thirdAgreeName","");
|
|
|
+ data.put("thirdAgreeDate","");
|
|
|
+
|
|
|
+ }
|
|
|
+ //签发人
|
|
|
+ data.put("submitPeople","");
|
|
|
+ //签发日期
|
|
|
+ data.put("submitDate","");
|
|
|
+ }else{
|
|
|
+ //一级复核意见
|
|
|
+ data.put("firstAuditList","");
|
|
|
+ //一级认可意见
|
|
|
+ data.put("firstAgreeOpinion","");
|
|
|
+ //一级审核人
|
|
|
+ data.put("firstAuditPeople","");
|
|
|
+ //一级认可签名
|
|
|
+ data.put("firstAgreeName","");
|
|
|
+ //一级审核日期
|
|
|
+ data.put("firstAuditDate","");
|
|
|
+ //一级认可日期
|
|
|
+ data.put("firstAgreeDate","");
|
|
|
+ //一级修改时间
|
|
|
+ data.put("firstDate","");
|
|
|
+ //一级修改意见
|
|
|
+ data.put("firstEditList","");
|
|
|
+ //一级修改人
|
|
|
+ data.put("firstName","");
|
|
|
+ //二级审核意见
|
|
|
+ data.put("secondAuditList","");
|
|
|
+ //二级认可意见
|
|
|
+ data.put("secondAgreeOpinion","");
|
|
|
+ //二级审核人
|
|
|
+ data.put("secondAuditPeople","");
|
|
|
+ //二级认可人
|
|
|
+ data.put("secondAgreeName","");
|
|
|
+ //二级审核时间
|
|
|
+ data.put("secondAuditDate","");
|
|
|
+ //二级认可时间
|
|
|
+ data.put("secondAgreeDate","");
|
|
|
+ //二级修改时间
|
|
|
+ data.put("secondDate","");
|
|
|
+ //二级修改意见
|
|
|
+ data.put("secondEditList","");
|
|
|
+ //二级修改人
|
|
|
+ data.put("secondName","");
|
|
|
+ //三级审核意见
|
|
|
+ data.put("thirdAuditList","");
|
|
|
+ //三级认可意见
|
|
|
+ data.put("thirdAgreeOpinion","");
|
|
|
+ //三级审核人
|
|
|
+ data.put("thirdAuditPeople","");
|
|
|
+ //三级认可人
|
|
|
+ data.put("thirdAgreeName","");
|
|
|
+ //三级审核日期
|
|
|
+ data.put("thirdAuditDate","");
|
|
|
+ //三级认可时间
|
|
|
+ data.put("thirdAgreeDate","");
|
|
|
+ //三级修改时间
|
|
|
+ data.put("thirdDate","");
|
|
|
+ //三级修改意见
|
|
|
+ data.put("thirdEditList","");
|
|
|
+ //三级修改人
|
|
|
+ data.put("thirdName","");
|
|
|
+ //签发人
|
|
|
+ data.put("submitPeople","");
|
|
|
+ //签发日期
|
|
|
+ data.put("submitDate","");
|
|
|
+
|
|
|
+ }
|
|
|
+ return data;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|