Showing
1 changed file
with
3 additions
and
0 deletions
| @@ -98,6 +98,9 @@ | @@ -98,6 +98,9 @@ | ||
| 98 | AND c.name LIKE CONCAT('%', #{vo.customerName}, '%') | 98 | AND c.name LIKE CONCAT('%', #{vo.customerName}, '%') |
| 99 | </if> | 99 | </if> |
| 100 | </where> | 100 | </where> |
| 101 | + <if test="vo.sortField == null or vo.sortField == ''"> | ||
| 102 | + ORDER BY tb.create_time DESC | ||
| 103 | + </if> | ||
| 101 | </sql> | 104 | </sql> |
| 102 | 105 | ||
| 103 | <select id="query" resultMap="CustomerDevelopPlan"> | 106 | <select id="query" resultMap="CustomerDevelopPlan"> |