瀏覽代碼

fix 提交时间

he2802 3 年之前
父節點
當前提交
3758973850

+ 2 - 0
zhongzheng-api/src/main/java/com/zhongzheng/controller/user/UserExamRecordController.java

@@ -3,6 +3,7 @@ package com.zhongzheng.controller.user;
 import java.util.List;
 import java.util.Arrays;
 
+import com.zhongzheng.common.utils.DateUtils;
 import com.zhongzheng.common.utils.ServletUtils;
 import com.zhongzheng.framework.web.service.WxTokenService;
 import com.zhongzheng.modules.user.bo.UserExamRecordAddBo;
@@ -133,6 +134,7 @@ public class UserExamRecordController extends BaseController {
     public AjaxResult<Void> edit(@RequestBody UserExamRecordEditBo bo) {
         ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
         bo.setUserId(loginUser.getUser().getUserId());
+        bo.setCommitTime(DateUtils.getNowTime());
         return toAjax(iUserExamRecordService.updateByEditBo(bo) ? 1 : 0);
     }
 

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserExamRecordAddBo.java

@@ -85,4 +85,7 @@ public class UserExamRecordAddBo {
     @ApiModelProperty("订单商品ID")
     private Long orderGoodsId;
     private Long lessQuestionNum;
+    /** 提交时间 */
+    @ApiModelProperty("提交时间")
+    private Long commitTime;
 }

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserExamRecordEditBo.java

@@ -103,4 +103,7 @@ public class UserExamRecordEditBo {
     @ApiModelProperty("订单商品ID")
     private Long orderGoodsId;
     private Long lessQuestionNum;
+    /** 提交时间 */
+    @ApiModelProperty("提交时间")
+    private Long commitTime;
 }

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/vo/UserExamRecordVo.java

@@ -122,4 +122,8 @@ public class UserExamRecordVo {
 	@ApiModelProperty("订单商品ID")
 	private Long orderGoodsId;
 	private Long lessQuestionNum;
+	/** 提交时间 */
+	@Excel(name = "提交时间")
+	@ApiModelProperty("提交时间")
+	private Long commitTime;
 }

+ 2 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserExamRecordMapper.xml

@@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="allQuestionNum" column="all_question_num"/>
         <result property="orderGoodsId" column="order_goods_id"/>
         <result property="lessQuestionNum" column="less_question_num"/>
+        <result property="commitTime" column="commit_time"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.user.vo.UserExamRecordVo" id="UserExamRecordVoResult">
@@ -58,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="totalScore" column="total_score"/>
         <result property="score" column="score"/>
         <result property="orderGoodsId" column="order_goods_id"/>
+        <result property="commitTime" column="commit_time"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.user.vo.UserExamWrongRecordVo" id="UserExamRecordQuestionVoResult">