|
|
@@ -1260,7 +1260,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
if (departmentId != null && departmentId != "") {
|
|
|
boolean flag = true;
|
|
|
//这里的逻辑是 如果勾选就把填写的咨询变为默认 但是现在是勾选单独生成一条咨询
|
|
|
- /*if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
for (IndustrialLandSupplyConsultation industrialLandSupplyConsultation : industrialLandSupplyConsultationList) {
|
|
|
if (departmentId.equals(industrialLandSupplyConsultation.getDepartment_id())) {
|
|
|
industrialLandSupplyConsultation.setIsDefault(true);
|
|
|
@@ -1268,7 +1268,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- }*/
|
|
|
+ }
|
|
|
if (flag) {
|
|
|
IndustrialLandSupplyConsultation industrialLandSupplyConsultation = new IndustrialLandSupplyConsultation();
|
|
|
industrialLandSupplyConsultation.setIsDefault(true);
|
|
|
@@ -1378,7 +1378,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
if (departmentId != null && departmentId != "") {
|
|
|
boolean flag = true;
|
|
|
//这里的逻辑是 如果勾选就把填写的咨询变为默认 但是现在是勾选单独生成一条咨询
|
|
|
- /*if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
for (IndustrialLandSupplyConsultation industrialLandSupplyConsultation : industrialLandSupplyConsultationList) {
|
|
|
if (departmentId.equals(industrialLandSupplyConsultation.getDepartment_id())) {
|
|
|
industrialLandSupplyConsultation.setIsDefault(true);
|
|
|
@@ -1386,7 +1386,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- }*/
|
|
|
+ }
|
|
|
if (flag) {
|
|
|
IndustrialLandSupplyConsultation industrialLandSupplyConsultation = new IndustrialLandSupplyConsultation();
|
|
|
industrialLandSupplyConsultation.setIsDefault(true);
|
|
|
@@ -3383,7 +3383,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
if (departmentId != null) {
|
|
|
boolean flag = true;
|
|
|
//这里的逻辑是 如果勾选就把填写的咨询变为默认 但是现在是勾选单独生成一条咨询
|
|
|
- /*if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
for (IndustrialLandSupplyConsultation industrialLandSupplyConsultation : industrialLandSupplyConsultationList) {
|
|
|
if (industrialLandSupplyConsultation.getIsDefault() &&
|
|
|
Objects.equals(industrialLandSupplyConsultation.getDepartment_id(), departmentId)) {
|
|
|
@@ -3391,7 +3391,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
flag = false;
|
|
|
}
|
|
|
}
|
|
|
- }*/
|
|
|
+ }
|
|
|
if (flag) {
|
|
|
IndustrialLandSupplyConsultation industrialLandSupplyConsultation = new IndustrialLandSupplyConsultation();
|
|
|
industrialLandSupplyConsultation.setIsDefault(true);
|
|
|
@@ -3645,7 +3645,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
if (departmentId != null && departmentId != "") {
|
|
|
boolean flag = true;
|
|
|
//这里的逻辑是 如果勾选就把填写的咨询变为默认 但是现在是勾选单独生成一条咨询
|
|
|
- /*if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
+ if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
for (IndustrialLandSupplyConsultation industrialLandSupplyConsultation : industrialLandSupplyConsultationList) {
|
|
|
if (departmentId.equals(industrialLandSupplyConsultation.getDepartment_id())) {
|
|
|
industrialLandSupplyConsultation.setIsDefault(true);
|
|
|
@@ -3653,7 +3653,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- }*/
|
|
|
+ }
|
|
|
if (flag) {
|
|
|
IndustrialLandSupplyConsultation industrialLandSupplyConsultation = new IndustrialLandSupplyConsultation();
|
|
|
industrialLandSupplyConsultation.setIsDefault(true);
|