|
@@ -110,6 +110,25 @@ public class FsStoreProductScrmController extends BaseController {
|
|
|
return R.ok();
|
|
return R.ok();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('store:storeProduct:add')")
|
|
|
|
|
+ @Log(title = "商品管理", businessType = BusinessType.INSERT, businessTypeExpression = "#p0.getProductId()>0? T(com.fs.common.enums.BusinessType).UPDATE: T(com.fs.common.enums.BusinessType).INSERT"
|
|
|
|
|
+ , isStoreLog = true, logParamExpression = "#p0.getProductId()>0? new String[]{'商品','修改商品'}: new String[]{'商品','新增商品'}")
|
|
|
|
|
+ @PostMapping(value = "/addOrEdit")
|
|
|
|
|
+ public R addOrEdit(@RequestBody FsStoreProductAddEditParam fsStoreProduct) {
|
|
|
|
|
+ if (ObjectUtils.isNotNull(fsStoreProduct.getIsShow())) {
|
|
|
|
|
+ if (fsStoreProduct.getIsShow() == 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);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@PreAuthorize("@ss.hasPermi('store:storeProduct:list')")
|
|
@PreAuthorize("@ss.hasPermi('store:storeProduct:list')")
|
|
|
@PostMapping("/batchAudit")
|
|
@PostMapping("/batchAudit")
|
|
|
@Log(title = "商品审核", businessType = BusinessType.AUDIT, isStoreLog = true, logParam = {"商品", "批量审核商品信息"},
|
|
@Log(title = "商品审核", businessType = BusinessType.AUDIT, isStoreLog = true, logParam = {"商品", "批量审核商品信息"},
|
|
@@ -192,26 +211,6 @@ public class FsStoreProductScrmController extends BaseController {
|
|
|
return R.ok().put("data", product).put("attrs", attrs);
|
|
return R.ok().put("data", product).put("attrs", attrs);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('store:storeProduct:add')")
|
|
|
|
|
- @Log(title = "商品管理", businessType = BusinessType.INSERT, businessTypeExpression = "#p0.getProductId()>0? T(com.fs.common.enums.BusinessType).UPDATE: T(com.fs.common.enums.BusinessType).INSERT"
|
|
|
|
|
- , isStoreLog = true, logParamExpression = "#p0.getProductId()>0? new String[]{'商品','修改商品'}: new String[]{'商品','新增商品'}")
|
|
|
|
|
- @PostMapping(value = "/addOrEdit")
|
|
|
|
|
- public R addOrEdit(@RequestBody FsStoreProductAddEditParam fsStoreProduct) {
|
|
|
|
|
- if (ObjectUtils.isNotNull(fsStoreProduct.getIsShow())) {
|
|
|
|
|
- if (fsStoreProduct.getIsShow() == 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);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 删除商品
|
|
* 删除商品
|
|
|
*/
|
|
*/
|