| | |
| | | @ApiImplicitParam(name = Constant.Q.LIMIT, value = Constant.QV.LIMIT, required = true, dataType = Constant.QT.INT), |
| | | @ApiImplicitParam(name = Constant.Q.ORDER_FIELD, value = Constant.QV.ORDER_FIELD, dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = Constant.Q.ORDER, value = Constant.QV.ORDER, dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = "code", value = "物品流转单编号", dataType = Constant.QT.STRING, format = "code^LK"), |
| | | @ApiImplicitParam(name = "softwareName", value = "物品名称", dataType = Constant.QT.STRING, format = "software_name^EQ"), |
| | | @ApiImplicitParam(name = "softwareIdentity", value = "物品编号", dataType = Constant.QT.STRING, format = "software_identity^EQ") |
| | | @ApiImplicitParam(name = "code", value = "物品流转单编号", dataType = Constant.QT.STRING, format = "a.code^LK"), |
| | | @ApiImplicitParam(name = "softwareName", value = "物品名称", dataType = Constant.QT.STRING, format = "p.software_name^LK"), |
| | | @ApiImplicitParam(name = "softwareIdentity", value = "物品编号", dataType = Constant.QT.STRING, format = "p.software_identity^LK") |
| | | }) |
| | | public PageResult<ItemCirculatOrder> page(@ApiIgnore @QueryParam QueryFilter queryFilter){ |
| | | |
| | |
| | | map.put("funCode", "item_circulat_order"); |
| | | map.put("projectId",itemCirculatOrderDto.getProjectId().toString()); |
| | | itemCirculatOrderDto.getCirculatOrder().setCode(sysCodeRuleService.getNewCode(map)); |
| | | Boolean result = itemCirculatOrderService.save(itemCirculatOrderDto); |
| | | Long result = itemCirculatOrderService.save(itemCirculatOrderDto); |
| | | return Result.ok(itemCirculatOrderDto.getCirculatOrder().getId()); |
| | | } |
| | | |
| | |
| | | public Result<Long> update(@RequestBody ItemCirculatOrderDto itemCirculatOrderDto){ |
| | | //效验数据 |
| | | ValidatorUtils.validateEntity(itemCirculatOrderDto.getCirculatOrder(), UpdateGroup.class, DefaultGroup.class); |
| | | Boolean result = itemCirculatOrderService.save(itemCirculatOrderDto); |
| | | |
| | | return Result.ok(itemCirculatOrderDto.getCirculatOrder().getId()); |
| | | Long result = itemCirculatOrderService.save(itemCirculatOrderDto); |
| | | //返回的是项目入库的ID |
| | | return Result.ok(result); |
| | | } |
| | | |
| | | @DeleteMapping("deleteCirculat") |