|
@@ -4,11 +4,15 @@ import beans.parameter.Parameter;
|
|
|
import common.BaseClass;
|
|
|
import common.Controller;
|
|
|
import common.YosException;
|
|
|
+import common.data.Rows;
|
|
|
+import common.data.db.DBConnect;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
|
public class FadHelper extends BaseClass {
|
|
|
public static String getAppletUrl(Controller controller, String paramname, String remarks) throws YosException {
|
|
|
- if (StringUtils.isBlank(Parameter.get(paramname))) {
|
|
|
+
|
|
|
+ Rows rows = new DBConnect().runSqlQuery("select * from sys_parameter where paramname='" + paramname + "'");
|
|
|
+ if (rows.isEmpty()) {
|
|
|
Parameter.create(controller, paramname, "", remarks);
|
|
|
return "";
|
|
|
} else {
|