|
@@ -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));
|