src/main/java/cn/felord/mybatis/CrudMapperProvider.java
private void deleteById(Configuration configuration) {

        String deleteId = mapperInterface.getName().concat(".").concat("deleteById");

        if (existStatement(configuration,deleteId)){
            return;
        }

        String CONDITION = primaryColumn().concat(" = #{" + identifer + "}");

        String deleteSQL = new SQL()
                .DELETE_FROM(table)
                .WHERE(CONDITION).toString();

        Map<String, Object> additionalParameters = new HashMap<>();

        doAddMappedStatement(configuration, deleteId, deleteSQL, SqlCommandType.DELETE, primaryKeyType, additionalParameters);
    }
/**
     * Delete by id.
     *
     * @param configuration the configuration
     */
Delete by id.
@param configuration the configuration
Delete by id . @param configuration the configuration
private void deleteById(Configuration configuration) {
        String deleteId = mapperInterface.getName().concat(".").concat("deleteById");
        if (existStatement(configuration,deleteId)){
            return;
        }
        String CONDITION = primaryColumn().concat(" = #{" + identifer + "}");
        String deleteSQL = new SQL()
                .DELETE_FROM(table)
                .WHERE(CONDITION).toString();
        Map<String, Object> additionalParameters = new HashMap<>();
        doAddMappedStatement(configuration, deleteId, deleteSQL, SqlCommandType.DELETE, primaryKeyType, additionalParameters);
    }
private void deleteById ( Configuration configuration ) { String deleteId = mapperInterface . getName ( ) . concat ( "." ) . concat ( "deleteById" ) ; if ( existStatement ( configuration , deleteId ) ) { return ; } String CONDITION = primaryColumn ( ) . concat ( " = #{" + identifer + "}" ) ; String deleteSQL = new SQL ( ) . DELETE_FROM ( table ) . WHERE ( CONDITION ) . toString ( ) ; Map < String , Object > additionalParameters = new HashMap < > ( ) ; doAddMappedStatement ( configuration , deleteId , deleteSQL , SqlCommandType . DELETE , primaryKeyType , additionalParameters ) ; }
Delete by id.
Delete by id .