1. 优化了查询SQL

2. 控制台调试支持选择人员
This commit is contained in:
cuibaocheng 2021-09-17 17:16:44 +08:00
parent 0cdeeb4ddf
commit 81b0cac76e
2 changed files with 6 additions and 3 deletions

View File

@ -66,6 +66,7 @@ public class WeiXinBarCodeUtils {
}
}
String param = buffer.toString();
System.out.println(param.getBytes("utf-8").length);
//POST请求
DataOutputStream out = new DataOutputStream(conn.getOutputStream());
JSONObject obj = new JSONObject();
@ -85,7 +86,7 @@ public class WeiXinBarCodeUtils {
InputStream inputStream = conn.getInputStream();
//获取自己数组
byte[] getData = readInputStream(inputStream);
System.out.println(new String(getData));
// System.out.println(new String(getData));
BufferedImage image = ImageIO.read(new ByteArrayInputStream(getData));
// 如果没有设置颜色, 原图返回
// 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"));
return image;
}

View File

@ -3,6 +3,8 @@ package cn.com.tenlion.buildingpictures.pojo.dtos.picturestemplatearea;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
*
* @ClassName: PicturesTemplateAreaBuildingDTO
@ -12,7 +14,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 1.0
**/
@ApiModel
public class PicturesTemplateAreaBuildingDTO {
public class PicturesTemplateAreaBuildingDTO implements Serializable {
@ApiModelProperty(name = "picturesTemplateAreaId", value = "主键")
private String picturesTemplateAreaId;