|
|
@ -80,16 +80,7 @@ public class PurPlanController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
IoOrderDetailBizService ioOrderDetailBizService;
|
|
|
|
IoOrderDetailBizService ioOrderDetailBizService;
|
|
|
|
|
|
|
|
|
|
|
|
// @Resource
|
|
|
|
|
|
|
|
// BasicCorpService basicCorpService;
|
|
|
|
|
|
|
|
// @Resource
|
|
|
|
|
|
|
|
// UdiRelevanceService udiRelevanceService;
|
|
|
|
|
|
|
|
// @Resource
|
|
|
|
|
|
|
|
// StockOrderDetailService stockOrderDetailService;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// @Resource
|
|
|
|
|
|
|
|
// StockOrderService stockOrderService;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 新增采购计划
|
|
|
|
* 新增采购计划
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -234,30 +225,8 @@ public class PurPlanController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ResultVOUtils.success("更新成功!");
|
|
|
|
return ResultVOUtils.success("更新成功!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
|
|
|
// * 新增采购计划
|
|
|
|
|
|
|
|
// */
|
|
|
|
|
|
|
|
// @RepeatSubmit()
|
|
|
|
|
|
|
|
// @PostMapping("/purchase/plan")
|
|
|
|
|
|
|
|
// public BaseResponse add(@RequestBody PurPlanEntity purApplyRequest) {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// purPlanService.insert(purApplyRequest);
|
|
|
|
|
|
|
|
// return ResultVOUtils.success("新增成功!");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
|
|
|
// * 修改采购计划
|
|
|
|
|
|
|
|
// */
|
|
|
|
|
|
|
|
// @RepeatSubmit()
|
|
|
|
|
|
|
|
// @PutMapping("/purchase/plan")
|
|
|
|
|
|
|
|
// public BaseResponse edit(@RequestBody PurPlanEntity purApplyRequest) {
|
|
|
|
|
|
|
|
// purPlanService.update(purApplyRequest);
|
|
|
|
|
|
|
|
// return ResultVOUtils.success("删除成功");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询采购计划列表
|
|
|
|
* 查询采购计划列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -273,64 +242,6 @@ public class PurPlanController {
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
|
|
|
// * 删除采购计划
|
|
|
|
|
|
|
|
// *
|
|
|
|
|
|
|
|
// * @param ids 主键串
|
|
|
|
|
|
|
|
// */
|
|
|
|
|
|
|
|
// @DeleteMapping("/purchase/plan/{ids}")
|
|
|
|
|
|
|
|
// public BaseResponse remove(@NotEmpty(message = "主键不能为空")
|
|
|
|
|
|
|
|
// @PathVariable Integer[] ids) {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// List<Integer> idArray = Arrays.asList(ids);
|
|
|
|
|
|
|
|
// if (CollUtil.isNotEmpty(idArray)) {
|
|
|
|
|
|
|
|
// purPlanService.deleteByIds(idArray);
|
|
|
|
|
|
|
|
// for (Integer id : idArray) {
|
|
|
|
|
|
|
|
// purPlanDetailService.deleteByOrderId(id + "");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// return ResultVOUtils.success("删除成功");
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
|
|
|
// * 新增采购计划
|
|
|
|
|
|
|
|
// */
|
|
|
|
|
|
|
|
// @RepeatSubmit()
|
|
|
|
|
|
|
|
// @PostMapping("/purchase/plan/detail")
|
|
|
|
|
|
|
|
// public BaseResponse detailAdd(@RequestBody PurPlanDetailEntity purPlanDetailRequest) {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// purPlanDetailService.insert(purPlanDetailRequest);
|
|
|
|
|
|
|
|
// return ResultVOUtils.success("新增成功");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
|
|
|
// * 修改采购计划
|
|
|
|
|
|
|
|
// */
|
|
|
|
|
|
|
|
// @RepeatSubmit()
|
|
|
|
|
|
|
|
// @PutMapping("/purchase/plan/detail")
|
|
|
|
|
|
|
|
// public BaseResponse detailEdit(@RequestBody PurPlanDetailEntity purPlanDetailRequest) {
|
|
|
|
|
|
|
|
// purPlanDetailService.update(purPlanDetailRequest);
|
|
|
|
|
|
|
|
// return ResultVOUtils.success("修改成功");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
|
|
|
// * 删除采购计划
|
|
|
|
|
|
|
|
// *
|
|
|
|
|
|
|
|
// * @param ids 主键串
|
|
|
|
|
|
|
|
// */
|
|
|
|
|
|
|
|
// @DeleteMapping("/purchase/plan/detail/{ids}")
|
|
|
|
|
|
|
|
// public BaseResponse detailRemove(@NotEmpty(message = "主键不能为空")
|
|
|
|
|
|
|
|
// @PathVariable Long[] ids) {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// purPlanDetailService.deleteByIds(Arrays.asList(ids));
|
|
|
|
|
|
|
|
// return ResultVOUtils.success("删除成功");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 添加申购单到采购单里面
|
|
|
|
* 添加申购单到采购单里面
|
|
|
@ -379,9 +290,6 @@ public class PurPlanController {
|
|
|
|
purPlanDetailService.deleteByIds(ids);
|
|
|
|
purPlanDetailService.deleteByIds(ids);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean falg= purPlanDetailService.insertPurPlanDetailEntity(purPlanDetailEntityList);
|
|
|
|
boolean falg= purPlanDetailService.insertPurPlanDetailEntity(purPlanDetailEntityList);
|
|
|
|
if(falg){
|
|
|
|
if(falg){
|
|
|
|
//查询申购单
|
|
|
|
//查询申购单
|
|
|
|