为排序字段添加白名单验证
This commit is contained in:
@@ -276,7 +276,12 @@
|
||||
order by oper_time desc,number desc
|
||||
</if>
|
||||
<if test="column != 'createTime'">
|
||||
order by ${column} ${order}
|
||||
<if test="column == 'barCode' or column == 'operNumber' or column == 'unitPrice' or column == 'allPrice' or column == 'taxMoney'">
|
||||
order by ${column}
|
||||
<if test="order == 'asc' or order == 'desc'">
|
||||
${order}
|
||||
</if>
|
||||
</if>
|
||||
</if>
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
@@ -1425,4 +1430,4 @@
|
||||
and dh.pay_type = '预付款'
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
</select>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user