修改了商品下架的功能模块,添加了相应的权限配置信息
This commit is contained in:
parent
e94f1684e8
commit
475d0d2851
@ -119,7 +119,8 @@ public class ProductController {
|
|||||||
*/
|
*/
|
||||||
@Transactional(rollbackFor=Exception.class)
|
@Transactional(rollbackFor=Exception.class)
|
||||||
@PostMapping("/updateOffShelf")
|
@PostMapping("/updateOffShelf")
|
||||||
public String updateOffShelf(@RequestBody Map map){
|
@PreAuthorize("hasAnyAuthority('auth_affiliate_merchant','auth_city','auth_county')")
|
||||||
|
public String updateOffShelf(@RequestBody Map map,@RequestHeader(value="Authorization") String token){
|
||||||
Locale locale = LocaleContextHolder.getLocale();
|
Locale locale = LocaleContextHolder.getLocale();
|
||||||
Integer productId = (Integer) map.get("productId");
|
Integer productId = (Integer) map.get("productId");
|
||||||
productDao.updateShelfTypeById(productId,"2");
|
productDao.updateShelfTypeById(productId,"2");
|
||||||
|
Loading…
Reference in New Issue
Block a user