DAP中使用Mybatis, 查詢不到資料,請問是什麼問題導致的? |
|
問答
緊急程度
最佳答案以當前問題來說, 目前在application.properties, tenantEnabled為true
當tenantEnabled為true, 會將tenantColumnname所設定的值(一般是tenantsid)自動加到SQL的where條件中,
例如, select a from tableA where b = "1"會變成select a from tableA where b = "1" and tenantsid = "123456"
但你在服務的interfase又設定@AllowAnonymous(匿名呼叫)
當使用@AllowAnonymous, 平台不會驗證服務呼叫者的合法性, 也就不會將資料紀錄, 所以 ...
| |