默认设置新增订单时为未退订
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
dy 2025-07-09 13:17:40 +08:00
parent 74c7a809d9
commit 8233524b2b

View File

@ -55,6 +55,10 @@ public class CleanOrderServiceImpl implements ICleanOrderService {
private final CleanRelationMapper cleanRelationMapper;
//NOTUNBOOKING:未退订 BOOKING:已退订
private final Integer NOTUNBOOKING = 0;
private final Integer BOOKING = 1;
/**
* 查询保洁订单
*
@ -153,6 +157,7 @@ public class CleanOrderServiceImpl implements ICleanOrderService {
BeanUtils.copyProperties(bo, add);
add.setStarTime(String.valueOf(new DateTime(bo.getStarTime()).toLocalDateTime()));
add.setEndTime(String.valueOf(new DateTime(bo.getEndTime()).toLocalDateTime()));
add.setIsUnbooking(NOTUNBOOKING);
boolean flag = baseMapper.insert(add) > 0;
//取出clean_order表中的所有clean数据