Commit bddf5f9d232553dc94f4eb6a39231e588f114973

Authored by 王彪总
1 parent 40d69a4b

feat(garden): 添加物料接口实现类注解支持

- 为MaterialApiImpl类添加@Service注解以支持Spring容器管理
- 添加@Validated注解以启用方法级别参数校验
- 引入jakarta.annotation.Resource依赖以支持资源注入
- 完善类级别的JavaDoc注释信息
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 5 import com.zteits.urbanops.module.garden.controller.admin.materialinventoryout.vo.MaterialInventoryOutSaveReqVO;
6 6 import com.zteits.urbanops.module.garden.service.materialinventoryout.MaterialInventoryOutService;
7 7 import jakarta.annotation.Resource;
  8 +import org.springframework.stereotype.Service;
  9 +import org.springframework.validation.annotation.Validated;
8 10  
9 11 /**
10 12 * @Classname MaterialApiImpl
... ... @@ -12,6 +14,8 @@ import jakarta.annotation.Resource;
12 14 * @Date 2025/12/16 16:21
13 15 * @Created by wangqian
14 16 */
  17 +@Service
  18 +@Validated
15 19 public class MaterialApiImpl implements MaterialApi{
16 20  
17 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 74 @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
75 75 @ExcelProperty("创建时间")
76 76 private LocalDateTime createTime;
77   -}
78 77 \ No newline at end of file
  78 +}
... ...