|
@@ -220,9 +220,9 @@ public class OrderHandler {
|
|
|
if(cd.getProductType() == 100){
|
|
|
toothAllbrush += cd.getCartNum();
|
|
|
}
|
|
|
- if(cd.getColorToothType() == 2){
|
|
|
+ if(cd.getColorToothType() == 2){
|
|
|
toothAuthbrush += cd.getCartNum();
|
|
|
- }else if(cd.getColorToothType() == 3){
|
|
|
+ }else if(cd.getColorToothType() == 3 || cd.getColorToothType() == 4){
|
|
|
toothKidsbrush += cd.getCartNum();
|
|
|
}
|
|
|
|
|
@@ -237,7 +237,7 @@ public class OrderHandler {
|
|
|
if(activityDate.isStatus()){
|
|
|
|
|
|
|
|
|
- Integer promotionAmout = allAmount;
|
|
|
+ Integer promotionAmout = allAmount;
|
|
|
|
|
|
SalesActivities sa = new SalesActivities();
|
|
|
sa.setSalesActivitiesStatus(1);
|
|
@@ -255,16 +255,11 @@ public class OrderHandler {
|
|
|
|
|
|
|
|
|
|
|
|
- if(promotionAmout > 69900){
|
|
|
- addFullReduction(4,cartDtos);
|
|
|
- }
|
|
|
- if(promotionAmout > 49900){
|
|
|
- addFullReduction(3,cartDtos);
|
|
|
- }
|
|
|
+
|
|
|
if(toothKidsbrush > 0){
|
|
|
- addFullReduction(2,cartDtos);
|
|
|
+ addFullReduction(5,cartDtos);
|
|
|
}
|
|
|
- if(toothAuthbrush > 0){
|
|
|
+ if(toothAuthbrush > 0 || toothKidsbrush > 0){
|
|
|
addFullReduction(1,cartDtos);
|
|
|
}
|
|
|
}
|
|
@@ -561,16 +556,10 @@ public class OrderHandler {
|
|
|
|
|
|
|
|
|
|
|
|
- if(promotionAmout > 69900){
|
|
|
- addFullReduction(4,cartDtos);
|
|
|
- }
|
|
|
- if(promotionAmout > 49900){
|
|
|
- addFullReduction(3,cartDtos);
|
|
|
- }
|
|
|
if(toothKidsbrush > 0){
|
|
|
- addFullReduction(2,cartDtos);
|
|
|
+ addFullReduction(5,cartDtos);
|
|
|
}
|
|
|
- if(toothAuthbrush > 0){
|
|
|
+ if(toothAuthbrush > 0 || toothKidsbrush > 0){
|
|
|
addFullReduction(1,cartDtos);
|
|
|
}
|
|
|
}
|
|
@@ -1110,6 +1099,9 @@ public class OrderHandler {
|
|
|
*/
|
|
|
private void addFullReduction(Integer type, List<CartDto> cartDtos){
|
|
|
switch (type){
|
|
|
+ case 5 :
|
|
|
+ addCartDtos(cartDtos,322);
|
|
|
+ break;
|
|
|
case 4 :
|
|
|
addCartDtos(cartDtos,314);
|
|
|
addCartDtos(cartDtos,321);
|