Browse Source

list页面的查询条件下拉选择不正确的问题

wutianbin 7 years ago
parent
commit
b3647e81d1

+ 2 - 2
src/main/java/org/geek/szbay/assistant/code/generator/UpdateFtlMaker.java

@@ -86,7 +86,7 @@ public class UpdateFtlMaker {
 				
 				if (attrType.toLowerCase().contains("int")) {
 					sbSearch.append(space(12) + String.format("\t\t\t<option value=\"${key}\"%s>${globalDict['%s'][key]!}</option>\r\n",
-							" ${(ret.model." + attrName + "?? && key==query." + attrName + "?c)?string( 'selected=\"selected\"','')}",
+							" ${(query." + attrName + "?? && key==query." + attrName + "?c)?string( 'selected=\"selected\"','')}",
 							attrName));
 
 					sb2.append(String.format(
@@ -102,7 +102,7 @@ public class UpdateFtlMaker {
 							attrName, attrName, attrName, attrName, attrName, attrName, attrName));
 				} else {
 					sbSearch.append(space(12) + String.format("\t\t\t<option value=\"${key}\"%s>${globalDict['%s'][key]!}</option>\r\n",
-							" ${(ret.model." + attrName + "?? && key==query." + attrName + ")?string( 'selected=\"selected\"','')}",
+							" ${(query." + attrName + "?? && key==query." + attrName + ")?string( 'selected=\"selected\"','')}",
 							attrName));
 
 					sb2.append(String.format(