Commit 2971506b by kenzo

add dockerfile

parent 00740dab
...@@ -14,9 +14,6 @@ import com.cnooc.expert.controller.expert.model.request.ExamRecordSaveReq; ...@@ -14,9 +14,6 @@ import com.cnooc.expert.controller.expert.model.request.ExamRecordSaveReq;
import com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq; import com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq;
import com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaApplyReq; import com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaApplyReq;
import com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaPageReq; import com.cnooc.expert.controller.expert.model.request.GeRenXiuJiaPageReq;
import com.cnooc.expert.controller.expert.model.request.KaoShiPageReq;
import com.cnooc.expert.controller.expert.model.request.PeiXunKeChengKeJieFuJianListReq;
import com.cnooc.expert.controller.expert.model.request.PeiXunKeChengKeJieGetReq;
import com.cnooc.expert.controller.expert.model.request.PingBiaoXiangMuByOwnerPageReq; import com.cnooc.expert.controller.expert.model.request.PingBiaoXiangMuByOwnerPageReq;
import com.cnooc.expert.controller.expert.model.request.PingBiaoXiangMuInfoGetByChouQuMaReq; import com.cnooc.expert.controller.expert.model.request.PingBiaoXiangMuInfoGetByChouQuMaReq;
import com.cnooc.expert.controller.expert.model.request.QingJiaJinJiApplyReq; import com.cnooc.expert.controller.expert.model.request.QingJiaJinJiApplyReq;
...@@ -30,11 +27,9 @@ import com.cnooc.expert.controller.expert.model.request.WeiGuiGetReq; ...@@ -30,11 +27,9 @@ import com.cnooc.expert.controller.expert.model.request.WeiGuiGetReq;
import com.cnooc.expert.controller.expert.model.request.WeiGuiJiLuPageReq; import com.cnooc.expert.controller.expert.model.request.WeiGuiJiLuPageReq;
import com.cnooc.expert.controller.expert.model.request.ZhuanJiaShenQingJiLuPageReq; import com.cnooc.expert.controller.expert.model.request.ZhuanJiaShenQingJiLuPageReq;
import com.cnooc.expert.controller.expert.model.response.ApproveBusinessIdGetResp; import com.cnooc.expert.controller.expert.model.response.ApproveBusinessIdGetResp;
import com.cnooc.expert.controller.expert.model.response.KaoShiPageResp;
import com.cnooc.expert.controller.expert.model.response.PeiXunKeChengKeJieFuJianListResp;
import com.cnooc.expert.controller.expert.model.response.PeiXunKeChengKeJieGetResp;
import com.cnooc.expert.controller.expert.model.response.PingBiaoZhuanYeTreeNodeResp; import com.cnooc.expert.controller.expert.model.response.PingBiaoZhuanYeTreeNodeResp;
import com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp; import com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp;
import com.cnooc.expert.external.expert.model.request.ExamPaperSubmitApiReq;
import com.cnooc.expert.external.expert.model.request.TainLessonProgressUpdateApiReq; import com.cnooc.expert.external.expert.model.request.TainLessonProgressUpdateApiReq;
import com.cnooc.expert.external.expert.model.response.CityTreeApiResp; import com.cnooc.expert.external.expert.model.response.CityTreeApiResp;
import com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp; import com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp;
...@@ -43,6 +38,7 @@ import com.cnooc.expert.external.expert.model.response.CommonNofilterEnumGetApiR ...@@ -43,6 +38,7 @@ import com.cnooc.expert.external.expert.model.response.CommonNofilterEnumGetApiR
import com.cnooc.expert.external.expert.model.response.DictByParentListApiResp; import com.cnooc.expert.external.expert.model.response.DictByParentListApiResp;
import com.cnooc.expert.external.expert.model.response.DongJieGetApiResp; import com.cnooc.expert.external.expert.model.response.DongJieGetApiResp;
import com.cnooc.expert.external.expert.model.response.DongJieZhuanYePageApiResp; import com.cnooc.expert.external.expert.model.response.DongJieZhuanYePageApiResp;
import com.cnooc.expert.external.expert.model.response.ExamPaperSubmitApiResp;
import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp; import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp;
import com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp; import com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp;
import com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp; import com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp;
...@@ -311,12 +307,6 @@ public class ExpertController extends AbstractBaseController { ...@@ -311,12 +307,6 @@ public class ExpertController extends AbstractBaseController {
return ApiResult.successWithResult(apiResp); return ApiResult.successWithResult(apiResp);
} }
// 课后考试列表查询
@PostMapping("/kaoShi/getKaoShiPage")
public ApiResult<BasePageResp<KaoShiPageResp>> getKaoShiPage(@RequestBody @Validated KaoShiPageReq req) {
return ApiResult.successWithResult(expertService.pageKaoShi(req));
}
// 考试分页 // 考试分页
@PostMapping("/train/exam/page") @PostMapping("/train/exam/page")
public ApiResult<BasePageResp<TrainExamPageApiResp>> trainExamPage(@RequestBody @Validated TrainExamPageReq req) { public ApiResult<BasePageResp<TrainExamPageApiResp>> trainExamPage(@RequestBody @Validated TrainExamPageReq req) {
...@@ -358,18 +348,10 @@ public class ExpertController extends AbstractBaseController { ...@@ -358,18 +348,10 @@ public class ExpertController extends AbstractBaseController {
return ApiResult.successWithResult(apiResp); return ApiResult.successWithResult(apiResp);
} }
// 提交试卷
// 课程详情 课节 详情 @PostMapping("/train/exam/question/paperr/submit")
@PostMapping("/peiXun/kecheng/kejie/detail/get") public ApiResult<ExamPaperSubmitApiResp> examQuestionPaperSubmit(@RequestBody @Validated ExamPaperSubmitApiReq req) {
public ApiResult<PeiXunKeChengKeJieGetResp> getPeiXunKeChengKeJie(@RequestBody @Validated PeiXunKeChengKeJieGetReq req) { ExamPaperSubmitApiResp apiResp = expertService.submitExamPaper(req);
return ApiResult.successWithResult(expertService.getPeiXunKeChengKeJie(req)); return ApiResult.successWithResult(apiResp);
}
// 课程详情 课节 附件 列表
@PostMapping("/peiXun/kecheng/kejie/fujian/list")
public ApiResult<List<PeiXunKeChengKeJieFuJianListResp>> listPeiXunKeChengKeJieFuJian(@RequestBody @Validated PeiXunKeChengKeJieFuJianListReq req) {
return ApiResult.successWithResult(expertService.listPeiXunKeChengKeJieFuJian(req));
} }
} }
...@@ -35,6 +35,7 @@ import com.cnooc.expert.controller.expert.model.response.CityTreeNodeResp; ...@@ -35,6 +35,7 @@ import com.cnooc.expert.controller.expert.model.response.CityTreeNodeResp;
import com.cnooc.expert.controller.expert.model.response.DictListItemResp; import com.cnooc.expert.controller.expert.model.response.DictListItemResp;
import com.cnooc.expert.controller.expert.model.response.DongJieGetResp; import com.cnooc.expert.controller.expert.model.response.DongJieGetResp;
import com.cnooc.expert.controller.expert.model.response.DongJiePageResp; import com.cnooc.expert.controller.expert.model.response.DongJiePageResp;
import com.cnooc.expert.controller.expert.model.response.ExamPaperSubmitResp;
import com.cnooc.expert.controller.expert.model.response.ExamQuestionListResp; import com.cnooc.expert.controller.expert.model.response.ExamQuestionListResp;
import com.cnooc.expert.controller.expert.model.response.ExamQuestionXiaoTiListResp; import com.cnooc.expert.controller.expert.model.response.ExamQuestionXiaoTiListResp;
import com.cnooc.expert.controller.expert.model.response.ExamRecordSaveResp; import com.cnooc.expert.controller.expert.model.response.ExamRecordSaveResp;
...@@ -55,8 +56,10 @@ import com.cnooc.expert.controller.expert.model.response.TempExamPaperGetResp; ...@@ -55,8 +56,10 @@ import com.cnooc.expert.controller.expert.model.response.TempExamPaperGetResp;
import com.cnooc.expert.controller.expert.model.response.WeiGuiGetResp; import com.cnooc.expert.controller.expert.model.response.WeiGuiGetResp;
import com.cnooc.expert.controller.expert.model.response.WeiGuiPageResp; import com.cnooc.expert.controller.expert.model.response.WeiGuiPageResp;
import com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp; import com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp;
import com.cnooc.expert.external.expert.model.request.ExamPaperSubmitApiReq;
import com.cnooc.expert.external.expert.model.request.TainLessonProgressUpdateApiReq; import com.cnooc.expert.external.expert.model.request.TainLessonProgressUpdateApiReq;
import com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp; import com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp;
import com.cnooc.expert.external.expert.model.response.ExamPaperSubmitApiResp;
import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp; import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp;
import com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp; import com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp;
import com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp; import com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp;
...@@ -430,5 +433,10 @@ public class ExpertMockController extends AbstractBaseController { ...@@ -430,5 +433,10 @@ public class ExpertMockController extends AbstractBaseController {
return ApiResult.successWithResult(expertMockService.pageKaoShi(req)); return ApiResult.successWithResult(expertMockService.pageKaoShi(req));
} }
// 提交试卷
@PostMapping("/train/exam/question/paperr/submit")
public ApiResult<ExamPaperSubmitResp> examQuestionPaperSubmit(@RequestBody @Validated ExamPaperSubmitApiReq req) {
ExamPaperSubmitResp apiResp = expertMockService.submitExamPaper(req);
return ApiResult.successWithResult(apiResp);
}
} }
package com.cnooc.expert.controller.expert.model.response;
import lombok.Builder;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
@Data
@Builder
public class ExamPaperSubmitResp {
private List<ShiTiManagerXiaoTi> shiTiError;
private BigDecimal totalScore;
@Data
@Builder
public static class ShiTiManagerXiaoTi {
private String shiTiManagerXiaoTiGuid;//主键
private String xiaoTiName;//小题题目名称
private Long createTime;//创建时间
private String creatorGuid;//创建人Guid
private String creatorName;//创建人名称
private Long modifyTime;//修改时间
private String modifierGuid;//修改人Guid
private String modifierName;//修改人名称
private Boolean isDeleted;//是否删除
private String shiTiManagerDaTiGuid;//题目所属大题的Guid
private List<ShiTiManagerDaAn> daAnList;//小题对应的答案集合(oneToMany)
private BigDecimal xiaoTiScore;//小题分值
private String remark;//备注
private ShiTiManagerDaTi daTi;//小题所属的大题(ManyToOne)
private String userDaAnGuid;//专家考试时选中的答案Guid。 瞬时变量
}
@Data
@Builder
public static class ShiTiManagerDaAn {
private String shiTiManagerDaAnGuid;//主键
private String daAnName;//答案名称
private String isDaAn;//easyui BUG 须用字符串
private Long createTime;
private String creatorGuid;
private String creatorName;
private Long modifyTime;
private String modifierGuid;
private String modifierName;
private String shiTiManagerXiaoTiGuid;//答案对应的题目Guid
private Integer sort; //排序
}
@Data
@Builder
public static class ShiTiManagerDaTi {
private String shiTiManagerDaTiGuid;//主键
private String daTiName;//大题名称
private BigDecimal xiaoTiScore;//大题下面每个小题的分数
private Integer tiMuType;//题目类型 对应枚举TiMuType
private String tiMuTypeText;
private String remark;//备注
private Long createTime;
private String creatorGuid;
private String creatorName;
private Long modifyTime;
private String modifierGuid;
private String modifierName;
private BigDecimal daTiScore;//大题总分值
}
}
...@@ -17,6 +17,8 @@ public abstract class AbstractRetrofitManager { ...@@ -17,6 +17,8 @@ public abstract class AbstractRetrofitManager {
protected final ObjectMapper objectMapper; protected final ObjectMapper objectMapper;
private static final String ACCESS_KEY = "YsyhlUtP";
public AbstractRetrofitManager() { public AbstractRetrofitManager() {
objectMapper = new ObjectMapper(); objectMapper = new ObjectMapper();
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
...@@ -47,7 +49,7 @@ public abstract class AbstractRetrofitManager { ...@@ -47,7 +49,7 @@ public abstract class AbstractRetrofitManager {
protected Map<String, Object> getHeaders() { protected Map<String, Object> getHeaders() {
Map<String, Object> headers = Maps.newHashMap(); Map<String, Object> headers = Maps.newHashMap();
headers.put("key", "XXXXX"); headers.put("Access_Key", ACCESS_KEY);
return headers; return headers;
} }
......
package com.cnooc.expert.external.expert.api; package com.cnooc.expert.external.expert.api;
import com.cnooc.expert.external.expert.model.request.ExamQuestionXiaoTiListApiReq;
import com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq; import com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq;
import com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp;
import com.cnooc.expert.external.common.model.response.ApiBasePageResp; import com.cnooc.expert.external.common.model.response.ApiBasePageResp;
import com.cnooc.expert.external.common.model.response.ApiBaseResult; import com.cnooc.expert.external.common.model.response.ApiBaseResult;
import com.cnooc.expert.external.expert.model.request.CityTreeApiReq; import com.cnooc.expert.external.expert.model.request.CityTreeApiReq;
...@@ -12,7 +10,9 @@ import com.cnooc.expert.external.expert.model.request.CommonNofilterEnumGetApiRe ...@@ -12,7 +10,9 @@ import com.cnooc.expert.external.expert.model.request.CommonNofilterEnumGetApiRe
import com.cnooc.expert.external.expert.model.request.DictByParentListApiReq; import com.cnooc.expert.external.expert.model.request.DictByParentListApiReq;
import com.cnooc.expert.external.expert.model.request.DongJieGetApiReq; import com.cnooc.expert.external.expert.model.request.DongJieGetApiReq;
import com.cnooc.expert.external.expert.model.request.DongJieZhuanYePageApiReq; import com.cnooc.expert.external.expert.model.request.DongJieZhuanYePageApiReq;
import com.cnooc.expert.external.expert.model.request.ExamPaperSubmitApiReq;
import com.cnooc.expert.external.expert.model.request.ExamQuestionListApiReq; import com.cnooc.expert.external.expert.model.request.ExamQuestionListApiReq;
import com.cnooc.expert.external.expert.model.request.ExamQuestionXiaoTiListApiReq;
import com.cnooc.expert.external.expert.model.request.ExamRecordSaveApiReq; import com.cnooc.expert.external.expert.model.request.ExamRecordSaveApiReq;
import com.cnooc.expert.external.expert.model.request.ExpertInfoGetApiReq; import com.cnooc.expert.external.expert.model.request.ExpertInfoGetApiReq;
import com.cnooc.expert.external.expert.model.request.GeRenXiuJiaApplyApiReq; import com.cnooc.expert.external.expert.model.request.GeRenXiuJiaApplyApiReq;
...@@ -36,7 +36,9 @@ import com.cnooc.expert.external.expert.model.response.CommonNofilterEnumGetApiR ...@@ -36,7 +36,9 @@ import com.cnooc.expert.external.expert.model.response.CommonNofilterEnumGetApiR
import com.cnooc.expert.external.expert.model.response.DictByParentListApiResp; import com.cnooc.expert.external.expert.model.response.DictByParentListApiResp;
import com.cnooc.expert.external.expert.model.response.DongJieGetApiResp; import com.cnooc.expert.external.expert.model.response.DongJieGetApiResp;
import com.cnooc.expert.external.expert.model.response.DongJieZhuanYePageApiResp; import com.cnooc.expert.external.expert.model.response.DongJieZhuanYePageApiResp;
import com.cnooc.expert.external.expert.model.response.ExamPaperSubmitApiResp;
import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp; import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp;
import com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp;
import com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp; import com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp;
import com.cnooc.expert.external.expert.model.response.ExpertInfoGetApiResp; import com.cnooc.expert.external.expert.model.response.ExpertInfoGetApiResp;
import com.cnooc.expert.external.expert.model.response.GeRenXiuJiaApplyApiResp; import com.cnooc.expert.external.expert.model.response.GeRenXiuJiaApplyApiResp;
...@@ -187,4 +189,6 @@ public interface ExpertServiceApi { ...@@ -187,4 +189,6 @@ public interface ExpertServiceApi {
@POST("/api/saas-expert/mini/zjfw/PXXX/queryXiaoTiList") @POST("/api/saas-expert/mini/zjfw/PXXX/queryXiaoTiList")
Call<ApiBaseResult<List<ExamQuestionXiaoTiListApiResp>>> listExamQuestionXiaoTiApi(@HeaderMap Map<String, Object> headers, @Body ExamQuestionXiaoTiListApiReq req); Call<ApiBaseResult<List<ExamQuestionXiaoTiListApiResp>>> listExamQuestionXiaoTiApi(@HeaderMap Map<String, Object> headers, @Body ExamQuestionXiaoTiListApiReq req);
@POST("/api/saas-expert/mini/train/exam/submitExamResult")
Call<ApiBaseResult<ExamPaperSubmitApiResp>> submitExamPaperApi(@HeaderMap Map<String, Object> headers, @Body ExamPaperSubmitApiReq req);
} }
...@@ -13,15 +13,15 @@ import java.util.Map; ...@@ -13,15 +13,15 @@ import java.util.Map;
public interface LoginServiceApi { public interface LoginServiceApi {
@POST("/zjfw/zggrxxgl/querySingleByShengFenZhengOrMobile") @POST("/api/saas-expert/mini/zjfw/zggrxxgl/querySingleByShengFenZhengOrMobile")
Call<ExpertInfoResp> querySingleByShengFenZhengOrMobile(@HeaderMap Map<String, Object> headers, @Body ExpertInfoReq expertInfoReq); Call<ExpertInfoResp> querySingleByShengFenZhengOrMobile(@HeaderMap Map<String, Object> headers, @Body ExpertInfoReq expertInfoReq);
@POST("/zjfw/zggrxxgl/getZhuanJiaInfoAppById") @POST("/api/saas-expert/mini/zjfw/zggrxxgl/getZhuanJiaInfoAppById")
Call<ExpertInfoAppResp> getZhuanJiaInfoAppById(@HeaderMap Map<String, Object> headers, @Body ExpertInfoAppReq expertInfoAppReq); Call<ExpertInfoAppResp> getZhuanJiaInfoAppById(@HeaderMap Map<String, Object> headers, @Body ExpertInfoAppReq expertInfoAppReq);
@POST("/zjfw/zggrxxgl/saveZhuanJiaInfoApp") @POST("/api/saas-expert/mini/zjfw/zggrxxgl/saveZhuanJiaInfoApp")
Call<ExpertInfoAppResp> saveZhuanJiaInfoApp(@HeaderMap Map<String, Object> headers, @Body ExpertInfoAppReq expertInfoAppReq); Call<ExpertInfoAppResp> saveZhuanJiaInfoApp(@HeaderMap Map<String, Object> headers, @Body ExpertInfoAppReq expertInfoAppReq);
@POST("/zjfw/zggrxxgl/updateZhuanJiaInfoApp") @POST("/api/saas-expert/mini/zjfw/zggrxxgl/updateZhuanJiaInfoApp")
Call<ExpertInfoAppResp> updateZhuanJiaInfoApp(@HeaderMap Map<String, Object> headers, @Body ExpertInfoAppReq expertInfoAppReq); Call<ExpertInfoAppResp> updateZhuanJiaInfoApp(@HeaderMap Map<String, Object> headers, @Body ExpertInfoAppReq expertInfoAppReq);
} }
package com.cnooc.expert.external.expert.model.request;
import lombok.Data;
import java.util.List;
@Data
public class ExamPaperSubmitApiReq {
// 考试记录guid
private String kaoShiJiLuGuid;
// 试题考试答案列表
private List<ExamDaAn> list;
// 试卷Guid
private String shiJuanGuid;
// 专家guid
private String zhuanJiaGuid;
@Data
public static class ExamDaAn {
// 试题考试答案Guid
private String shiTiExamDaAnGuid;
// 专家选择的答案
private String shiTiManagerDaAnGuid;
// 答案对应的题目
private String shiTiManagerXiaoTiGuid;
// 试卷guid
private String shiJuanGuid;
}
}
package com.cnooc.expert.external.expert.model.response;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
@Data
public class ExamPaperSubmitApiResp {
private List<ShiTiManagerXiaoTi> shiTiError;
private BigDecimal totalScore;
@Data
public static class ShiTiManagerXiaoTi {
private String shiTiManagerXiaoTiGuid;//主键
private String xiaoTiName;//小题题目名称
private Long createTime;//创建时间
private String creatorGuid;//创建人Guid
private String creatorName;//创建人名称
private Long modifyTime;//修改时间
private String modifierGuid;//修改人Guid
private String modifierName;//修改人名称
private String shiTiManagerDaTiGuid;//题目所属大题的Guid
private List<ShiTiManagerDaAn> daAnList;//小题对应的答案集合(oneToMany)
private BigDecimal xiaoTiScore;//小题分值
private String remark;//备注
private ShiTiManagerDaTi daTi;//小题所属的大题(ManyToOne)
private String userDaAnGuid;//专家考试时选中的答案Guid。 瞬时变量
}
public static class ShiTiManagerDaAn {
private String shiTiManagerDaAnGuid;//主键
private String daAnName;//答案名称
private String isDaAn;//easyui BUG 须用字符串
private Long createTime;
private String creatorGuid;
private String creatorName;
private Long modifyTime;
private String modifierGuid;
private String modifierName;
private String shiTiManagerXiaoTiGuid;//答案对应的题目Guid
private Integer sort; //排序
}
@Data
public static class ShiTiManagerDaTi {
private String shiTiManagerDaTiGuid;//主键
private String daTiName;//大题名称
private BigDecimal xiaoTiScore;//大题下面每个小题的分数
private Integer tiMuType;//题目类型 对应枚举TiMuType
private String tiMuTypeText;
private String remark;//备注
private Long createTime;
private String creatorGuid;
private String creatorName;
private Long modifyTime;
private String modifierGuid;
private String modifierName;
private BigDecimal daTiScore;//大题总分值
}
}
package com.cnooc.expert.external.expert.service; package com.cnooc.expert.external.expert.service;
import com.cnooc.expert.external.expert.model.request.ExamQuestionXiaoTiListApiReq;
import com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq; import com.cnooc.expert.controller.expert.model.request.ExpertInfoUpdateApiReq;
import com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp;
import com.cnooc.expert.external.common.AbstractRetrofitManager; import com.cnooc.expert.external.common.AbstractRetrofitManager;
import com.cnooc.expert.external.common.model.response.ApiBasePageResp; import com.cnooc.expert.external.common.model.response.ApiBasePageResp;
import com.cnooc.expert.external.common.model.response.ApiBaseResult; import com.cnooc.expert.external.common.model.response.ApiBaseResult;
...@@ -14,7 +12,9 @@ import com.cnooc.expert.external.expert.model.request.CommonNofilterEnumGetApiRe ...@@ -14,7 +12,9 @@ import com.cnooc.expert.external.expert.model.request.CommonNofilterEnumGetApiRe
import com.cnooc.expert.external.expert.model.request.DictByParentListApiReq; import com.cnooc.expert.external.expert.model.request.DictByParentListApiReq;
import com.cnooc.expert.external.expert.model.request.DongJieGetApiReq; import com.cnooc.expert.external.expert.model.request.DongJieGetApiReq;
import com.cnooc.expert.external.expert.model.request.DongJieZhuanYePageApiReq; import com.cnooc.expert.external.expert.model.request.DongJieZhuanYePageApiReq;
import com.cnooc.expert.external.expert.model.request.ExamPaperSubmitApiReq;
import com.cnooc.expert.external.expert.model.request.ExamQuestionListApiReq; import com.cnooc.expert.external.expert.model.request.ExamQuestionListApiReq;
import com.cnooc.expert.external.expert.model.request.ExamQuestionXiaoTiListApiReq;
import com.cnooc.expert.external.expert.model.request.ExamRecordSaveApiReq; import com.cnooc.expert.external.expert.model.request.ExamRecordSaveApiReq;
import com.cnooc.expert.external.expert.model.request.ExpertInfoGetApiReq; import com.cnooc.expert.external.expert.model.request.ExpertInfoGetApiReq;
import com.cnooc.expert.external.expert.model.request.GeRenXiuJiaApplyApiReq; import com.cnooc.expert.external.expert.model.request.GeRenXiuJiaApplyApiReq;
...@@ -38,7 +38,9 @@ import com.cnooc.expert.external.expert.model.response.CommonNofilterEnumGetApiR ...@@ -38,7 +38,9 @@ import com.cnooc.expert.external.expert.model.response.CommonNofilterEnumGetApiR
import com.cnooc.expert.external.expert.model.response.DictByParentListApiResp; import com.cnooc.expert.external.expert.model.response.DictByParentListApiResp;
import com.cnooc.expert.external.expert.model.response.DongJieGetApiResp; import com.cnooc.expert.external.expert.model.response.DongJieGetApiResp;
import com.cnooc.expert.external.expert.model.response.DongJieZhuanYePageApiResp; import com.cnooc.expert.external.expert.model.response.DongJieZhuanYePageApiResp;
import com.cnooc.expert.external.expert.model.response.ExamPaperSubmitApiResp;
import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp; import com.cnooc.expert.external.expert.model.response.ExamQuestionListApiResp;
import com.cnooc.expert.external.expert.model.response.ExamQuestionXiaoTiListApiResp;
import com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp; import com.cnooc.expert.external.expert.model.response.ExamRecordSaveApiResp;
import com.cnooc.expert.external.expert.model.response.ExpertInfoGetApiResp; import com.cnooc.expert.external.expert.model.response.ExpertInfoGetApiResp;
import com.cnooc.expert.external.expert.model.response.GeRenXiuJiaApplyApiResp; import com.cnooc.expert.external.expert.model.response.GeRenXiuJiaApplyApiResp;
...@@ -283,5 +285,11 @@ public class ExpertServiceClient extends AbstractRetrofitManager { ...@@ -283,5 +285,11 @@ public class ExpertServiceClient extends AbstractRetrofitManager {
return this.getResponseBody(call, "listExamQuestionXiaoTi"); return this.getResponseBody(call, "listExamQuestionXiaoTi");
} }
// 提交试卷
public ApiBaseResult<ExamPaperSubmitApiResp> submitExamPaper(ExamPaperSubmitApiReq req) {
Map<String, Object> headers = super.getHeaders();
Call<ApiBaseResult<ExamPaperSubmitApiResp>> call = expertServiceApi.submitExamPaperApi(headers, req);
return this.getResponseBody(call, "submitExamPaper");
}
} }
...@@ -31,6 +31,7 @@ import com.cnooc.expert.controller.expert.model.response.CityTreeNodeResp; ...@@ -31,6 +31,7 @@ import com.cnooc.expert.controller.expert.model.response.CityTreeNodeResp;
import com.cnooc.expert.controller.expert.model.response.DictListItemResp; import com.cnooc.expert.controller.expert.model.response.DictListItemResp;
import com.cnooc.expert.controller.expert.model.response.DongJieGetResp; import com.cnooc.expert.controller.expert.model.response.DongJieGetResp;
import com.cnooc.expert.controller.expert.model.response.DongJiePageResp; import com.cnooc.expert.controller.expert.model.response.DongJiePageResp;
import com.cnooc.expert.controller.expert.model.response.ExamPaperSubmitResp;
import com.cnooc.expert.controller.expert.model.response.ExamQuestionListResp; import com.cnooc.expert.controller.expert.model.response.ExamQuestionListResp;
import com.cnooc.expert.controller.expert.model.response.ExamQuestionXiaoTiListResp; import com.cnooc.expert.controller.expert.model.response.ExamQuestionXiaoTiListResp;
import com.cnooc.expert.controller.expert.model.response.ExamRecordSaveResp; import com.cnooc.expert.controller.expert.model.response.ExamRecordSaveResp;
...@@ -54,6 +55,7 @@ import com.cnooc.expert.controller.expert.model.response.TempExamPaperGetResp; ...@@ -54,6 +55,7 @@ import com.cnooc.expert.controller.expert.model.response.TempExamPaperGetResp;
import com.cnooc.expert.controller.expert.model.response.WeiGuiGetResp; import com.cnooc.expert.controller.expert.model.response.WeiGuiGetResp;
import com.cnooc.expert.controller.expert.model.response.WeiGuiPageResp; import com.cnooc.expert.controller.expert.model.response.WeiGuiPageResp;
import com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp; import com.cnooc.expert.controller.expert.model.response.ZhuanJiaShenQingJiLuPageResp;
import com.cnooc.expert.external.expert.model.request.ExamPaperSubmitApiReq;
import com.cnooc.expert.external.expert.model.request.ExpertInfoGetReq; import com.cnooc.expert.external.expert.model.request.ExpertInfoGetReq;
import com.cnooc.expert.external.expert.model.request.TainLessonProgressUpdateApiReq; import com.cnooc.expert.external.expert.model.request.TainLessonProgressUpdateApiReq;
import com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp; import com.cnooc.expert.external.expert.model.response.CommonFuJianListApiResp;
...@@ -2739,6 +2741,66 @@ public class ExpertMockService { ...@@ -2739,6 +2741,66 @@ public class ExpertMockService {
); );
} }
public ExamPaperSubmitResp submitExamPaper(ExamPaperSubmitApiReq req) {
List<ExamPaperSubmitResp.ShiTiManagerDaAn> daAnList = Lists.newArrayList(
ExamPaperSubmitResp.ShiTiManagerDaAn.builder()
.createTime(1762418485815L)
.creatorGuid("1314243183234727937")
.creatorName("冯朗")
.daAnName("错误")
.isDaAn("否")
.modifierGuid("")
.modifierName("")
.modifyTime(null)
.shiTiManagerDaAnGuid("712219dc-fc95-4b46-9249-d0a8bd1d561a")
.shiTiManagerXiaoTiGuid("76d44b07-87bc-4bc7-8b0b-b30778dc1752")
.sort(1)
.build()
);
ExamPaperSubmitResp.ShiTiManagerDaTi daTi = ExamPaperSubmitResp.ShiTiManagerDaTi.builder()
.createTime(1762418080506L)
.creatorGuid("1314243183234727937")
.creatorName("冯朗")
.daTiName("判断题")
.daTiScore(null)
.modifierGuid("")
.modifierName("")
.modifyTime(null)
.remark("")
.shiTiManagerDaTiGuid("7da9ee7b-6362-4fc5-8650-a6fb0d091b74")
.tiMuType(30)
.tiMuTypeText("判断题")
.xiaoTiScore(null)
.build();
List<ExamPaperSubmitResp.ShiTiManagerXiaoTi> shiTiError = Lists.newArrayList(
ExamPaperSubmitResp.ShiTiManagerXiaoTi.builder()
.createTime(1762418485810L)
.creatorGuid("1314243183234727937")
.creatorName("冯朗")
.modifierGuid("")
.modifierName("")
.modifyTime(null)
.remark("")
.shiTiManagerDaTiGuid("7da9ee7b-6362-4fc5-8650-a6fb0d091b74")
.shiTiManagerXiaoTiGuid("76d44b07-87bc-4bc7-8b0b-b30778dc1752")
.userDaAnGuid("712219dc-fc95-4b46-9249-d0a8bd1d561a")
.xiaoTiName("对")
.xiaoTiScore(null)
.daAnList(daAnList)
.daTi(daTi)
.build()
);
return ExamPaperSubmitResp.builder()
.totalScore(new BigDecimal("68.0"))
.shiTiError(shiTiError)
.build();
}
public PeiXunKeChengKeJieGetResp getPeiXunKeChengKeJie(PeiXunKeChengKeJieGetReq req) { public PeiXunKeChengKeJieGetResp getPeiXunKeChengKeJie(PeiXunKeChengKeJieGetReq req) {
return PeiXunKeChengKeJieGetResp.builder() return PeiXunKeChengKeJieGetResp.builder()
...@@ -2828,5 +2890,4 @@ public class ExpertMockService { ...@@ -2828,5 +2890,4 @@ public class ExpertMockService {
.data(list) .data(list)
.build(); .build();
} }
} }
####### 开发环境的dockerfile配置##########
#FROM gmaslowski/jre:8
#ENV TZ='Asia/Shanghai'
#WORKDIR /home/server/
#ADD target/*.jar /home/server/app.jar
#VOLUME /home/server
#ENV JAVA_OPTS="-XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xms1024m -Xmx1024m -Xmn256m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC"
#ENV profile="-Dspring.profiles.active=qa"
#ENV LANG en_US.UTF-8
#ENV LANGUAGE en_US:en
#ENV LC_ALL en_US.UTF-8
##ENV debug="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9528"
#EXPOSE 3409
#RUN echo $TZ > /etc/timezone
##ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar $debug $profile /home/server/app.jar " ]
#ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar $profile /home/server/app.jar " ]
######### 测试环境的dockerfile文件配置###########
FROM java:8-jre-alpine
ENV TZ='Asia/Shanghai'
WORKDIR /home/server/
ADD target/zhuanjia.jar /home/server/app.jar
VOLUME /home/server
ENV JAVA_OPTS=""
EXPOSE 9001
RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main\n\
https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/community" > /etc/apk/repositories
RUN apk --update add curl bash ttf-dejavu && \
rm -rf /var/cache/apk/*
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /home/server/app.jar" ]
\ No newline at end of file
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