commit for pull
This commit is contained in:
parent
cabed052a1
commit
d366d7d922
@ -75,7 +75,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
"/test/**",
|
"/test/**",
|
||||||
"/**/expert",
|
"/**/expert",
|
||||||
"/captcha",
|
"/captcha",
|
||||||
"druid/**").anonymous()
|
"druid/**",
|
||||||
|
"/packing/woPackagingBox/page",
|
||||||
|
"/packing/printModel/page"
|
||||||
|
|
||||||
|
).anonymous()
|
||||||
// .antMatchers("/testCors").hasAuthority("system:dept:list222")
|
// .antMatchers("/testCors").hasAuthority("system:dept:list222")
|
||||||
// 除上面外的所有请求全部需要鉴权认证
|
// 除上面外的所有请求全部需要鉴权认证
|
||||||
.anyRequest()
|
.anyRequest()
|
||||||
|
@ -52,10 +52,9 @@ public class PrintModelController {
|
|||||||
@ApiImplicitParam(name = "lineBody", value = "线体,1=F ; 2=S", paramType = "query", dataTypeClass = Integer.class),
|
@ApiImplicitParam(name = "lineBody", value = "线体,1=F ; 2=S", paramType = "query", dataTypeClass = Integer.class),
|
||||||
@ApiImplicitParam(name = "isEnable", value = "启用状态:0 、停用,1、启用", 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){
|
public Result<PageData<PrintModelDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||||
PageData<PrintModelDTO> page = printModelService.page(params);
|
PageData<PrintModelDTO> page = printModelService.page(params);
|
||||||
|
|
||||||
return new Result<PageData<PrintModelDTO>>().ok(page);
|
return new Result<PageData<PrintModelDTO>>().ok(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,8 +159,8 @@ public class TestController {
|
|||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
// @PostMapping("/forImport")
|
// @PostMapping("/forImportTest")
|
||||||
// public R forImport(@RequestBody WoCompensationPowerDTO dto) throws UnsupportedEncodingException, ParseException {
|
// public R forImportTest(@RequestBody WoCompensationPowerDTO dto){
|
||||||
// System.out.println(dto.getRemark());
|
// System.out.println(dto.getRemark());
|
||||||
//
|
//
|
||||||
// List<CamlineSubIdForImportDTO> alllCamlineSubForImp = service.getAlllCamlineSubForImp(dto.getRemark().split(","));
|
// List<CamlineSubIdForImportDTO> alllCamlineSubForImp = service.getAlllCamlineSubForImp(dto.getRemark().split(","));
|
||||||
|
@ -63,7 +63,6 @@ public class WoPackagingBoxController {
|
|||||||
// @ApiImplicitParam(name = "printStatus", value = "打印状态:0、未打印,1、已打印", paramType = "query", dataTypeClass = Integer.class),
|
// @ApiImplicitParam(name = "printStatus", value = "打印状态:0、未打印,1、已打印", paramType = "query", dataTypeClass = Integer.class),
|
||||||
@ApiImplicitParam(name = "model", value = "模式,1-手动模式;2-自动模式", 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){
|
public Result<PageData<WoPackagingBoxDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||||
PageData<WoPackagingBoxDTO> page = woPackagingBoxService.page(params);
|
PageData<WoPackagingBoxDTO> page = woPackagingBoxService.page(params);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user