docs: create wg-basic/mapper-unit

This commit is contained in:
Administrator 2021-10-21 07:57:12 +00:00 committed by John Smith
parent f754a21239
commit e041d9e3e0

21
wg-basic/mapper-unit.md Normal file
View File

@ -0,0 +1,21 @@
---
title: Mapper代码块
description:
published: true
date: 2021-10-21T07:57:10.297Z
tags: wg-basic
editor: markdown
dateCreated: 2021-10-21T07:57:10.297Z
---
# 排序条件
```xml
<if test="order != null and order != ''">
ORDER BY
<trim suffixOverrides=",">
<if test="order == 'teamOrder'">
t1.team_order <if test="sort != null and sort != ''"><if test="sort == 'asc'">ASC</if><if test="sort == 'desc'">DESC</if></if>,
</if>
</trim>
</if>
```