Explorar el Código

学时通过时间

he2802 hace 3 años
padre
commit
6a45cfdbdd

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/domain/ClassGradeUser.java

@@ -56,5 +56,7 @@ private static final long serialVersionUID=1L;
     private Long periodWaitTime;
     /** 是否已换班 0没有 1已换去新班 */
     private Integer changeGrade;
+    /** 学时通过时间 */
+    private Long periodTime;
 }
 

+ 1 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/ClassGradeUserServiceImpl.java

@@ -339,6 +339,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
             classGradeUser1.setPeriodWaitTime(DateUtils.getNowTime());
         }
         if(gradePeriodStatus==1){
+            classGradeUser1.setPeriodTime(DateUtils.getNowTime());
             //判断结业
             long nowTime = System.currentTimeMillis()/1000;
             if(Validator.isNotEmpty(classPeriodStudentVo.getClassEndTime())&&Validator.isNotEmpty(classPeriodStudentVo.getClassStartTime())){

+ 1 - 0
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

@@ -15,6 +15,7 @@
         <result property="orderGoodsId" column="order_goods_id"/>
         <result property="periodWaitTime" column="period_wait_time"/>
         <result property="changeGrade" column="change_grade"/>
+        <result property="periodTime" column="period_time"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.grade.vo.ClassGradeUserVo" id="ClassGradeUserVoResult">