Pārlūkot izejas kodu

首页bug修复
消费记录调整

linfei.luo 3 gadi atpakaļ
vecāks
revīzija
35f28bdc47

+ 2 - 0
eladmin-system/src/main/java/me/zhengjie/config/rabbitmq/test/ListenerTemplate.java

@@ -111,6 +111,7 @@ public class ListenerTemplate {
             dmExpenseCalendar.setAccount(attendance.getInteger("account"));
             dmExpenseCalendar.setUserName(attendance.getString("name"));
             dmExpenseCalendar.setMob(attendance.getString("mob"));
+            dmExpenseCalendar.setUserCode(attendance.getString("mob"));
             dmExpenseCalendar.setTel(attendance.getString("tel"));
             dmExpenseCalendar.setCardProfile(attendance.getInteger("card_profile"));
 
@@ -122,6 +123,7 @@ public class ListenerTemplate {
                 DmOrderItem dmOrderItem = new DmOrderItem();
                 DmFood dmFood = new DmFood();
                 dmFood.setId(userData.getLong("pid"));
+                dmOrderItem.setSeq(attendance.getLong("seq"));
                 dmOrderItem.setFood(dmFood);
                 dmOrderItem.setBh(bh);
                 dmOrderItem.setName(userData.getString("name"));

+ 1 - 1
eladmin-system/src/main/java/me/zhengjie/modules/dm/daypc/repository/DmDayPcRepository.java

@@ -43,6 +43,6 @@ public interface DmDayPcRepository extends JpaRepository<DmDayPc, Long>, JpaSpec
      * 今日菜品数量
      * @return
      */
-    @Query(value = "SELECT COUNT(1) FROM dm_day_pc WHERE to_days(pcdate) = to_days(now()) ",nativeQuery = true)
+    @Query(value = "SELECT COUNT(1) FROM dm_day_pc WHERE to_days(date) = to_days(now()) ",nativeQuery = true)
     Integer countDishesNumber();
 }

+ 2 - 0
eladmin-system/src/main/java/me/zhengjie/modules/dm/order/service/dto/DmOrderRecordDto.java

@@ -80,6 +80,8 @@ public class DmOrderRecordDto implements Serializable {
     private String zkMoney;
 
     //流水号
+    /** 防止精度丢失 */
+    @JSONField(serializeUsing = ToStringSerializer.class)
     private Long seq;
 
     //卡id