...
|
...
|
@@ -17,6 +17,7 @@ import org.slf4j.Logger; |
|
|
import org.slf4j.helpers.MessageFormatter;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
|
...
|
...
|
@@ -57,11 +58,14 @@ public abstract class AbsOrderViewService { |
|
|
getLogger().warn("in formatButtons error buyerOrder {} buttons {}", buyerOrder, buttons, ex);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//must clone deeply ,or one application process share the same objects
|
|
|
List<ButtonShowBo> buttonsClone = new ArrayList<>(buttons.size());
|
|
|
for(ButtonShowBo buttonShowBo : buttons){
|
|
|
buttonShowBo.setConfirmTips(formatconfirmTips(bpcr, orderStatusCode, buttonShowBo.getConfirmTips()));
|
|
|
ButtonShowBo copy = buttonShowBo.deepClone();
|
|
|
copy.setConfirmTips(formatconfirmTips(bpcr, orderStatusCode, copy.getConfirmTips()));
|
|
|
buttonsClone.add(copy);
|
|
|
}
|
|
|
return buttons;
|
|
|
return buttonsClone;
|
|
|
}
|
|
|
|
|
|
String formatconfirmTips(BuyerPenaltyCalResult bpcr,int orderStatusCode, String temp){
|
...
|
...
|
|