Commit 0df43bf8 by java-lixy

修补代码

parent 7d7f6e79
...@@ -295,7 +295,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -295,7 +295,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
if (flag.equals("meanWhile")) { if (flag.equals("meanWhile")) {
reportNotice.setTitle("“" + reportEntity.getSupplementTitle() + "”已由" + user.getName() + "于" + dateStr + "处理完成"); reportNotice.setTitle("“" + reportEntity.getSupplementTitle() + "”已由" + user.getName() + "于" + dateStr + "处理完成");
//没点完成,title为请处理 //没点完成,title为请处理
if (reportEntity.getDealResult().equals("3") && StringUtils.isBlank(ifDone)) { if (StringUtils.isBlank(ifDone)) {
reportNotice.setTitle("请处理-“" + reportEntity.getSupplementTitle() + "”"); reportNotice.setTitle("请处理-“" + reportEntity.getSupplementTitle() + "”");
} }
} }
...@@ -320,7 +320,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -320,7 +320,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportNotice.setSendToId(reportEntity.getExchangeAfterUser()); reportNotice.setSendToId(reportEntity.getExchangeAfterUser());
reportNotice.setTitle("“" + reportEntity.getSupplementTitle() + "”已由" + user.getName() + "于" + dateStr + "处理完成"); reportNotice.setTitle("“" + reportEntity.getSupplementTitle() + "”已由" + user.getName() + "于" + dateStr + "处理完成");
//没点完成,title为请处理 //没点完成,title为请处理
if (reportEntity.getDealResult().equals("3") && StringUtils.isBlank(ifDone)) { if (StringUtils.isBlank(ifDone)) {
reportNotice.setTitle("请处理-“" + reportEntity.getSupplementTitle() + "”"); reportNotice.setTitle("请处理-“" + reportEntity.getSupplementTitle() + "”");
} }
} else { } else {
......
...@@ -302,12 +302,12 @@ public class ReportController extends BaseController { ...@@ -302,12 +302,12 @@ public class ReportController extends BaseController {
} }
//更新举报状态 //更新举报状态
reportEntity.setReportStatus("1"); reportEntity.setReportStatus("1");
if (reportEntity.getDealResult().equals("1") || reportEntity.getDealResult().equals("2")){ // if (reportEntity.getDealResult().equals("1") || reportEntity.getDealResult().equals("2")){
reportEntity.setReportStatus("2"); // reportEntity.setReportStatus("2");
} // }
if (reportEntity.getDealResult().equals("3")){ // if (reportEntity.getDealResult().equals("3")){
reportEntity.setReportStatus("1"); // reportEntity.setReportStatus("1");
} // }
if ("ifDone".equals(ifDone)) { if ("ifDone".equals(ifDone)) {
reportEntity.setReportStatus("2"); reportEntity.setReportStatus("2");
} }
......
...@@ -78,20 +78,9 @@ ...@@ -78,20 +78,9 @@
} }
//判断是否显示是否完成选择框 //判断是否显示是否完成选择框
var dealResult = $("#dealResult").val(); var dealResult = $("#dealResult").val();
if (dealResult =="1"){ if (dealResult != null && dealResult != ' '){
$("#selectDone").show(); $("#selectDone").show();
} }
if(dealResult =="2") {
$("#selectDone").show();
}
if(dealResult =="3") {
$("#selectDone").show();
}
if(dealResult =="4") {
$("#selectDone").show();
} else if(dealResult ==""){
$("#selectDone").hide();
}
}); });
/** /**
...@@ -399,19 +388,9 @@ ...@@ -399,19 +388,9 @@
//显示是否完成选择框 //显示是否完成选择框
function showDone(){ function showDone(){
var dealResult = $("#dealResult").val(); var dealResult = $("#dealResult").val();
if (dealResult =="1"){ if (dealResult != null && dealResult != ' '){
$("#selectDone").show(); $("#selectDone").show();
} }else {
if(dealResult =="2") {
$("#selectDone").show();
}
if(dealResult =="3") {
$("#selectDone").show();
}
if(dealResult =="4") {
$("#selectDone").show();
}
else if(dealResult ==""){
$("#selectDone").hide(); $("#selectDone").hide();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment