Merge branch 'test6.8.4' of http://git.yoho.cn/ufo/yohoufo-fore into test6.8.4
Showing
4 changed files
with
10 additions
and
9 deletions
@@ -16,6 +16,6 @@ public class SellerTask { | @@ -16,6 +16,6 @@ public class SellerTask { | ||
16 | private long id; | 16 | private long id; |
17 | private int uid; | 17 | private int uid; |
18 | private int type; | 18 | private int type; |
19 | - private String taskDesc; | 19 | + private String taskMeta; |
20 | private int createTime; | 20 | private int createTime; |
21 | } | 21 | } |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <mapper namespace="com.yohoufo.dal.order.SellerTaskMapper"> | 3 | <mapper namespace="com.yohoufo.dal.order.SellerTaskMapper"> |
4 | <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerTask" | 4 | <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerTask" |
5 | useGeneratedKeys="true"> | 5 | useGeneratedKeys="true"> |
6 | - insert into seller_task (uid, type, task_desc, create_time) | ||
7 | - values (#{uid,jdbcType=INTEGER}, #{type,jdbcType=INTEGER},#{taskDesc,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER}) | 6 | + insert into seller_task (uid, type, task_meta, create_time) |
7 | + values (#{uid,jdbcType=INTEGER}, #{type,jdbcType=INTEGER},#{taskMeta,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER}) | ||
8 | </insert> | 8 | </insert> |
9 | </mapper> | 9 | </mapper> |
@@ -13,15 +13,15 @@ public class SellerTaskDTO<T> { | @@ -13,15 +13,15 @@ public class SellerTaskDTO<T> { | ||
13 | //任务类型 | 13 | //任务类型 |
14 | private int taskType; | 14 | private int taskType; |
15 | //任务描述,会保存,json | 15 | //任务描述,会保存,json |
16 | - private String taskDesc; | 16 | + private String taskMeta; |
17 | private final ISellerTaskHandler taskHandler; | 17 | private final ISellerTaskHandler taskHandler; |
18 | private T processData; | 18 | private T processData; |
19 | 19 | ||
20 | - public SellerTaskDTO(int uid, int taskType, ISellerTaskHandler taskHandler, String taskDesc, T processData) { | 20 | + public SellerTaskDTO(int uid, int taskType, ISellerTaskHandler taskHandler, String taskMeta, T processData) { |
21 | this.uid = uid; | 21 | this.uid = uid; |
22 | this.taskType = taskType; | 22 | this.taskType = taskType; |
23 | this.taskHandler = taskHandler; | 23 | this.taskHandler = taskHandler; |
24 | - this.taskDesc = taskDesc; | 24 | + this.taskMeta = taskMeta; |
25 | this.processData = processData; | 25 | this.processData = processData; |
26 | } | 26 | } |
27 | 27 | ||
@@ -49,7 +49,8 @@ public class SellerTaskDTO<T> { | @@ -49,7 +49,8 @@ public class SellerTaskDTO<T> { | ||
49 | return taskType; | 49 | return taskType; |
50 | } | 50 | } |
51 | 51 | ||
52 | - public String getTaskDesc() { | ||
53 | - return taskDesc; | 52 | + public String getTaskMeta() { |
53 | + return taskMeta; | ||
54 | } | 54 | } |
55 | } | 55 | } |
56 | + |
@@ -40,7 +40,7 @@ public class SellerTaskProcessor { | @@ -40,7 +40,7 @@ public class SellerTaskProcessor { | ||
40 | SellerTask record = SellerTask.builder() | 40 | SellerTask record = SellerTask.builder() |
41 | .uid(taskDto.getUid()) | 41 | .uid(taskDto.getUid()) |
42 | .type(taskDto.getTaskType()) | 42 | .type(taskDto.getTaskType()) |
43 | - .taskDesc(taskDto.getTaskDesc()) | 43 | + .taskMeta(taskDto.getTaskMeta()) |
44 | .createTime(DateUtil.getCurrentTimeSecond()).build(); | 44 | .createTime(DateUtil.getCurrentTimeSecond()).build(); |
45 | sellerTaskMapper.insert(record); | 45 | sellerTaskMapper.insert(record); |
46 | return record.getId(); | 46 | return record.getId(); |
-
Please register or login to post a comment