增加批量新增入库或出库单据接口

This commit is contained in:
季圣华
2023-12-10 14:42:20 +08:00
parent bb1b20444d
commit 92e92f5a64
2 changed files with 59 additions and 0 deletions

View File

@@ -632,4 +632,21 @@ public class DepotHeadController {
objectMap.put("total", total);
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
}
/**
* 批量新增入库或出库单据
* @param jsonObject
* @param request
* @return
* @throws Exception
*/
@PostMapping(value = "/batchAddDepotHeadAndDetail")
@ApiOperation(value = "批量新增入库或出库单据")
public Object batchAddDepotHeadAndDetail(@RequestBody JSONObject jsonObject,
HttpServletRequest request) throws Exception{
JSONObject result = ExceptionConstants.standardSuccess();
String ids = jsonObject.getString("ids");
depotHeadService.batchAddDepotHeadAndDetail(ids, request);
return result;
}
}