From ccec9958cebd5e844e4038c105a537adbec425ac Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Thu, 15 Aug 2024 08:08:17 +0800 Subject: [PATCH] =?UTF-8?q?release:=20task=5Fpoint=E6=96=B0=E5=A2=9Eapp?= =?UTF-8?q?=E5=8A=A8=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luoo_user/src/main/java/com/luoo/user/pojo/TaskPoint.java | 3 +++ .../src/main/java/com/luoo/user/service/TaskPointService.java | 1 + luoo_user/src/main/resources/sql/20240815.sql | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 luoo_user/src/main/resources/sql/20240815.sql diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/TaskPoint.java b/luoo_user/src/main/java/com/luoo/user/pojo/TaskPoint.java index 2e1d229..207e60b 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/TaskPoint.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/TaskPoint.java @@ -81,4 +81,7 @@ public class TaskPoint implements Serializable { @ApiModelProperty("是否生效,1-生效 2-不生效") private Integer valid; + @ApiModelProperty("APP动作") + private String action; + } \ No newline at end of file diff --git a/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java b/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java index 4e7d6a1..629d826 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java @@ -98,6 +98,7 @@ public class TaskPointService { old.setScore(taskPoint.getScore()); old.setType(taskPoint.getType()); old.setUpdateUser(userLoginDto.getUserId()); + old.setAction(taskPoint.getAction()); taskPointDao.save(taskPoint); redisTemplate.delete(TASK_POINT + taskPoint.getId()); diff --git a/luoo_user/src/main/resources/sql/20240815.sql b/luoo_user/src/main/resources/sql/20240815.sql new file mode 100644 index 0000000..970a65e --- /dev/null +++ b/luoo_user/src/main/resources/sql/20240815.sql @@ -0,0 +1,3 @@ +alter table tb_task_point + add action varchar(50) null comment 'APP动作'; +