qrc
This commit is contained in:
parent
18dc16f4ce
commit
389305775b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user