我的未知錯誤:數(shù)據(jù)庫設計的時候沒有為third_party設置默認值,導致insertSelective插入出錯,設置默認值就好了
2021-06-16
最贊回答 / ahuwhq
已解決:下單未成功斷點調試發(fā)現(xiàn)主要是itemId為null,注意去看
decreaseStock的SQL語句 &??supdate?id="decreaseStock"&??w ??update?item_stock ??set?stock?=?stock-#{amount} ??where?item_id?=?#{itemId}?and?stock&ck&=...
2021-05-27
當年齡超過150歲時出現(xiàn)空指針異常
目前的解決方法是新建一個map,能正確返回錯誤信息
Map<String, String> errorMsgMap = new HashMap<>();
result.setErrorMsgMap(errorMsgMap);
目前的解決方法是新建一個map,能正確返回錯誤信息
Map<String, String> errorMsgMap = new HashMap<>();
result.setErrorMsgMap(errorMsgMap);
2021-05-27
最贊回答 / ahuwhq
已解決,這是因為我在創(chuàng)建ItemVO的時候沒有將get ,set方法實現(xiàn)先,使用Alt+insert創(chuàng)建一下就可以了。<...圖片...>
2021-05-26