|
@@ -53,7 +53,7 @@ public interface StandardMapper {
|
|
|
* @param packColCondition packColCondition
|
|
|
* @return int
|
|
|
*/
|
|
|
- @SelectProvider(type = SqlProvider.class, method = "delete")
|
|
|
+ @DeleteProvider(type = SqlProvider.class, method = "delete")
|
|
|
Integer delete(@Param("tableName") String tableName, @Param("condition") JSONObject condition
|
|
|
, @Param("packColCondition") JSONObject packColCondition);
|
|
|
|
|
@@ -77,8 +77,8 @@ public interface StandardMapper {
|
|
|
* @param packColCondition packColCondition
|
|
|
* @return int
|
|
|
*/
|
|
|
- @SelectProvider(type = SqlProvider.class, method = "update")
|
|
|
- int update(@Param("tableName") String tableName, @Param("packCommitData") JSONObject packCommitData
|
|
|
+ @UpdateProvider(type = SqlProvider.class, method = "update")
|
|
|
+ Integer update(@Param("tableName") String tableName, @Param("packCommitData") JSONObject packCommitData
|
|
|
, @Param("packColCondition") JSONObject packColCondition);
|
|
|
|
|
|
|
|
@@ -319,7 +319,7 @@ public interface StandardMapper {
|
|
|
wholeSql.append(key).append(covert(queryType, columnType, key, value)).append(" , ");
|
|
|
}
|
|
|
|
|
|
- wholeSql.append(StringUtils.substringBeforeLast(wholeSql.toString(), " , "));
|
|
|
+ wholeSql = new StringBuilder(StringUtils.substringBeforeLast(wholeSql.toString(), " , "));
|
|
|
packCondition(packColCondition, wholeSql);
|
|
|
|
|
|
String sqlStr = wholeSql.toString();
|