fanzherong_v vor 2 Monaten
Ursprung
Commit
21a3304ca5

+ 4 - 0
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizappointmentrecord/service/impl/BizAppointmentRecordServiceImpl.java

@@ -177,6 +177,10 @@ public class BizAppointmentRecordServiceImpl extends ServiceImpl<BizAppointmentR
         try {
             //查询当天预约记录条数
             String format = DateUtil.format(DateUtil.date(), "yyyy-MM-dd");
+            BizGoodsConf bizGoodsConf = bizGoodsConfService.getById(bizAppointmentRecord.getTimeId());
+            if(ObjectUtil.isNotNull(bizGoodsConf)){
+                format = DateUtil.format(bizGoodsConf.getConfStartTime(),"yyyy-MM-dd");
+            }
             long count = this.count(new QueryWrapper<BizAppointmentRecord>().lambda().
                     between(BizAppointmentRecord::getCreateTime, format + " 00:00:00", format + " 23:59:59"));
             bizAppointmentRecord.setQueueNumber((int) (count+1));