状态
This commit is contained in:
@@ -284,7 +284,10 @@ public class GbOrderServiceImpl extends ServiceImpl<GbOrderMapper, GbOrder> impl
|
|||||||
order.setGroupEndTime(LocalDateTime.now().plusHours(ware.getGroupTimeoutHour()));
|
order.setGroupEndTime(LocalDateTime.now().plusHours(ware.getGroupTimeoutHour()));
|
||||||
order.setCreateTime(LocalDateTime.now());
|
order.setCreateTime(LocalDateTime.now());
|
||||||
order.setStatus("ing");
|
order.setStatus("ing");
|
||||||
if (ware.getGroupPeopleNum() == 1) {
|
if (ware == null || ware.getOnlineStatus() == 0 || ware.getIsDel()) {
|
||||||
|
order.setStatus("fail");
|
||||||
|
order.setGroupEndTime(LocalDateTime.now());
|
||||||
|
}else if (ware.getGroupPeopleNum() == 1) {
|
||||||
order.setStatus("success");
|
order.setStatus("success");
|
||||||
}
|
}
|
||||||
save(order);
|
save(order);
|
||||||
|
|||||||
Reference in New Issue
Block a user