| | |
| | | * @author ruoyi |
| | | * @date 2025-12-27 |
| | | */ |
| | | @Api(description = "供体维护记录") |
| | | @Api(description = "供体维护记录",tags={"供体维护记录"}) |
| | | @RestController |
| | | @RequestMapping("/project/donatemaintenance") |
| | | public class ServiceDonatemaintenanceController extends BaseController { |
| | |
| | | public AjaxResult add(@RequestBody ServiceDonatemaintenanceVO serviceDonatemaintenanceVO) { |
| | | ServiceDonatemaintenanceEntity serviceDonatemaintenance = DtoConversionUtils.sourceToTarget(serviceDonatemaintenanceVO, ServiceDonatemaintenanceEntity.class); |
| | | serviceDonatemaintenance.setItemDesc(serviceDonatemaintenanceVO.getItemDesc().toString()); |
| | | return toAjax(serviceDonatemaintenanceService.save(serviceDonatemaintenance)); |
| | | boolean result = serviceDonatemaintenanceService.save(serviceDonatemaintenance); |
| | | if (result) { |
| | | return AjaxResult.success(serviceDonatemaintenance.getId()); |
| | | } else |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | /** |