Commit 63ce004c by 谢海旭

v5.6.0版本 策略中心

1 parent 930f2221
...@@ -24,4 +24,10 @@ public class NewPadMessageBoxDTO extends PadMessageBox { ...@@ -24,4 +24,10 @@ public class NewPadMessageBoxDTO extends PadMessageBox {
@ApiModelProperty(notes = "消息详情-业务方消息详情。根据moduleType返回不同数据结构,6-学习类策略数据结构-PmbLearningTaskBaseDetailDTO,7-优秀案例分享策略数据结构,8-任务型策略数据结构-PmbEnterpriseDetailDTO") @ApiModelProperty(notes = "消息详情-业务方消息详情。根据moduleType返回不同数据结构,6-学习类策略数据结构-PmbLearningTaskBaseDetailDTO,7-优秀案例分享策略数据结构,8-任务型策略数据结构-PmbEnterpriseDetailDTO")
private Object msgDetail; private Object msgDetail;
/**
* 根据创建时间排序方式:0-顺序,1-倒序,默认1
*/
@ApiModelProperty(notes = "根据创建时间排序方式:0-顺序,1-倒序,默认1")
private Integer createdTimeSortType;
} }
...@@ -417,9 +417,15 @@ ...@@ -417,9 +417,15 @@
<if test="status != null"> <if test="status != null">
AND status = #{status,jdbcType=INTEGER} AND status = #{status,jdbcType=INTEGER}
</if> </if>
ORDER BY status ASC, created_time DESC ORDER BY status ASC
<if test="createdTimeSortType == null or createdTimeSortType == 1">
, created_time DESC
</if>
<if test="createdTimeSortType != null and createdTimeSortType == 0">
, created_time ASC
</if>
</select> </select>
<select id="listUnreadMessageCountByModuleType" parameterType="cn.com.glsx.dj.mindworkplate.dto.messagebox.ModuleUnreadQueryDTO" resultType="cn.com.glsx.dj.mindworkplate.dto.messagebox.ModuleUnreadCountDTO"> <select id="listUnreadMessageCountByModuleType" parameterType="cn.com.glsx.dj.mindworkplate.dto.messagebox.ModuleUnreadQueryDTO" resultType="cn.com.glsx.dj.mindworkplate.dto.messagebox.ModuleUnreadCountDTO">
SELECT SELECT
module_type as moduleType, module_type as moduleType,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!