移交接口修改

This commit is contained in:
bonus 2025-06-16 13:12:03 +08:00
parent 84a78feb16
commit c389361771
1 changed files with 1 additions and 3 deletions

View File

@ -260,9 +260,7 @@ public class BmQrBoxServiceImpl implements BmQrBoxService {
*/
@Override
public AjaxResult appTransfer(BmQrBoxInfo bmQrBoxInfo) {
if (null == bmQrBoxInfo.getInputUser() || 0 >= bmQrBoxInfo.getInputUser()) {
return AjaxResult.error(500, "请选择移交人");
}
bmQrBoxInfo.setBoxCode(null).setBoxName(null).setBoxType(null).setStatus(QrBoxStatusEnum.QR_BOX_STATUS_WAIT_RECEIVE.getStatus().toString());
bmQrBoxInfo.setTransferUser(SecurityUtils.getUserId());
return 0 < bmQrBoxMapper.updateBmQrcodeInfoById(bmQrBoxInfo) ? AjaxResult.success(HttpCodeEnum.SUCCESS.getMsg()) :