‘chenzhilei’ 2 ay önce
ebeveyn
işleme
d78c157758

+ 5 - 5
src/main/java/com/webserver/core/zdUnitCode/ZdUnitCodeMapper.java

@@ -10,10 +10,10 @@ import org.mapstruct.Mapper;
 @Mapper
 public interface ZdUnitCodeMapper {
     @Select("SELECT zucode.code,zucode.name,zuclass.name as className FROM zd_unit_code zucode left join zd_unit_class zuclass on zucode.class_code = zuclass.code")
-//    @Results({
-//            @Result(column = "deptno", property = "code"),
-//            @Result(column = "deptname", property = "name"),
-//            @Result(column = "depttype", property = "className")
-//    })
+    @Results({
+            @Result(column = "code", property = "deptno"),
+            @Result(column = "name", property = "deptname"),
+            @Result(column = "className", property = "depttype")
+    })
     List<ZdUnitCode> selectByAge();
 }