yanite пре 3 година
родитељ
комит
01bc42142f
1 измењених фајлова са 10 додато и 10 уклоњено
  1. 10 10
      mec-biz/src/main/resources/config/mybatis/CloudTeacherOrderMapper.xml

+ 10 - 10
mec-biz/src/main/resources/config/mybatis/CloudTeacherOrderMapper.xml

@@ -327,11 +327,11 @@
                cto.student_id_ as studentId,
                cto.type_ as type,
                case cto.type_
-                   when 1 then '天'
-                   when 2 then '月'
-                   when 3 then '季'
-                   when 4 then '半年'
-                   when 5 then '年'
+                    WHEN 'DAY' THEN '天'
+                    WHEN 'MONTH' THEN '月'
+                    WHEN 'QUARTERLY' THEN '季'
+                    WHEN 'YEAR_HALF' THEN '半年'
+                    WHEN 'YEAR' THEN '年' ELSE ''
                    else ''
                end as typeName,
                cto.time_ as time,
@@ -417,11 +417,11 @@
             cto.id_ AS cloudTeacherOrderId,
             cto.student_id_ AS studentId,
             cto.type_ AS type,
-            CASE cto.type_ WHEN 1 THEN '天'
-                WHEN 2 THEN '月'
-                WHEN 3 THEN '季'
-                WHEN 4 THEN '半年'
-                WHEN 5 THEN '年' ELSE ''
+            CASE cto.type_ WHEN 'DAY' THEN '天'
+                WHEN 'MONTH' THEN '月'
+                WHEN 'QUARTERLY' THEN '季'
+                WHEN 'YEAR_HALF' THEN '半年'
+                WHEN 'YEAR' THEN '年' ELSE ''
                 END AS typeName,
             cto.time_ AS time,
             u.tenant_id_ AS tenantId,