|
|
|
|
@ -247,6 +247,8 @@ var commomtable1 = 'commomtable1';
|
|
|
|
|
|
|
|
|
|
//拼接sql
|
|
|
|
|
function getSql() {
|
|
|
|
|
$("#whereSql").val('');
|
|
|
|
|
$("#fromTableSql").val('');
|
|
|
|
|
var inputValue = getInputValue();
|
|
|
|
|
if (inputValue != '') {
|
|
|
|
|
//from语句字符串
|
|
|
|
|
@ -530,8 +532,6 @@ function getSql() {
|
|
|
|
|
name = 'is_oper';
|
|
|
|
|
whereNames += commomtable + "." + name + " = '1' AND ";
|
|
|
|
|
}
|
|
|
|
|
$("#whereSql").val('');
|
|
|
|
|
$("#fromTableSql").val('');
|
|
|
|
|
if (whereNames != ' where ') {
|
|
|
|
|
whereNames = whereNames.substring(0, whereNames.length - 4);
|
|
|
|
|
$("#whereSql").val(whereNames);
|
|
|
|
|
|