Commit 64ae60e7 authored by chenzhao's avatar chenzhao

修改bug

parent ac568d5f
...@@ -108,7 +108,15 @@ ...@@ -108,7 +108,15 @@
</choose> </choose>
</foreach> </foreach>
</if> </if>
order by instanceId desc <if test="params.date != null and params.lift == 'descend'">
order by endDate desc
</if>
<if test="params.date != null and params.lift == 'ascend'">
order by endDate ASC
</if>
<if test="params.date == null ">
order by instanceId ASC
</if>
</select> </select>
<select id="listOneDayDutyPerson" resultType="java.util.Map"> <select id="listOneDayDutyPerson" resultType="java.util.Map">
select select
......
...@@ -140,6 +140,13 @@ public class DynamicFormInstanceServiceImpl extends BaseService<DynamicFormInsta ...@@ -140,6 +140,13 @@ public class DynamicFormInstanceServiceImpl extends BaseService<DynamicFormInsta
page.setCurrent((long) (current - 1) *size); page.setCurrent((long) (current - 1) *size);
page.setSize(size); page.setSize(size);
} }
if (!params.isEmpty()&&params !=null){
if (!params.get("sort").isEmpty() && params.get("sort") != null){
String[] sorts = params.get("sort").split(",");
params.put("date",sorts[0]);
params.put("lift",sorts[1]);
}
}
return this.getBaseMapper().pageList(page, RequestContext.getAppKey(), fieldCodes, groupCode, params); return this.getBaseMapper().pageList(page, RequestContext.getAppKey(), fieldCodes, groupCode, params);
} }
// 不存在值班数据则不查找 修改sql 方法去除 by kongfm 2021-09-14 // 不存在值班数据则不查找 修改sql 方法去除 by kongfm 2021-09-14
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment