Commit bddf5f9d232553dc94f4eb6a39231e588f114973
1 parent
40d69a4b
feat(garden): 添加物料接口实现类注解支持
- 为MaterialApiImpl类添加@Service注解以支持Spring容器管理 - 添加@Validated注解以启用方法级别参数校验 - 引入jakarta.annotation.Resource依赖以支持资源注入 - 完善类级别的JavaDoc注释信息
Showing
2 changed files
with
5 additions
and
1 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/api/material/MaterialApiImpl.java
| @@ -5,6 +5,8 @@ import com.zteits.urbanops.module.garden.api.material.dto.MaterialInventoryOutDt | @@ -5,6 +5,8 @@ import com.zteits.urbanops.module.garden.api.material.dto.MaterialInventoryOutDt | ||
| 5 | import com.zteits.urbanops.module.garden.controller.admin.materialinventoryout.vo.MaterialInventoryOutSaveReqVO; | 5 | import com.zteits.urbanops.module.garden.controller.admin.materialinventoryout.vo.MaterialInventoryOutSaveReqVO; |
| 6 | import com.zteits.urbanops.module.garden.service.materialinventoryout.MaterialInventoryOutService; | 6 | import com.zteits.urbanops.module.garden.service.materialinventoryout.MaterialInventoryOutService; |
| 7 | import jakarta.annotation.Resource; | 7 | import jakarta.annotation.Resource; |
| 8 | +import org.springframework.stereotype.Service; | ||
| 9 | +import org.springframework.validation.annotation.Validated; | ||
| 8 | 10 | ||
| 9 | /** | 11 | /** |
| 10 | * @Classname MaterialApiImpl | 12 | * @Classname MaterialApiImpl |
| @@ -12,6 +14,8 @@ import jakarta.annotation.Resource; | @@ -12,6 +14,8 @@ import jakarta.annotation.Resource; | ||
| 12 | * @Date 2025/12/16 16:21 | 14 | * @Date 2025/12/16 16:21 |
| 13 | * @Created by wangqian | 15 | * @Created by wangqian |
| 14 | */ | 16 | */ |
| 17 | +@Service | ||
| 18 | +@Validated | ||
| 15 | public class MaterialApiImpl implements MaterialApi{ | 19 | public class MaterialApiImpl implements MaterialApi{ |
| 16 | 20 | ||
| 17 | @Resource | 21 | @Resource |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanDetailRespVO.java
| @@ -74,4 +74,4 @@ public class MaintainPlanDetailRespVO { | @@ -74,4 +74,4 @@ public class MaintainPlanDetailRespVO { | ||
| 74 | @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) | 74 | @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| 75 | @ExcelProperty("创建时间") | 75 | @ExcelProperty("创建时间") |
| 76 | private LocalDateTime createTime; | 76 | private LocalDateTime createTime; |
| 77 | -} | ||
| 78 | \ No newline at end of file | 77 | \ No newline at end of file |
| 78 | +} |