| | |
| | | return procurementRecordService.updateCustom(customStorage); |
| | | } |
| | | |
| | | @Delete("/delteCustom") |
| | | @DeleteMapping("/deleteCustom") |
| | | @Log(title = "自定义入库-入库管理-删除入库", businessType = BusinessType.DELETE) |
| | | @Transactional |
| | | public AjaxResult deleteCustom(@RequestBody List<Long> ids) { |
| | |
| | | return AjaxResult.success(procurementRecordService.updateManagementByCustom(procurementDto)); |
| | | } |
| | | |
| | | @GetMapping("/detailManagementByCustom") |
| | | @ApiOperation(value = "自定义入库-详情") |
| | | public AjaxResult detailManagementByCustom(ProcurementManagementUpdateDto procurementDto) { |
| | | return AjaxResult.success(procurementRecordService.detailManagementByCustom(procurementDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "采购入库-详情") |
| | | @GetMapping("/detail") |
| | | public AjaxResult detail(ProcurementUpdateDto procurementDto) { |
| | | return AjaxResult.success(procurementRecordService.detail(procurementDto)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @PostMapping("/del") |
| | | @Log(title = "采购入库-入库管理-删除入库", businessType = BusinessType.DELETE) |
| | | @Transactional |
| | |
| | | * 物品类型 |
| | | */ |
| | | private String itemType; |
| | | /** |
| | | * 箱数 |
| | | */ |
| | | private Integer boxNum; |
| | | /** |
| | | * 每箱规格 |
| | | */ |
| | | private String cartonSpecifications; |
| | | } |
| | |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | /** |
| | | * 每箱数量 |
| | | */ |
| | | private Integer boxNum; |
| | | /** |
| | | * 每箱规格 |
| | | */ |
| | | private String cartonSpecifications; |
| | | } |
| | |
| | | AjaxResult deleteCustom(List<Long> ids); |
| | | |
| | | int updateManagementByCustom(ProcurementManagementUpdateDto procurementDto); |
| | | |
| | | CustomStorage detailManagementByCustom(ProcurementManagementUpdateDto procurementDto); |
| | | |
| | | ProcurementRecordStorage detail(ProcurementUpdateDto procurementDto); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public CustomStorage detailManagementByCustom(ProcurementManagementUpdateDto procurementDto) { |
| | | if(procurementDto == null) return null; |
| | | return customStorageMapper.selectById(procurementDto.getId()); |
| | | } |
| | | |
| | | @Override |
| | | public ProcurementRecordStorage detail(ProcurementUpdateDto procurementDto) { |
| | | if(procurementDto == null) return null; |
| | | return procurementRecordMapper.selectById(procurementDto.getId()); |
| | | } |
| | | |
| | | @Override |
| | | public int add(ProcurementAddDto procurementDto) { |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | | // 批量新增 |
| | |
| | | t1.inbound_num, |
| | | t1.create_time, |
| | | t1.create_by, |
| | | t2.item_type |
| | | t2.item_type, |
| | | t2.box_num, |
| | | t2.carton_specifications |
| | | from procurement_record_out t1 |
| | | left join custom_storage t2 on t2.id = t1.procurement_record_storage_id |
| | | <where> |