|
@@ -10,10 +10,7 @@ import com.management.platform.entity.*;
|
|
import com.management.platform.entity.vo.*;
|
|
import com.management.platform.entity.vo.*;
|
|
import com.management.platform.mapper.*;
|
|
import com.management.platform.mapper.*;
|
|
import com.management.platform.service.*;
|
|
import com.management.platform.service.*;
|
|
-import com.management.platform.util.ExcelUtil;
|
|
|
|
-import com.management.platform.util.HttpRespMsg;
|
|
|
|
-import com.management.platform.util.ListUtil;
|
|
|
|
-import com.management.platform.util.WorkDayCalculateUtils;
|
|
|
|
|
|
+import com.management.platform.util.*;
|
|
import org.apache.poi.EncryptedDocumentException;
|
|
import org.apache.poi.EncryptedDocumentException;
|
|
import org.apache.poi.hssf.usermodel.HSSFCell;
|
|
import org.apache.poi.hssf.usermodel.HSSFCell;
|
|
import org.apache.poi.hssf.usermodel.HSSFRow;
|
|
import org.apache.poi.hssf.usermodel.HSSFRow;
|
|
@@ -153,6 +150,8 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
UserCustomMapper userCustomMapper;
|
|
UserCustomMapper userCustomMapper;
|
|
@Resource
|
|
@Resource
|
|
SubUserCustomMapper subUserCustomMapper;
|
|
SubUserCustomMapper subUserCustomMapper;
|
|
|
|
+ @Resource
|
|
|
|
+ OperationRecordService operationRecordService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
@@ -522,6 +521,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ Project oldProject = projectMapper.selectById(id);
|
|
isNew = false;
|
|
isNew = false;
|
|
//修改项目
|
|
//修改项目
|
|
//检查项目编号不能重复
|
|
//检查项目编号不能重复
|
|
@@ -671,6 +671,20 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
financeProjectsMapper.update(fp, new QueryWrapper<FinanceProjects>().eq("project_id", p.getId()));
|
|
financeProjectsMapper.update(fp, new QueryWrapper<FinanceProjects>().eq("project_id", p.getId()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ Project newProject = projectMapper.selectById(id);
|
|
|
|
+ String path = Project.class.getClassLoader().getResource("/").getPath();
|
|
|
|
+ BeanChangeUtil<Project> beanChangeUtil=new BeanChangeUtil();
|
|
|
|
+ String content = beanChangeUtil.contrastObj(oldProject, newProject);
|
|
|
|
+ OperationRecord operationRecord =new OperationRecord();
|
|
|
|
+ operationRecord.setOperatorName(user.getName());
|
|
|
|
+ operationRecord.setOperationTime(LocalDateTime.now());
|
|
|
|
+ operationRecord.setCompanyId(companyId);
|
|
|
|
+ operationRecord.setContent(content);
|
|
|
|
+ operationRecord.setModuleName("项目管理");
|
|
|
|
+ if(!StringUtils.isEmpty(content.trim())){
|
|
|
|
+ System.out.println(operationRecord);
|
|
|
|
+ operationRecordService.save(operationRecord);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (httpRespMsg.code.equals("ok")) {
|
|
if (httpRespMsg.code.equals("ok")) {
|
|
//编辑关系
|
|
//编辑关系
|
|
@@ -2940,8 +2954,8 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
endDateCell = row.getCell(8+i+k+c);
|
|
endDateCell = row.getCell(8+i+k+c);
|
|
amountCell = row.getCell(9+i+k+c);
|
|
amountCell = row.getCell(9+i+k+c);
|
|
if(company.getId()==936){
|
|
if(company.getId()==936){
|
|
- warrantyEndDateCell=row.getCell(10+i+k+c);
|
|
|
|
- warrantyStartDateCell=row.getCell(11+i+k+c);
|
|
|
|
|
|
+ warrantyStartDateCell=row.getCell(10+i+k+c);
|
|
|
|
+ warrantyEndDateCell=row.getCell(11+i+k+c);
|
|
projectCategorySubCell=row.getCell(12+i+k+c);
|
|
projectCategorySubCell=row.getCell(12+i+k+c);
|
|
regionCell=row.getCell(13+i+k+c);
|
|
regionCell=row.getCell(13+i+k+c);
|
|
buCell=row.getCell(14+i+k+c);
|
|
buCell=row.getCell(14+i+k+c);
|
|
@@ -2976,8 +2990,8 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
endDateCell = row.getCell(9+i+k+c);
|
|
endDateCell = row.getCell(9+i+k+c);
|
|
amountCell = row.getCell(10+i+k+c);
|
|
amountCell = row.getCell(10+i+k+c);
|
|
if(company.getId()==936){
|
|
if(company.getId()==936){
|
|
- warrantyEndDateCell=row.getCell(11+i+k+c);
|
|
|
|
- warrantyStartDateCell=row.getCell(12+i+k+c);
|
|
|
|
|
|
+ warrantyStartDateCell=row.getCell(11+i+k+c);
|
|
|
|
+ warrantyEndDateCell=row.getCell(12+i+k+c);
|
|
projectCategorySubCell=row.getCell(13+i+k+c);
|
|
projectCategorySubCell=row.getCell(13+i+k+c);
|
|
regionCell=row.getCell(14+i+k+c);
|
|
regionCell=row.getCell(14+i+k+c);
|
|
buCell=row.getCell(15+i+k+c);
|
|
buCell=row.getCell(15+i+k+c);
|