public String delete(Map<String, Object> params) {
    String sqlString;
    SQL sql = new SQL();
    String tableName = getTable((Class<? extends BaseDomain>) params.get("domain"));
    Long[] ids = (Long[]) Objects.getDefault(params.get("ids"), new Long[] {});
    final StringBuilder idsCondition = new StringBuilder("(-1");

    Iterators.forEach(
        Arrays.asList(ids).iterator(),
        new Iterators.CustomerHandler<Long>() {
          @Override
          public void handle(Long id) {
            idsCondition.append(",").append(id);
          }
        });
    idsCondition.append(")");

    sql.DELETE_FROM(tableName).WHERE("id in " + idsCondition.toString());

    sqlString = sql.toString();
    logger.debug("{} : {}", logger.getName(), sqlString);
    return sqlString;
  }
 /**
  * This method was generated by MyBatis Generator. This method corresponds to the database table
  * `trade_move_check`
  *
  * @mbggenerated
  */
 public String deleteByExample(TradeMoveCheckExample example) {
   SQL sql = new SQL();
   sql.DELETE_FROM("`trade_move_check`");
   applyWhere(sql, example, false);
   return sql.toString();
 }
 /**
  * This method was generated by MyBatis Generator. This method corresponds to the database table
  * `agentaccountlog`
  *
  * @mbggenerated
  */
 public String deleteByExample(FinalAgentaccountLogCriteria example) {
   SQL sql = new SQL();
   sql.DELETE_FROM("`agentaccountlog`");
   applyWhere(sql, example, false);
   return sql.toString();
 }
 /**
  * This method was generated by MyBatis Generator. This method corresponds to the database table
  * `orderguidereward`
  *
  * @mbggenerated
  */
 public String deleteByExample(FinalOrderGuideRewardCriteria example) {
   SQL sql = new SQL();
   sql.DELETE_FROM("`orderguidereward`");
   applyWhere(sql, example, false);
   return sql.toString();
 }