fix: 修复关键BUG - SQL注入+移动端修复
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
WHERE patient_id = #{patientId}
|
||||
AND delete_flag = '0'
|
||||
<if test="days != null">
|
||||
AND record_time >= CURRENT_TIMESTAMP - INTERVAL '${days} days'
|
||||
AND record_time >= CURRENT_TIMESTAMP - INTERVAL CONCAT(#{days}, ' days')
|
||||
</if>
|
||||
ORDER BY record_time DESC
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user