Commit d19e5ef3 authored by yanzg's avatar yanzg

1.3版本修改,增加删除功能

parent f6515320
......@@ -141,7 +141,7 @@ public class DaoConst {
/**
* 更新字段模板参数
*/
public static final String CODE_UPDATE_FIELD_REMOVE = "a.%s=IFNULL(?,1)";
public static final String CODE_UPDATE_FIELD_REMOVE = ",a.%s=IFNULL(?,1)";
/**
* 等于条件
*/
......
......@@ -534,7 +534,7 @@ public class TableStruct {
// 生成添加的SQL语句
String text = SQL_UPDATE.replace(CODE_TABLE, this.name);
SqlData sql = new SqlData(sqlName, text);
sql.setSqlType(SQL_TYPE_REMOVE);
sql.setSqlType(sqlType);
TableFieldVo key = this.getKey();
// 主键字段操作
sql.addCode(CODE_FIELD, String.format(CODE_UPDATE_PRIMARY, key.name, key.name));
......
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