领料接口优化
This commit is contained in:
parent
1eac2dc685
commit
720f2699ff
|
|
@ -42,7 +42,7 @@ public class BmAgreementInfoController extends BaseController
|
||||||
* 查询协议管理列表
|
* 查询协议管理列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "查询协议管理列表")
|
@ApiOperation(value = "查询协议管理列表")
|
||||||
@RequiresPermissions("basic:info:list")
|
//@RequiresPermissions("basic:info:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(BmAgreementInfo bmAgreementInfo)
|
public TableDataInfo list(BmAgreementInfo bmAgreementInfo)
|
||||||
{
|
{
|
||||||
|
|
@ -56,7 +56,7 @@ public class BmAgreementInfoController extends BaseController
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "导出协议管理列表")
|
@ApiOperation(value = "导出协议管理列表")
|
||||||
@PreventRepeatSubmit
|
@PreventRepeatSubmit
|
||||||
@RequiresPermissions("basic:info:export")
|
//@RequiresPermissions("basic:info:export")
|
||||||
@SysLog(title = "协议管理", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出协议管理")
|
@SysLog(title = "协议管理", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出协议管理")
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, BmAgreementInfo bmAgreementInfo)
|
public void export(HttpServletResponse response, BmAgreementInfo bmAgreementInfo)
|
||||||
|
|
@ -70,7 +70,7 @@ public class BmAgreementInfoController extends BaseController
|
||||||
* 获取协议管理详细信息
|
* 获取协议管理详细信息
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "获取协议管理详细信息")
|
@ApiOperation(value = "获取协议管理详细信息")
|
||||||
@RequiresPermissions("basic:info:query")
|
//@RequiresPermissions("basic:info:query")
|
||||||
@GetMapping(value = "/{agreementId}")
|
@GetMapping(value = "/{agreementId}")
|
||||||
public AjaxResult getInfo(@PathVariable("agreementId") Long agreementId)
|
public AjaxResult getInfo(@PathVariable("agreementId") Long agreementId)
|
||||||
{
|
{
|
||||||
|
|
@ -82,7 +82,7 @@ public class BmAgreementInfoController extends BaseController
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "新增协议管理")
|
@ApiOperation(value = "新增协议管理")
|
||||||
@PreventRepeatSubmit
|
@PreventRepeatSubmit
|
||||||
@RequiresPermissions("basic:info:add")
|
//@RequiresPermissions("basic:info:add")
|
||||||
@SysLog(title = "协议管理", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增协议管理")
|
@SysLog(title = "协议管理", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增协议管理")
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody BmAgreementInfo bmAgreementInfo)
|
public AjaxResult add(@RequestBody BmAgreementInfo bmAgreementInfo)
|
||||||
|
|
@ -99,7 +99,7 @@ public class BmAgreementInfoController extends BaseController
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "修改协议管理")
|
@ApiOperation(value = "修改协议管理")
|
||||||
@PreventRepeatSubmit
|
@PreventRepeatSubmit
|
||||||
@RequiresPermissions("basic:info:edit")
|
//@RequiresPermissions("basic:info:edit")
|
||||||
@SysLog(title = "协议管理", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改协议管理")
|
@SysLog(title = "协议管理", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改协议管理")
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody BmAgreementInfo bmAgreementInfo)
|
public AjaxResult edit(@RequestBody BmAgreementInfo bmAgreementInfo)
|
||||||
|
|
@ -112,7 +112,7 @@ public class BmAgreementInfoController extends BaseController
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "删除协议管理")
|
@ApiOperation(value = "删除协议管理")
|
||||||
@PreventRepeatSubmit
|
@PreventRepeatSubmit
|
||||||
@RequiresPermissions("basic:info:remove")
|
//@RequiresPermissions("basic:info:remove")
|
||||||
@SysLog(title = "协议管理", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除协议管理")
|
@SysLog(title = "协议管理", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除协议管理")
|
||||||
@DeleteMapping("/{agreementIds}")
|
@DeleteMapping("/{agreementIds}")
|
||||||
public AjaxResult remove(@PathVariable Long[] agreementIds)
|
public AjaxResult remove(@PathVariable Long[] agreementIds)
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ public class LeaseApplyInfoController extends BaseController {
|
||||||
* 查询领料任务列表
|
* 查询领料任务列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "查询领料任务列表")
|
@ApiOperation(value = "查询领料任务列表")
|
||||||
@RequiresPermissions("lease:info:list")
|
//@RequiresPermissions("lease:info:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(LeaseApplyInfo leaseApplyInfo) {
|
public TableDataInfo list(LeaseApplyInfo leaseApplyInfo) {
|
||||||
startPage();
|
startPage();
|
||||||
|
|
@ -55,7 +55,7 @@ public class LeaseApplyInfoController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "导出领料任务列表")
|
@ApiOperation(value = "导出领料任务列表")
|
||||||
@PreventRepeatSubmit
|
@PreventRepeatSubmit
|
||||||
@RequiresPermissions("lease:info:export")
|
//@RequiresPermissions("lease:info:export")
|
||||||
@SysLog(title = "领料任务", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出领料任务")
|
@SysLog(title = "领料任务", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出领料任务")
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, LeaseApplyInfo leaseApplyInfo) {
|
public void export(HttpServletResponse response, LeaseApplyInfo leaseApplyInfo) {
|
||||||
|
|
@ -68,7 +68,7 @@ public class LeaseApplyInfoController extends BaseController {
|
||||||
* 获取领料任务详细信息
|
* 获取领料任务详细信息
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "获取领料任务详细信息")
|
@ApiOperation(value = "获取领料任务详细信息")
|
||||||
@RequiresPermissions("lease:info:query")
|
//@RequiresPermissions("lease:info:query")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
return success(leaseApplyInfoService.selectLeaseApplyInfoById(id));
|
return success(leaseApplyInfoService.selectLeaseApplyInfoById(id));
|
||||||
|
|
@ -79,7 +79,7 @@ public class LeaseApplyInfoController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "新增领料任务")
|
@ApiOperation(value = "新增领料任务")
|
||||||
@PreventRepeatSubmit
|
@PreventRepeatSubmit
|
||||||
@RequiresPermissions("lease:info:add")
|
//@RequiresPermissions("lease:info:add")
|
||||||
@SysLog(title = "领料任务", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增领料任务")
|
@SysLog(title = "领料任务", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增领料任务")
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody LeaseApplyRequestVo leaseApplyRequestVo) {
|
public AjaxResult add(@RequestBody LeaseApplyRequestVo leaseApplyRequestVo) {
|
||||||
|
|
@ -95,7 +95,7 @@ public class LeaseApplyInfoController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "修改领料任务")
|
@ApiOperation(value = "修改领料任务")
|
||||||
@PreventRepeatSubmit
|
@PreventRepeatSubmit
|
||||||
@RequiresPermissions("lease:info:edit")
|
//@RequiresPermissions("lease:info:edit")
|
||||||
@SysLog(title = "领料任务", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改领料任务")
|
@SysLog(title = "领料任务", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改领料任务")
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody LeaseApplyRequestVo leaseApplyRequestVo) {
|
public AjaxResult edit(@RequestBody LeaseApplyRequestVo leaseApplyRequestVo) {
|
||||||
|
|
@ -111,7 +111,7 @@ public class LeaseApplyInfoController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "删除领料任务")
|
@ApiOperation(value = "删除领料任务")
|
||||||
@PreventRepeatSubmit
|
@PreventRepeatSubmit
|
||||||
@RequiresPermissions("lease:info:remove")
|
//@RequiresPermissions("lease:info:remove")
|
||||||
@SysLog(title = "领料任务", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除领料任务")
|
@SysLog(title = "领料任务", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除领料任务")
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue