commit for pull

This commit is contained in:
caixiang 2023-04-04 10:49:05 +08:00
parent cabed052a1
commit d366d7d922
4 changed files with 8 additions and 6 deletions

View File

@ -75,7 +75,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/test/**",
"/**/expert",
"/captcha",
"druid/**").anonymous()
"druid/**",
"/packing/woPackagingBox/page",
"/packing/printModel/page"
).anonymous()
// .antMatchers("/testCors").hasAuthority("system:dept:list222")
// 除上面外的所有请求全部需要鉴权认证
.anyRequest()

View File

@ -52,10 +52,9 @@ public class PrintModelController {
@ApiImplicitParam(name = "lineBody", value = "线体1=F ; 2=S", paramType = "query", dataTypeClass = Integer.class),
@ApiImplicitParam(name = "isEnable", value = "启用状态:0 、停用1、启用", paramType = "query", dataTypeClass = Integer.class)
})
@PreAuthorize("@ex.hasAuthority('packing:printModel:page')")
//@PreAuthorize("@ex.hasAuthority('packing:printModel:page')")
public Result<PageData<PrintModelDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<PrintModelDTO> page = printModelService.page(params);
return new Result<PageData<PrintModelDTO>>().ok(page);
}

View File

@ -159,8 +159,8 @@ public class TestController {
return R.ok();
}
// @PostMapping("/forImport")
// public R forImport(@RequestBody WoCompensationPowerDTO dto) throws UnsupportedEncodingException, ParseException {
// @PostMapping("/forImportTest")
// public R forImportTest(@RequestBody WoCompensationPowerDTO dto){
// System.out.println(dto.getRemark());
//
// List<CamlineSubIdForImportDTO> alllCamlineSubForImp = service.getAlllCamlineSubForImp(dto.getRemark().split(","));

View File

@ -63,7 +63,6 @@ public class WoPackagingBoxController {
// @ApiImplicitParam(name = "printStatus", value = "打印状态0、未打印1、已打印", paramType = "query", dataTypeClass = Integer.class),
@ApiImplicitParam(name = "model", value = "模式1-手动模式2-自动模式", paramType = "query", dataTypeClass = Integer.class)
})
@PreAuthorize("@ex.hasAuthority('packing:woPackagingBox:page')")
public Result<PageData<WoPackagingBoxDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<WoPackagingBoxDTO> page = woPackagingBoxService.page(params);