|
@@ -534,12 +534,14 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
}
|
|
}
|
|
|
//是否同意
|
|
//是否同意
|
|
|
if (landSupplyConsultation.getIsAgree() != null) {
|
|
if (landSupplyConsultation.getIsAgree() != null) {
|
|
|
- String feedback = landSupplyConsultation.getFeedback();
|
|
|
|
|
|
|
+ String feedback = landSupplyConsultation.getFeedback() == null ? "" : landSupplyConsultation.getFeedback();
|
|
|
String str = "";
|
|
String str = "";
|
|
|
- if (landSupplyConsultation.getIsAgree()) {
|
|
|
|
|
- str = "同意。";
|
|
|
|
|
- } else {
|
|
|
|
|
- str = "不同意。";
|
|
|
|
|
|
|
+ if (!feedback.contains("同意。")) {
|
|
|
|
|
+ if (landSupplyConsultation.getIsAgree()) {
|
|
|
|
|
+ str = "同意。";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ str = "不同意。";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
landSupplyConsultation.setFeedback(str + feedback);
|
|
landSupplyConsultation.setFeedback(str + feedback);
|
|
|
}
|
|
}
|
|
@@ -806,12 +808,14 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
landSupplyConsultation.setDepartment_name(depart.getName());
|
|
landSupplyConsultation.setDepartment_name(depart.getName());
|
|
|
//是否同意
|
|
//是否同意
|
|
|
if (landSupplyConsultation.getIsAgree() != null) {
|
|
if (landSupplyConsultation.getIsAgree() != null) {
|
|
|
- String feedback = landSupplyConsultation.getFeedback();
|
|
|
|
|
|
|
+ String feedback = landSupplyConsultation.getFeedback() == null ? "" : landSupplyConsultation.getFeedback();
|
|
|
String str = "";
|
|
String str = "";
|
|
|
- if (landSupplyConsultation.getIsAgree()) {
|
|
|
|
|
- str = "同意。";
|
|
|
|
|
- } else {
|
|
|
|
|
- str = "不同意。";
|
|
|
|
|
|
|
+ if (!feedback.contains("同意。")) {
|
|
|
|
|
+ if (landSupplyConsultation.getIsAgree()) {
|
|
|
|
|
+ str = "同意。";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ str = "不同意。";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
landSupplyConsultation.setFeedback(str + feedback);
|
|
landSupplyConsultation.setFeedback(str + feedback);
|
|
|
}
|
|
}
|
|
@@ -906,12 +910,13 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- //接受咨询的举办 负责的状态
|
|
|
|
|
|
|
+ //接受咨询的局办 负责的状态
|
|
|
group = groupService.findByName(Constant.INDUSTRIALLANDSUPPLY_2, null);
|
|
group = groupService.findByName(Constant.INDUSTRIALLANDSUPPLY_2, null);
|
|
|
userGroups = userGroupService.findByGroupId(group.getId());
|
|
userGroups = userGroupService.findByGroupId(group.getId());
|
|
|
for (UserGroup userGroup : userGroups) {
|
|
for (UserGroup userGroup : userGroups) {
|
|
|
if (Objects.equals(userGroup.getUser_id(), user_id)) {
|
|
if (Objects.equals(userGroup.getUser_id(), user_id)) {
|
|
|
apply_status_list.add(Constant.LandSupplyApproveStatus.COMMERCE_PENDING_FEEDBACK);
|
|
apply_status_list.add(Constant.LandSupplyApproveStatus.COMMERCE_PENDING_FEEDBACK);
|
|
|
|
|
+ apply_status_list.add(Constant.LandSupplyApproveStatus.COMMERCE_PENDING_SUMMARY);
|
|
|
industriallandsupply_2_flag = true;
|
|
industriallandsupply_2_flag = true;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
@@ -1019,15 +1024,19 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
if (
|
|
if (
|
|
|
Objects.equals(Constant.LandSupplyApproveStatus.COMMERCE_PENDING_FEEDBACK, entity.getApprove_status())
|
|
Objects.equals(Constant.LandSupplyApproveStatus.COMMERCE_PENDING_FEEDBACK, entity.getApprove_status())
|
|
|
|| Objects.equals(Constant.LandSupplyApproveStatus.LAND_SUPPLY_PENDIND_FEEDBACK, entity.getApprove_status())
|
|
|| Objects.equals(Constant.LandSupplyApproveStatus.LAND_SUPPLY_PENDIND_FEEDBACK, entity.getApprove_status())
|
|
|
|
|
+ || Objects.equals(Constant.LandSupplyApproveStatus.COMMERCE_PENDING_SUMMARY, entity.getApprove_status())
|
|
|
) {
|
|
) {
|
|
|
if (industriallandsupply_2_flag || industriallandsupply_5_flag) {
|
|
if (industriallandsupply_2_flag || industriallandsupply_5_flag) {
|
|
|
|
|
|
|
|
|
|
+ //被问数 回答数
|
|
|
|
|
+ int consulNum1 = 0, consulNum2 = 0;
|
|
|
//是否被问
|
|
//是否被问
|
|
|
boolean consulFlag = false;
|
|
boolean consulFlag = false;
|
|
|
for (IndustrialLandSupplyConsultation industrialLandSupplyConsultation : industrialLandSupplyConsultationList) {
|
|
for (IndustrialLandSupplyConsultation industrialLandSupplyConsultation : industrialLandSupplyConsultationList) {
|
|
|
if (Objects.equals(entity.getId() + "", industrialLandSupplyConsultation.getIndustrial_land_supply_id())) {
|
|
if (Objects.equals(entity.getId() + "", industrialLandSupplyConsultation.getIndustrial_land_supply_id())) {
|
|
|
- consulFlag = true;
|
|
|
|
|
- break;
|
|
|
|
|
|
|
+// consulFlag = true;
|
|
|
|
|
+// break;
|
|
|
|
|
+ consulNum1++;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
//是否回答
|
|
//是否回答
|
|
@@ -1041,8 +1050,9 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
Date d1 = DateUtil.parseTimeStringToDate(entity.getUpdate_time(), "yyyy-MM-dd hh:mm:ss");
|
|
Date d1 = DateUtil.parseTimeStringToDate(entity.getUpdate_time(), "yyyy-MM-dd hh:mm:ss");
|
|
|
Date d2 = DateUtil.parseTimeStringToDate(approval.getCreate_time(), "yyyy-MM-dd hh:mm:ss");
|
|
Date d2 = DateUtil.parseTimeStringToDate(approval.getCreate_time(), "yyyy-MM-dd hh:mm:ss");
|
|
|
if (d1.before(d2)) {
|
|
if (d1.before(d2)) {
|
|
|
- consulApproveFlag = true;
|
|
|
|
|
- break;
|
|
|
|
|
|
|
+// consulApproveFlag = true;
|
|
|
|
|
+// break;
|
|
|
|
|
+ consulNum2++;
|
|
|
}
|
|
}
|
|
|
} catch (ParseException e) {
|
|
} catch (ParseException e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -1050,12 +1060,15 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //被问数 回答数
|
|
|
|
|
+ int distNum1 = 0, distNum2 = 0;
|
|
|
//是否被问
|
|
//是否被问
|
|
|
boolean distFlag = false;
|
|
boolean distFlag = false;
|
|
|
for (IndustrialLandSupplyDistribution industrialLandSupplyDistribution : industrialLandSupplyDistributionList) {
|
|
for (IndustrialLandSupplyDistribution industrialLandSupplyDistribution : industrialLandSupplyDistributionList) {
|
|
|
if (Objects.equals(entity.getId() + "", industrialLandSupplyDistribution.getIndustrial_land_supply_id())) {
|
|
if (Objects.equals(entity.getId() + "", industrialLandSupplyDistribution.getIndustrial_land_supply_id())) {
|
|
|
- distFlag = true;
|
|
|
|
|
- break;
|
|
|
|
|
|
|
+// distFlag = true;
|
|
|
|
|
+// break;
|
|
|
|
|
+ distNum1++;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
//是否回答
|
|
//是否回答
|
|
@@ -1066,8 +1079,9 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
Date d1 = DateUtil.parseTimeStringToDate(entity.getUpdate_time(), "yyyy-MM-dd hh:mm:ss");
|
|
Date d1 = DateUtil.parseTimeStringToDate(entity.getUpdate_time(), "yyyy-MM-dd hh:mm:ss");
|
|
|
Date d2 = DateUtil.parseTimeStringToDate(approval.getCreate_time(), "yyyy-MM-dd hh:mm:ss");
|
|
Date d2 = DateUtil.parseTimeStringToDate(approval.getCreate_time(), "yyyy-MM-dd hh:mm:ss");
|
|
|
if (d1.before(d2)) {
|
|
if (d1.before(d2)) {
|
|
|
- distApproveFlag = true;
|
|
|
|
|
- break;
|
|
|
|
|
|
|
+// distApproveFlag = true;
|
|
|
|
|
+// break;
|
|
|
|
|
+ distNum2++;
|
|
|
}
|
|
}
|
|
|
} catch (ParseException e) {
|
|
} catch (ParseException e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -1075,7 +1089,10 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if ((consulFlag && !consulApproveFlag) || (distFlag && !distApproveFlag)) {
|
|
|
|
|
|
|
+// if ((consulFlag && !consulApproveFlag) || (distFlag && !distApproveFlag)) {
|
|
|
|
|
+// result.add(entity.getId().toString());
|
|
|
|
|
+// }
|
|
|
|
|
+ if ((consulNum1 > consulNum2) || (distNum1 > distNum2)) {
|
|
|
result.add(entity.getId().toString());
|
|
result.add(entity.getId().toString());
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
@@ -3358,7 +3375,7 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
|
|
|
|
+ if (!CollectionUtils.isEmpty(industrialLandSupplyConsultationList)) {
|
|
|
industrialLandSupplyConsultationService.saveList(industrialLandSupplyConsultationList);
|
|
industrialLandSupplyConsultationService.saveList(industrialLandSupplyConsultationList);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -3956,8 +3973,8 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
final String name = "苏州国家高新区产业用地预审办文单" + "-" + time + ".docx";
|
|
final String name = "苏州国家高新区产业用地预审办文单" + "-" + time + ".docx";
|
|
|
// String templateUrl = repositoryPath + "/docs/annex_template/annex4.docx";
|
|
// String templateUrl = repositoryPath + "/docs/annex_template/annex4.docx";
|
|
|
// String templateUrl = "template/苏州高新区产业用地预审办文单.docx";
|
|
// String templateUrl = "template/苏州高新区产业用地预审办文单.docx";
|
|
|
- String classesPath=Thread.currentThread().getContextClassLoader().getResource("").getPath();
|
|
|
|
|
- String templateUrl =classesPath+ "template/苏州高新区产业用地预审办文单.docx";
|
|
|
|
|
|
|
+ String classesPath = Thread.currentThread().getContextClassLoader().getResource("").getPath();
|
|
|
|
|
+ String templateUrl = classesPath + "template/苏州高新区产业用地预审办文单.docx";
|
|
|
//文件数据库存储路径
|
|
//文件数据库存储路径
|
|
|
// String outputUrl = getFilePath(name, "docs") + ".docx";
|
|
// String outputUrl = getFilePath(name, "docs") + ".docx";
|
|
|
|
|
|