|
@ -38,7 +38,7 @@ public class BmsSupplierStatementController { |
|
|
* @param param |
|
|
* @param param |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
//@GetMapping("/list")
|
|
|
@GetMapping("/list") |
|
|
//@PreAuthorize("hasRole('bms:supplierStatement:query')")
|
|
|
//@PreAuthorize("hasRole('bms:supplierStatement:query')")
|
|
|
public R<List<BmsSupplierStatement>> getList(BmsSupplierStatement param){ |
|
|
public R<List<BmsSupplierStatement>> getList(BmsSupplierStatement param){ |
|
|
LambdaQueryWrapper<BmsSupplierStatement> lqw = new LambdaQueryWrapper<>(param); |
|
|
LambdaQueryWrapper<BmsSupplierStatement> lqw = new LambdaQueryWrapper<>(param); |
|
@ -51,7 +51,7 @@ public class BmsSupplierStatementController { |
|
|
* @param param |
|
|
* @param param |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
//@GetMapping("/page")
|
|
|
@GetMapping("/page") |
|
|
//@PreAuthorize("hasRole('bms:supplierStatement:query')")
|
|
|
//@PreAuthorize("hasRole('bms:supplierStatement:query')")
|
|
|
public R<PageVo<BmsSupplierStatement>> getPage(BmsSupplierStatement param){ |
|
|
public R<PageVo<BmsSupplierStatement>> getPage(BmsSupplierStatement param){ |
|
|
LambdaQueryWrapper<BmsSupplierStatement> lqw = new LambdaQueryWrapper<>(param); |
|
|
LambdaQueryWrapper<BmsSupplierStatement> lqw = new LambdaQueryWrapper<>(param); |
|
@ -65,7 +65,7 @@ public class BmsSupplierStatementController { |
|
|
* @param id |
|
|
* @param id |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
//@GetMapping("/getById/{id}")
|
|
|
@GetMapping("/getById/{id}") |
|
|
@SysLog(module = SystemModule.BASE, title = "客户货款对账单", biz = BizType.QUERY) |
|
|
@SysLog(module = SystemModule.BASE, title = "客户货款对账单", biz = BizType.QUERY) |
|
|
@PreAuthorize("hasRole('bms:supplierStatement:query')") |
|
|
@PreAuthorize("hasRole('bms:supplierStatement:query')") |
|
|
public R<BmsSupplierStatement> getById(@PathVariable("id") String id){ |
|
|
public R<BmsSupplierStatement> getById(@PathVariable("id") String id){ |
|
@ -93,25 +93,24 @@ public class BmsSupplierStatementController { |
|
|
* @param param |
|
|
* @param param |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
//@PostMapping("/save")
|
|
|
@PostMapping("/save") |
|
|
@SysLog(module = SystemModule.BASE, title = "客户货款对账单", biz = BizType.INSERT) |
|
|
@SysLog(module = SystemModule.BASE, title = "客户货款对账单", biz = BizType.INSERT) |
|
|
//@PreAuthorize("hasRole('bms:supplierStatement:insert')")
|
|
|
//@PreAuthorize("hasRole('bms:supplierStatement:insert')")
|
|
|
public R<?> save(@RequestBody @Valid BmsSupplierStatement param){ |
|
|
public R<?> save(@RequestBody @Valid BmsSupplierStatement param){ |
|
|
boolean result = bmsSupplierStatementService.save(param); |
|
|
boolean result = bmsSupplierStatementService.saveBmsSupplierStatement(param); |
|
|
return R.isTrue(result); |
|
|
return R.isTrue(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 删除 |
|
|
* 删除 |
|
|
* @param ids |
|
|
* @param jslId |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@DeleteMapping("/deleteById/{ids}") |
|
|
@DeleteMapping("/deleteById/{jslId}") |
|
|
@SysLog(module = SystemModule.BASE, title = "客户货款对账单", biz = BizType.DELETE) |
|
|
@SysLog(module = SystemModule.BASE, title = "客户货款对账单", biz = BizType.DELETE) |
|
|
//@PreAuthorize("hasRole('bms:supplierStatement:delete')")
|
|
|
//@PreAuthorize("hasRole('bms:supplierStatement:delete')")
|
|
|
public R<?> deleteById(@PathVariable("ids") String ids){ |
|
|
public R<?> deleteById(@PathVariable("jslId") String jslId){ |
|
|
List<Long> idsLong = StringUtils.splitIdLong(ids); |
|
|
boolean result = bmsSupplierStatementService.deleteBmsSupplierStatement(jslId); |
|
|
boolean result = bmsSupplierStatementService.removeByIds(idsLong); |
|
|
|
|
|
return R.isTrue(result); |
|
|
return R.isTrue(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|