Commit ea495937 by 陶光胜

init

parent bcd6200d
......@@ -21,6 +21,7 @@ import com.google.zxing.EncodeHintType;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitMatrix;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
......@@ -87,6 +88,9 @@ public abstract class QrcodeDownload {
int pages = total%pageSize > 0 ? total/pageSize+1 : total/pageSize;
for(int i = 1; i<= pages; i++){
List<QrcodeContent> contentList = getContent(pageSize);
if(CollectionUtils.isEmpty(contentList)){
break;
}
for(QrcodeContent content : contentList){
QrcodeDTO dto = EntityUtil.changeEntityByJSON(QrcodeDTO.class, qrcodeQO);
dto.setEnterpriseId(userDetail.getEnterpriseId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment