fix(warehouse): 更新接口参数为可选

- 将 updateReturnType 接口的 returnType 参数设为可选
- 将 updateWithdrawlock 接口的 withdrawLock 参数设为可选- 将 updateRemark 接口的 remark 参数设为可选
This commit is contained in:
2025-10-18 13:17:50 +08:00
parent c50422f91a
commit b53839e677

View File

@@ -115,12 +115,12 @@ public class SysOaWarehouseMasterController extends BaseController {
} }
// 修改returnType // 修改returnType
@PutMapping("/returnType") @PutMapping("/returnType")
public R<Void> updateReturnType(@RequestParam Long masterId, @RequestParam Integer returnType) { public R<Void> updateReturnType(@RequestParam Long masterId, @RequestParam(required = false) Integer returnType) {
return toAjax(iSysOaWarehouseMasterService.updateReturnType(masterId, returnType)); return toAjax(iSysOaWarehouseMasterService.updateReturnType(masterId, returnType));
} }
// 修改withdrawlock // 修改withdrawlock
@PutMapping("/withdrawlock") @PutMapping("/withdrawlock")
public R<Void> updateWithdrawlock(@RequestParam Long masterId, @RequestParam Integer withdrawLock) { public R<Void> updateWithdrawlock(@RequestParam Long masterId, @RequestParam(required = false) Integer withdrawLock) {
return toAjax(iSysOaWarehouseMasterService.updateWithdrawLock(masterId, withdrawLock)); return toAjax(iSysOaWarehouseMasterService.updateWithdrawLock(masterId, withdrawLock));
} }
@@ -173,7 +173,7 @@ public class SysOaWarehouseMasterController extends BaseController {
* 单独修改remark * 单独修改remark
*/ */
@PutMapping("/updateRemark") @PutMapping("/updateRemark")
public R<Void> updateRemark(@RequestParam Long masterId, @RequestParam String remark) { public R<Void> updateRemark(@RequestParam Long masterId, @RequestParam(required = false) String remark) {
return toAjax(iSysOaWarehouseMasterService.updateRemark(masterId, remark)); return toAjax(iSysOaWarehouseMasterService.updateRemark(masterId, remark));
} }
} }