|
|
@@ -54,7 +54,7 @@ public class FsPlatformProductScrmController extends BaseController {
|
|
|
* @param vo
|
|
|
* @return TableDataInfo
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('store:storeProduct:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('store:platformProduct:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(FsPlatformProductScrm vo) {
|
|
|
startPage();
|
|
|
@@ -66,7 +66,7 @@ public class FsPlatformProductScrmController extends BaseController {
|
|
|
* 获取商品详细信息
|
|
|
* @param productId
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('store:storeProduct:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('store:platformProduct:query')")
|
|
|
@GetMapping(value = "/{productId}")
|
|
|
public R getInfo(@PathVariable("productId") Long productId) {
|
|
|
FsPlatformProductScrm product = fsPlatformProductService.selectFsPlatformProductById(productId);
|
|
|
@@ -77,7 +77,7 @@ public class FsPlatformProductScrmController extends BaseController {
|
|
|
/**
|
|
|
* 删除商品
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('store:storeProduct:remove')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('store:platformProduct:remove')")
|
|
|
@Log(title = "商品管理", businessType = BusinessType.DELETE, isStoreLog = true,
|
|
|
logParamExpression = "#p0.length>1?new String[]{'商品','批量删除商品信息'}: new String[]{'商品','删除商品信息'}")
|
|
|
@DeleteMapping("/{productIds}")
|
|
|
@@ -90,7 +90,7 @@ public class FsPlatformProductScrmController extends BaseController {
|
|
|
* @param product 商品对象
|
|
|
* @return R
|
|
|
* */
|
|
|
- @PreAuthorize("@ss.hasPermi('his:storeProduct:copyProduct')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('his:platformProduct:copyProduct')")
|
|
|
@PostMapping("/copyProduct")
|
|
|
@Log(title = "复制商品", businessType = BusinessType.INSERT, isStoreLog = true, logParam = {"商品", "复制商品"})
|
|
|
public R copyProduct(@RequestBody FsPlatformProductScrm product) {
|
|
|
@@ -102,7 +102,7 @@ public class FsPlatformProductScrmController extends BaseController {
|
|
|
* @param fsStoreProduct 商品对象
|
|
|
* @return R
|
|
|
* */
|
|
|
- @PreAuthorize("@ss.hasPermi('store:storeProduct:add')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('store:platformProduct: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")
|