Browse Source

add findByIdOrNum

xiewj 1 year ago
parent
commit
9fa8b91207

+ 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);
 }