소스 검색

add findByIdOrNum

xiewj 1 년 전
부모
커밋
9fa8b91207
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      720yun_fd_manage/gis_mapper/src/main/java/com/gis/mapper/WorkMapper.java

+ 1 - 1
720yun_fd_manage/gis_mapper/src/main/java/com/gis/mapper/WorkMapper.java

@@ -54,6 +54,6 @@ public interface WorkMapper extends IBaseStrMapper<WorkEntity, String> {
     @SelectProvider(type = BaseProvider.class, method = "selectSql")
     List<ReportWorkVo> groupByTypeSql(String format);
 
-    @Select("select id from tb_work where is_delete=0 and (id =#{id} or num =#{id})")
+    @Select("select id,num from tb_work where is_delete=0 and (id =#{id} or num =#{id})")
     WorkEntity findByIdOrNum(String id);
 }