1. 优化了查询SQL
2. 控制台调试支持选择人员
This commit is contained in:
parent
0cdeeb4ddf
commit
81b0cac76e
@ -66,6 +66,7 @@ public class WeiXinBarCodeUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
String param = buffer.toString();
|
String param = buffer.toString();
|
||||||
|
System.out.println(param.getBytes("utf-8").length);
|
||||||
//POST请求
|
//POST请求
|
||||||
DataOutputStream out = new DataOutputStream(conn.getOutputStream());
|
DataOutputStream out = new DataOutputStream(conn.getOutputStream());
|
||||||
JSONObject obj = new JSONObject();
|
JSONObject obj = new JSONObject();
|
||||||
@ -85,7 +86,7 @@ public class WeiXinBarCodeUtils {
|
|||||||
InputStream inputStream = conn.getInputStream();
|
InputStream inputStream = conn.getInputStream();
|
||||||
//获取自己数组
|
//获取自己数组
|
||||||
byte[] getData = readInputStream(inputStream);
|
byte[] getData = readInputStream(inputStream);
|
||||||
System.out.println(new String(getData));
|
// System.out.println(new String(getData));
|
||||||
BufferedImage image = ImageIO.read(new ByteArrayInputStream(getData));
|
BufferedImage image = ImageIO.read(new ByteArrayInputStream(getData));
|
||||||
// 如果没有设置颜色, 原图返回
|
// 如果没有设置颜色, 原图返回
|
||||||
// if(colorR == 0 && colorG == 0 && colorB == 0) {
|
// if(colorR == 0 && colorG == 0 && colorB == 0) {
|
||||||
@ -139,7 +140,7 @@ public class WeiXinBarCodeUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
//ImageIO.write(image, "jpg", new File("D:\\TEST1.jpg"));
|
ImageIO.write(image, "jpg", new File("D:\\TEST1.jpg"));
|
||||||
//ImageIO.write(weiXinImage, "jpg", new File("D:\\TEST2.jpg"));
|
//ImageIO.write(weiXinImage, "jpg", new File("D:\\TEST2.jpg"));
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,8 @@ package cn.com.tenlion.buildingpictures.pojo.dtos.picturestemplatearea;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @ClassName: PicturesTemplateAreaBuildingDTO
|
* @ClassName: PicturesTemplateAreaBuildingDTO
|
||||||
@ -12,7 +14,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
* @Version: 1.0
|
* @Version: 1.0
|
||||||
**/
|
**/
|
||||||
@ApiModel
|
@ApiModel
|
||||||
public class PicturesTemplateAreaBuildingDTO {
|
public class PicturesTemplateAreaBuildingDTO implements Serializable {
|
||||||
|
|
||||||
@ApiModelProperty(name = "picturesTemplateAreaId", value = "主键")
|
@ApiModelProperty(name = "picturesTemplateAreaId", value = "主键")
|
||||||
private String picturesTemplateAreaId;
|
private String picturesTemplateAreaId;
|
||||||
|
Loading…
Reference in New Issue
Block a user