2 Commits 65b4d7eeec ... 9f11ec428c

Author SHA1 Message Date
  bing 9f11ec428c Merge remote-tracking branch 'origin/master' 5 days ago
  bing b398b95660 bugfix:折扣设备-新增问题; 5 days ago

+ 1 - 1
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/consumption/domain/XfDiscount.java

@@ -35,7 +35,7 @@ public class XfDiscount extends TenantEntity {
35 35
     /**
36 36
      * 餐类Id
37 37
      */
38
-    private Long mealType;
38
+    private String mealType;
39 39
 
40 40
     /**
41 41
      * 折扣类型,默认为0

+ 2 - 2
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/consumption/domain/bo/XfDiscountBo.java

@@ -35,8 +35,8 @@ public class XfDiscountBo extends BaseEntity {
35 35
     /**
36 36
      * 餐类Id
37 37
      */
38
-    @NotNull(message = "餐类Id不能为空", groups = { AddGroup.class, EditGroup.class })
39
-    private Long mealType;
38
+    @NotBlank(message = "餐类Id不能为空", groups = { AddGroup.class, EditGroup.class })
39
+    private String mealType;
40 40
 
41 41
     /**
42 42
      * 折扣类型,默认为0

+ 3 - 3
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/consumption/domain/vo/XfDiscountVo.java

@@ -40,7 +40,7 @@ public class XfDiscountVo implements Serializable {
40 40
      * 卡类Id
41 41
      */
42 42
 //    @ExcelProperty(value = "卡类Id")
43
-    private Long cardType;
43
+    private String cardType;
44 44
 
45 45
     @Translation(type = TransConstant.CARD_TYPE_ID_TO_NAME, mapper = "cardType")
46 46
     @ExcelProperty(value = "卡类")
@@ -52,9 +52,9 @@ public class XfDiscountVo implements Serializable {
52 52
 //    @ExcelProperty(value = "餐类Id")
53 53
     private Long mealType;
54 54
 
55
-    @ExcelProperty(value = "餐类")
55
+    /*@ExcelProperty(value = "餐类")
56 56
     @Translation(type = TransConstant.MEAL_TYPE_TO_NAME, mapper = "mealType")
57
-    private String mealTypeName;
57
+    private String mealTypeName;*/
58 58
 
59 59
     /**
60 60
      * 折扣类型,默认为0

+ 1 - 0
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/consumption/service/impl/XfTermServiceImpl.java

@@ -94,6 +94,7 @@ public class XfTermServiceImpl implements IXfTermService {
94 94
         }
95 95
         lqw.in(CollectionUtil.isNotEmpty(roomIds),"t.room_id", roomIds);
96 96
         lqw.eq("t.del_flag", 0);
97
+        lqw.orderByDesc("t.create_time");
97 98
         Page<XfTermVo> result = baseMapper.customPageList(pageQuery.build(), lqw);
98 99
         return TableDataInfo.build(result);
99 100
     }