Authored by wujiexiang

修改表字段名称

... ... @@ -16,6 +16,6 @@ public class SellerTask {
private long id;
private int uid;
private int type;
private String taskDesc;
private String taskMeta;
private int createTime;
}
... ...
... ... @@ -3,7 +3,7 @@
<mapper namespace="com.yohoufo.dal.order.SellerTaskMapper">
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerTask"
useGeneratedKeys="true">
insert into seller_task (uid, type, task_desc, create_time)
values (#{uid,jdbcType=INTEGER}, #{type,jdbcType=INTEGER},#{taskDesc,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER})
insert into seller_task (uid, type, task_meta, create_time)
values (#{uid,jdbcType=INTEGER}, #{type,jdbcType=INTEGER},#{taskMeta,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER})
</insert>
</mapper>
\ No newline at end of file
... ...
... ... @@ -13,15 +13,15 @@ public class SellerTaskDTO<T> {
//任务类型
private int taskType;
//任务描述,会保存,json
private String taskDesc;
private String taskMeta;
private final ISellerTaskHandler taskHandler;
private T processData;
public SellerTaskDTO(int uid, int taskType, ISellerTaskHandler taskHandler, String taskDesc, T processData) {
public SellerTaskDTO(int uid, int taskType, ISellerTaskHandler taskHandler, String taskMeta, T processData) {
this.uid = uid;
this.taskType = taskType;
this.taskHandler = taskHandler;
this.taskDesc = taskDesc;
this.taskMeta = taskMeta;
this.processData = processData;
}
... ... @@ -49,7 +49,8 @@ public class SellerTaskDTO<T> {
return taskType;
}
public String getTaskDesc() {
return taskDesc;
public String getTaskMeta() {
return taskMeta;
}
}
... ...
... ... @@ -40,7 +40,7 @@ public class SellerTaskProcessor {
SellerTask record = SellerTask.builder()
.uid(taskDto.getUid())
.type(taskDto.getTaskType())
.taskDesc(taskDto.getTaskDesc())
.taskMeta(taskDto.getTaskMeta())
.createTime(DateUtil.getCurrentTimeSecond()).build();
sellerTaskMapper.insert(record);
return record.getId();
... ...