|
@@ -1,5 +1,6 @@
|
|
package com.fs.hisStore.controller;
|
|
package com.fs.hisStore.controller;
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
import com.fs.common.annotation.Log;
|
|
import com.fs.common.annotation.Log;
|
|
import com.fs.common.core.controller.BaseController;
|
|
import com.fs.common.core.controller.BaseController;
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
@@ -137,12 +138,16 @@ public class FsStoreProductScrmController extends BaseController
|
|
@PostMapping(value = "/addOrEdit")
|
|
@PostMapping(value = "/addOrEdit")
|
|
public R addOrEdit(@RequestBody FsStoreProductAddEditParam fsStoreProduct)
|
|
public R addOrEdit(@RequestBody FsStoreProductAddEditParam fsStoreProduct)
|
|
{
|
|
{
|
|
- if (fsStoreProduct.getIsShow() ==1){
|
|
|
|
- logger.info("商品上架:{}",fsStoreProduct.getProductName()+new Date());
|
|
|
|
|
|
+ if(ObjectUtils.isNotNull(fsStoreProduct.getIsShow())) {
|
|
|
|
+ if (fsStoreProduct.getIsShow() ==1){
|
|
|
|
+ logger.info("商品上架:{}",fsStoreProduct.getProductName()+new Date());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
- if (fsStoreProduct.getIsDisplay() ==1){
|
|
|
|
- logger.info("商品前端展示:{}",fsStoreProduct.getProductName()+new Date());
|
|
|
|
|
|
+ if(ObjectUtils.isNotNull(fsStoreProduct.getIsDisplay())) {
|
|
|
|
+ if (fsStoreProduct.getIsDisplay() ==1){
|
|
|
|
+ logger.info("商品前端展示:{}",fsStoreProduct.getProductName()+new Date());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return fsStoreProductService.addOrEdit(fsStoreProduct);
|
|
return fsStoreProductService.addOrEdit(fsStoreProduct);
|
|
}
|
|
}
|