新增:VIP卡的上架下架功能、及是否有效属性

This commit is contained in:
2025-04-21 21:49:42 +08:00
parent 383b284c79
commit e2d518d26d
7 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ public class MyQrCodeUtil {
// 保存路径 // 保存路径
// String filePath = "/Users/gxwebsoft/Documents/uploads/" + "file/qrcode/" + userId + ".jpg"; // String filePath = "/Users/gxwebsoft/Documents/uploads/" + "file/qrcode/" + userId + ".jpg";
String filePath = "/www/wwwroot/file.ws/" + "file/qrcode/" + userId + ".jpg"; String filePath = "/www/wwwroot/file.ws/" + "file/qrcode/" + userId + ".jpg";
String qrcodeUrl = "https://file.gxwebsoft.com/qrcode/" + userId + ".jpg" + "?v=" + DateUtil.current(); String qrcodeUrl = "https://file.websoft.top/qrcode/" + userId + ".jpg" + "?v=" + DateUtil.current();
// 生成二维码 // 生成二维码
System.out.println("config = " + config); System.out.println("config = " + config);
System.out.println("con = " + content); System.out.println("con = " + content);
@@ -61,7 +61,7 @@ public class MyQrCodeUtil {
*/ */
public static String createQrCode(String type,Integer id, String content) throws IOException { public static String createQrCode(String type,Integer id, String content) throws IOException {
String filePath = "/www/wwwroot/file.ws/file/qrcode/".concat(type).concat("/"); String filePath = "/www/wwwroot/file.ws/file/qrcode/".concat(type).concat("/");
String qrcodeUrl = "https://file.gxwebsoft.com/qrcode/".concat(type).concat("/"); String qrcodeUrl = "https://file.websoft.top/qrcode/".concat(type).concat("/");
// 将URL转为BufferedImage // 将URL转为BufferedImage
BufferedImage bufferedImage = ImageIO.read(new URL(logoUrl)); BufferedImage bufferedImage = ImageIO.read(new URL(logoUrl));
// 生成二维码 // 生成二维码
@@ -140,4 +140,4 @@ public class SchedulingController extends BaseController {
} }
} }
} }
@@ -97,6 +97,9 @@ public class ThinkVip implements Serializable {
@ApiModelProperty(value = "是否有效:1是,0否") @ApiModelProperty(value = "是否有效:1是,0否")
private Integer isUse; private Integer isUse;
@ApiModelProperty(value = "是否销售:1是,0否")
private Integer isSale;
@ApiModelProperty(value = "可用场馆") @ApiModelProperty(value = "可用场馆")
@TableField(exist = false) @TableField(exist = false)
private String siteNames; private String siteNames;
@@ -77,6 +77,9 @@
<if test="param.isUse != null"> <if test="param.isUse != null">
AND a.is_use = #{param.isUse} AND a.is_use = #{param.isUse}
</if> </if>
<if test="param.isSale != null">
AND a.is_sale = #{param.isSale}
</if>
<if test="param.keywords != null"> <if test="param.keywords != null">
AND (a.name LIKE CONCAT('%', #{param.keywords}, '%') AND (a.name LIKE CONCAT('%', #{param.keywords}, '%')
) )
@@ -97,4 +97,8 @@ public class ThinkVipParam extends BaseParam {
@QueryField(type = QueryType.EQ) @QueryField(type = QueryType.EQ)
private Integer isUse; private Integer isUse;
@ApiModelProperty(value = "是否销售:1是,0否")
@QueryField(type = QueryType.EQ)
private Integer isSale;
} }
+2 -2
View File
@@ -90,9 +90,9 @@ config:
swagger-version: 1.0 swagger-version: 1.0
token-key: WLgNsWJ8rPjRtnjzX/Gx2RGS80Kwnm/ZeLbvIL+NrBs= token-key: WLgNsWJ8rPjRtnjzX/Gx2RGS80Kwnm/ZeLbvIL+NrBs=
# 主服务器 # 主服务器
server-url: https://server.gxwebsoft.com/api server-url: https://server.websoft.top/api
# 文件服务器 # 文件服务器
file-server: https://file.gxwebsoft.com file-server: https://file.websoft.top
upload-path: /Users/gxwebsoft/Documents/uploads/ upload-path: /Users/gxwebsoft/Documents/uploads/
local-upload-path: /Users/gxwebsoft/Documents/uploads/ local-upload-path: /Users/gxwebsoft/Documents/uploads/