记得上下班打卡 | git大法好,push需谨慎

Commit 08650ad5 authored by sunyuntian's avatar sunyuntian

添加 customtext字段

parent 4e7bbb31
......@@ -36,6 +36,10 @@ public class SweetStrawberryParam implements Serializable {
@NotBlank(message = "cityCode不能为空")
private String cityCode;
@ApiModelProperty(position = 10, required = true, value = "customText", example = "customText")
@NotBlank(message = "customText不能为空")
private String customText;
@Valid
@ApiModelProperty(value = "阵容列表", example = "[{\"lineup\": [{\"lineupNum\": \"lineup1\", \"musicianId\": 9999, \"musicianName\": \"歌手1\"},\n" +
"{\"lineupNum\": \"lineup1\",\"musicianId\": 23233,\"musicianName\": \"歌手D\"}]},\n" +
......
......@@ -9,6 +9,7 @@ CREATE TABLE `sweet_strawberry_poster`
`nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '姓名',
`city_name` varchar(255) NOT NULL DEFAULT '' COMMENT '城市',
`city_code` varchar(255) NOT NULL DEFAULT '' COMMENT '城市code',
`custom_text` varchar(255) NOT NULL DEFAULT '' COMMENT '自定义文本',
`created_at` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`mid`),
......
......@@ -53,6 +53,7 @@ public class SweetStrawberryPosterServiceImpl extends ServiceImpl<SweetStrawberr
String nickname=sweetStrawberry.getNickname();
String cityCode=sweetStrawberry.getCityCode();
String cityName=sweetStrawberry.getCityName();
String customText = sweetStrawberry.getCustomText();
List<SweetStrawListParam> musicianList = sweetStrawberry.getMusicianList();
for (SweetStrawListParam sweetStrawListParam : musicianList) {
List<SweetStrawMusicianParam> lineup = sweetStrawListParam.getLineup();
......@@ -73,7 +74,7 @@ public class SweetStrawberryPosterServiceImpl extends ServiceImpl<SweetStrawberr
LinkedList<String> sqls = CollectionUtil.linkedListString();
LinkedList<Object[]> sqlsDataA = CollectionUtil.linkedListObjectArr();
sqls.add(SqlMapping.get("sweet_strawberry_poster_user"));
sqlsDataA.add(new Object[]{openId,posterId,unionId,nickname,cityName,cityCode,localDateTime,null});
sqlsDataA.add(new Object[]{openId,posterId,unionId,nickname,cityName,cityCode,customText,localDateTime,null});
queueUtils.sendMsgByRedis(MQConst.SweetQueue.SWEET_POSTER.getKey(),
SqlMapping.gets(sqls, sqlsDataA));
......
......@@ -55,5 +55,5 @@ sweet_wechat_users.insert=INSERT INTO sweet_wechat_users (wechat_user_id,type,op
sweet_wechat_users.delete=DELETE FROM sweet_wechat_users WHERE union_id = ? and type = ?
#---------------------------音乐节活动海报--------------------------------
sweet_strawberry_poster_user=INSERT INTO sweet_strawberry_poster(open_id,poster_id,union_id,nickname,city_name,city_code,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?)
sweet_strawberry_poster_user=INSERT INTO sweet_strawberry_poster(open_id,poster_id,union_id,nickname,city_name,city_code,custom_text,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?,?)
sweet_strawberry_poster_Musician=INSERT INTO sweet_strawberry_poster_lineup(lineup_id,poster_id,lineup_num,musician_id,musician_name,created_at,updated_at) VALUES (?,?,?,?,?,?,?)
\ No newline at end of file
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