登陆授权修改,数据配置用常量替代,增加获取距离工具类等

This commit is contained in:
hupeng
2020-03-25 12:26:27 +08:00
parent 3f8163de14
commit e1b0b98cbc
21 changed files with 163 additions and 28 deletions

View File

@ -1,6 +1,8 @@
package co.yixiang.modules.shop.rest;
import cn.hutool.core.util.StrUtil;
import co.yixiang.aop.log.Log;
import co.yixiang.exception.BadRequestException;
import co.yixiang.modules.shop.domain.YxSystemStoreStaff;
import co.yixiang.modules.shop.service.YxSystemStoreStaffService;
import co.yixiang.modules.shop.service.dto.YxSystemStoreStaffQueryCriteria;
@ -69,6 +71,7 @@ public class SystemStoreStaffController {
@PreAuthorize("@el.check('yxSystemStoreStaff:del')")
@DeleteMapping
public ResponseEntity<Object> deleteAll(@RequestBody Integer[] ids) {
//if(StrUtil.isNotEmpty("22")) throw new BadRequestException("演示环境禁止操作");
yxSystemStoreStaffService.deleteAll(ids);
return new ResponseEntity<>(HttpStatus.OK);
}