|
|
@@ -333,17 +333,9 @@ public class ProductController {
|
|
|
public void switchProductByEnUU(@RequestParam("enUU") Long enUU,
|
|
|
@RequestParam("switchType") String switchType,
|
|
|
@RequestParam("switchStatus") Short switchStatus) {
|
|
|
- Integer size = 0;
|
|
|
- if (switchType.equals(PRODUCT_PURCHASE_STATUS)) {
|
|
|
- size = productService.getCountByEnUUAndNotIsPurchase(enUU, switchStatus);
|
|
|
- } else if (switchType.equals(PRODUCT_SALE_STATUS)){
|
|
|
- size = productService.getCountByEnUUAndNotIsSale(enUU, switchStatus);
|
|
|
- }
|
|
|
- if (size > 0) {
|
|
|
- waitSyncHelper.preWait("B2B");
|
|
|
- productService.switchProductByEnuuAndTypeAndStatus(enUU, switchType, switchStatus);
|
|
|
- waitSyncHelper.waitResponse();
|
|
|
- }
|
|
|
+ waitSyncHelper.preWait("B2B");
|
|
|
+ productService.switchProductByEnuuAndTypeAndStatus(enUU, switchType, switchStatus);
|
|
|
+ waitSyncHelper.waitResponse();
|
|
|
}
|
|
|
|
|
|
/**
|