|
@@ -3094,13 +3094,13 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
if (!StringUtils.isEmpty(code)) {
|
|
|
int cnt = projectMapper.selectCount(new QueryWrapper<Project>().eq("project_code", code).eq("company_id", user.getCompanyId()));
|
|
|
if (cnt > 0) {
|
|
|
- if(key==0){
|
|
|
- continue;
|
|
|
- }
|
|
|
// throw new Exception("项目编号存在重复: " + code);
|
|
|
existCodeList.add(code);
|
|
|
//跳过编号重复的数据
|
|
|
exists=true;
|
|
|
+ if(key==0){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
project.setProjectCode(code);
|
|
@@ -3295,7 +3295,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
msg.data = MessageUtils.message("data.importSucRow",importCount);
|
|
|
if (existCodeList.size() > 0) {
|
|
|
String collect = existCodeList.stream().collect(Collectors.joining(","));
|
|
|
- msg.data += MessageUtils.message("data.upSkip",existCodeList.size(),collect);
|
|
|
+ if(key==0){
|
|
|
+ msg.data += MessageUtils.message("data.skip",existCodeList.size(),collect);
|
|
|
+ }else {
|
|
|
+ msg.data += MessageUtils.message("data.upSkip",existCodeList.size(),collect);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
OperationRecord operationRecord=new OperationRecord();
|
|
|
operationRecord.setCompanyId(user.getCompanyId());
|
|
@@ -3592,13 +3597,13 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
if (!StringUtils.isEmpty(code)) {
|
|
|
int cnt = projectMapper.selectCount(new QueryWrapper<Project>().eq("project_code", code).eq("company_id", user.getCompanyId()));
|
|
|
if (cnt > 0) {
|
|
|
- if(key==0){
|
|
|
- continue;
|
|
|
- }
|
|
|
// throw new Exception("项目编号存在重复: " + code);
|
|
|
existCodeList.add(code);
|
|
|
//跳过编号重复的数据
|
|
|
exists=true;
|
|
|
+ if(key==0){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
project.setProjectCode(code);
|
|
@@ -4270,9 +4275,14 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
//msg.data = "成功导入"+importCount+"条数据。";
|
|
|
msg.data = MessageUtils.message("data.importSucRow",importCount);
|
|
|
+ System.out.println(existCodeList);
|
|
|
if (existCodeList.size() > 0) {
|
|
|
String collect = existCodeList.stream().collect(Collectors.joining(","));
|
|
|
- msg.data += MessageUtils.message("data.upSkip",existCodeList.size(),collect);
|
|
|
+ if(key==0){
|
|
|
+ msg.data += MessageUtils.message("data.skip",existCodeList.size(),collect);
|
|
|
+ }else {
|
|
|
+ msg.data += MessageUtils.message("data.upSkip",existCodeList.size(),collect);
|
|
|
+ }
|
|
|
}
|
|
|
OperationRecord operationRecord=new OperationRecord();
|
|
|
operationRecord.setCompanyId(user.getCompanyId());
|