forked from kidgrow-microservices-platform

克 刘
2020-04-02 32f756ef98bb6f01f00fd77122f883ffc3ccb708
kidgrow-business/kidgrow-code-generator/src/main/resources/template/Mapper.xml.vm
@@ -11,11 +11,11 @@
    <sql id="where">
        <where>
            <!--查询条件自行添加-->
            is_del=0
            p.is_del=0
            #foreach($column in $columns)
            #if($column.columnName != $pk.columnName || $pk.extra != 'auto_increment')
            <if test="$column.attrname != null and $column.attrname !=''">
                and  $column.columnName =  #{$column.attrname}
            <if test="p.$column.attrname != null and p.$column.attrname !=''">
                and  $column.columnName =  #{p.$column.attrname}
            </if>
            #end
            #end