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

View File

@ -23,5 +23,5 @@ public interface CollectIconListDao {
int updateByPrimaryKey(CollectIconList record); int updateByPrimaryKey(CollectIconList record);
List<CollectIconList> selectByUrlid(int urlid); String selectByUrlid(int urlid);
} }

View File

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