Commit 9aa6d352 authored by renjie's avatar renjie

shopCookie

parent d76aab9d
package com.edgec.browserbackend.browser.domain; package com.edgec.browserbackend.browser.domain;
import com.alibaba.fastjson.JSONObject;
import com.edgec.browserbackend.browser.dto.ShopResultDto; import com.edgec.browserbackend.browser.dto.ShopResultDto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
...@@ -34,7 +35,7 @@ public class Shop { ...@@ -34,7 +35,7 @@ public class Shop {
private String shopUA; private String shopUA;
private String shopCookie; private JSONObject shopCookie;
private long createTime; private long createTime;
...@@ -183,11 +184,11 @@ public class Shop { ...@@ -183,11 +184,11 @@ public class Shop {
this.shopPassword = shopPassword; this.shopPassword = shopPassword;
} }
public String getShopCookie() { public JSONObject getShopCookie() {
return shopCookie; return shopCookie;
} }
public void setShopCookie(String shopCookie) { public void setShopCookie(JSONObject shopCookie) {
this.shopCookie = shopCookie; this.shopCookie = shopCookie;
} }
......
package com.edgec.browserbackend.browser.dto; package com.edgec.browserbackend.browser.dto;
import com.alibaba.fastjson.JSONObject;
import com.edgec.browserbackend.browser.domain.IpResource; import com.edgec.browserbackend.browser.domain.IpResource;
import com.edgec.browserbackend.browser.domain.Shop; import com.edgec.browserbackend.browser.domain.Shop;
import com.edgec.browserbackend.browser.domain.TransferStatus; import com.edgec.browserbackend.browser.domain.TransferStatus;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.google.gson.JsonObject;
@JsonIgnoreProperties(ignoreUnknown = true) @JsonIgnoreProperties(ignoreUnknown = true)
public class ShopResultDto { public class ShopResultDto {
...@@ -28,7 +30,7 @@ public class ShopResultDto { ...@@ -28,7 +30,7 @@ public class ShopResultDto {
private String shopUA; private String shopUA;
private String shopCookie; private JSONObject shopCookie;
private IpResource bindIp; private IpResource bindIp;
...@@ -149,11 +151,11 @@ public class ShopResultDto { ...@@ -149,11 +151,11 @@ public class ShopResultDto {
this.shopUA = shopUA; this.shopUA = shopUA;
} }
public String getShopCookie() { public JSONObject getShopCookie() {
return shopCookie; return shopCookie;
} }
public void setShopCookie(String shopCookie) { public void setShopCookie(JSONObject shopCookie) {
this.shopCookie = shopCookie; this.shopCookie = shopCookie;
} }
......
...@@ -88,7 +88,7 @@ public class FileUtil { ...@@ -88,7 +88,7 @@ public class FileUtil {
//得到指定的单元格 //得到指定的单元格
Cell cell = row.getCell(0);; Cell cell = row.getCell(0);;
int size = 1; int size = 1;
for (int i = 1; i < rowLength + 2; i++) { for (int i = 0; i < rowLength; i++) {
row = sheet.getRow(i); row = sheet.getRow(i);
List<Object> rowvalue = new ArrayList<>(); List<Object> rowvalue = new ArrayList<>();
size = 0; size = 0;
...@@ -97,6 +97,7 @@ public class FileUtil { ...@@ -97,6 +97,7 @@ public class FileUtil {
// System.out.println(cell); // System.out.println(cell);
if (cell!=null) { if (cell!=null) {
Object cellValue = getCellFormatValue(cell); Object cellValue = getCellFormatValue(cell);
if (cellValue.toString().contains(""))
rowvalue.add(cellValue); rowvalue.add(cellValue);
if (StringUtils.isNotBlank(cellValue.toString())) { if (StringUtils.isNotBlank(cellValue.toString())) {
size++; size++;
......
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