This commit is contained in:
sjm committed 2023-12-27 14:28:53 +08:00
1 parent 18dc16f4ce
commit 389305775b
2 files changed
+3 -3

No files matched your search

@@ -23,5 +23,5 @@ public interface CollectIconListDao {
int updateByPrimaryKey(CollectIconList record);
List<CollectIconList> selectByUrlid(int urlid);
String selectByUrlid(int urlid);
}
@@ -27,8 +27,8 @@ public class QRCServiceImpl implements QRCService{
UrlList urlList = urlListDao.selectByPrimaryKey(Long.valueOf(collect.getUrl_id()));
String url = urlList.getUrl();
List<CollectIconList> list = collectIconListDao.selectByUrlid(collect.getUrl_id());
if (list.size() == 0 && collect.getUrl_id()!=null) {
String list = collectIconListDao.selectByUrlid(collect.getUrl_id());
if (list == null && collect.getUrl_id()!=null) {
String base64 = QRCodeUtil.ImageToBase64(QRCodeUtil.encode(url, logoPath, destPath, true));
collect.setQr_url(base64);
collectIconListDao.insert(collect);