|
|
@@ -112,7 +112,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
try {
|
|
|
Product prod = productDao.findOne(id);
|
|
|
prod.setIsSale(Constant.YES);
|
|
|
- ProductUtils.switchProduct(id, "sale", (int) Constant.YES);
|
|
|
+ ProductUtils.switchProduct(id, "sale", Constant.YES);
|
|
|
// productDao.save(prod);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
@@ -126,7 +126,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
try {
|
|
|
Product prod = productDao.findOne(id);
|
|
|
prod.setIsSale(Constant.YES);
|
|
|
- ProductUtils.switchProduct(id, "sale", (int) Constant.NO);
|
|
|
+ ProductUtils.switchProduct(id, "sale", Constant.NO);
|
|
|
// productDao.save(prod);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
@@ -139,7 +139,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
try {
|
|
|
Product prod = productDao.findOne(id);
|
|
|
prod.setIsPurchase(Constant.YES);
|
|
|
- ProductUtils.switchProduct(id, "purc", (int) Constant.YES);
|
|
|
+ ProductUtils.switchProduct(id, "purc", Constant.YES);
|
|
|
// productDao.save(prod);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
@@ -152,7 +152,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
try {
|
|
|
Product prod = productDao.findOne(id);
|
|
|
prod.setIsPurchase(Constant.NO);
|
|
|
- ProductUtils.switchProduct(id, "purc", (int) Constant.NO);
|
|
|
+ ProductUtils.switchProduct(id, "purc", Constant.NO);
|
|
|
// productDao.save(prod);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|