Commit 929416ad authored by 马志宇's avatar 马志宇 Committed by 马志宇

bug fix


(cherry picked from commit f666495c)
parent 7306eecd
......@@ -33,27 +33,27 @@ public class ActionUrlUtil {
//打开学生交的作业详情页
public static String buildOpenWorkPage(Long id, Long programId, Long stageId, Long groupId) {
Map map = ImmutableMap.of("id", id
, "program_id", programId,
"stage_id", stageId
, "group_id", groupId);
, "program_id", programId!=null?programId:"",
"stage_id", stageId!=null?stageId:""
, "group_id", groupId!=null?groupId:0);
return buildActionUrl(JumpActionType.HOMEWORK_DETAIL_PAGE, map);
}
//打开老师布置的作业详情页
public static String buildOpenHomeWorkPage(Long id, Long programId, Long stageId, Long groupId) {
Map map = ImmutableMap.of("id", id
, "program_id", programId,
"stage_id", stageId
, "group_id", groupId);
, "program_id", programId!=null?programId:"",
"stage_id", stageId!=null?stageId:""
, "group_id", groupId!=null?groupId:0);
return buildActionUrl(JumpActionType.HOMEWORK_LIST_PAGE, map);
}
//打开答疑的详情页
public static String buildOpenConsultPage(Long id, Long programId, Long stageId, Long groupId) {
Map map = ImmutableMap.of("id", id
, "program_id", programId,
"stage_id", stageId
, "group_id", groupId);
, "program_id", programId!=null?programId:"",
"stage_id", stageId!=null?stageId:""
, "group_id", groupId!=null?groupId:0);
return buildActionUrl(JumpActionType.QUESTION_DETAIL_PAGE, map);
}
......
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