Commit b3037210 by unknown

repair the same time

parent bdc960fd
......@@ -1054,9 +1054,21 @@ public class OpEventActivityOrderService
EventActivityOrderItem orderItem = orderItems.get(0);
String oldTeeTime = orderItem.getTeeTime();
String newTeeTime = orderProcessBean.getTeeTime();
if(oldTeeTime != null && oldTeeTime.equals(newTeeTime)){
//相同的时间不需要修改了
return;
if(oldTeeTime != null && newTeeTime != null){
String[] oldTeetimes = oldTeeTime.split(":");
String[] newTeetimes = newTeeTime.split(":");
int oldGroupNum = 0;
int newGroupNum = 0;
if(oldTeetimes != null && oldTeetimes.length ==2 ){
oldGroupNum = Integer.valueOf(oldTeetimes[0])*60 + Integer.valueOf(oldTeetimes[1]);
}
if(newTeetimes != null && newTeetimes.length ==2 ){
newGroupNum = Integer.valueOf(newTeetimes[0])*60 + Integer.valueOf(newTeetimes[1]);
}
if(oldGroupNum == newGroupNum){
//相同的时间不需要修改了
return;
}
}
StringBuilder desc = new StringBuilder("原TeeTime[").append(orderItem.getTeeTime())
.append("] 改为 [").append(orderProcessBean.getTeeTime()).append("]");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment