| | |
| | | left join basic_glass_type bgt on bgt.type_id = a.type_id |
| | | <where> |
| | | <if test="glassTypeId != null and glassTypeId != ''"> |
| | | and a.type_id like concat('%',#{glassTypeId},'%') |
| | | and a.type_id = #{glassTypeId} |
| | | </if> |
| | | <if test="product.id != null and product.id != ''"> |
| | | and a.id like concat('%',#{product.id},'%') |
| | |
| | | </if> |
| | | </where> |
| | | |
| | | order by id desc |
| | | order by |
| | | <if test="orderBy == null "> |
| | | id desc |
| | | </if> |
| | | <if test="orderBy == 'desc'"> |
| | | ${field} desc |
| | | </if> |
| | | <if test="orderBy == 'asc'"> |
| | | ${field} |
| | | </if> |
| | | limit #{offset},#{pageSize} |
| | | ; |
| | | </select> |