Java多商戶在平臺編輯優惠券協議的時候報錯:"nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 3"
根據報錯可以看出這個異常表明在執行查詢時返回了3個結果,但是預期的是只返回一個結果或者返回 null,
根據這個報錯去數據庫查看數據,發現優惠券協議確實是有3條記錄,只需要刪除任意兩條數據就可以了
在eb_system_config這個表中找couponAgreement