精度丢失问题
This commit is contained in:
parent
b29d195664
commit
0eaa579b98
|
|
@ -1,6 +1,8 @@
|
||||||
package com.sqx.modules.app.entity;
|
package com.sqx.modules.app.entity;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
@ -17,12 +19,14 @@ public class UserInfo implements Serializable {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@TableId(type = IdType.ID_WORKER)
|
@TableId(type = IdType.ID_WORKER)
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户id
|
* 用户id
|
||||||
*/
|
*/
|
||||||
@TableField(updateStrategy = FieldStrategy.NEVER)
|
@TableField(updateStrategy = FieldStrategy.NEVER)
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -203,6 +203,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, Course> implements
|
||||||
m.put("courseDetailsName", "");
|
m.put("courseDetailsName", "");
|
||||||
m.put("dyEpisodeId", "");
|
m.put("dyEpisodeId", "");
|
||||||
m.put("wxCourseDetailsId", "");
|
m.put("wxCourseDetailsId", "");
|
||||||
|
m.put("courseId", m.get("courseId").toString());
|
||||||
}
|
}
|
||||||
PageUtils pageUtils = PageUtils.page(pageInfo);
|
PageUtils pageUtils = PageUtils.page(pageInfo);
|
||||||
setCache(cacheKey, JSONUtil.toJsonStr(pageUtils));
|
setCache(cacheKey, JSONUtil.toJsonStr(pageUtils));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue