修改森林检测模块
This commit is contained in:
		| @@ -4,6 +4,8 @@ import com.ruoyi.system.domain_yada.ChangeTable; | ||||
| import com.ruoyi.system.domain_yada.CloumnarTable; | ||||
| import com.ruoyi.system.domain_yada.TypeConversion; | ||||
| import com.ruoyi.system.domain_yada.TypeTable; | ||||
| import org.apache.ibatis.annotations.Param; | ||||
| import org.springframework.web.bind.annotation.RequestParam; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| @@ -13,7 +15,7 @@ import java.util.List; | ||||
|  */ | ||||
| public interface ForestDetectionMapper { | ||||
|  | ||||
|     List<TypeTable> selectType(); | ||||
|     List<TypeTable> selectType(@Param("year1") String year1); | ||||
|  | ||||
|     List<CloumnarTable> selectCloumnar(); | ||||
|  | ||||
|   | ||||
| @@ -4,6 +4,7 @@ import com.ruoyi.system.domain_yada.ChangeTable; | ||||
| import com.ruoyi.system.domain_yada.CloumnarTable; | ||||
| import com.ruoyi.system.domain_yada.TypeConversion; | ||||
| import com.ruoyi.system.domain_yada.TypeTable; | ||||
| import org.apache.ibatis.annotations.Param; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| @@ -13,7 +14,7 @@ import java.util.List; | ||||
|  */ | ||||
| public interface IForestDetectionService { | ||||
|  | ||||
|     List<TypeTable> selectType(); | ||||
|     List<TypeTable> selectType(@Param("year1") String year1); | ||||
|  | ||||
|     List<CloumnarTable> selectCloumnar(); | ||||
|  | ||||
|   | ||||
| @@ -6,6 +6,7 @@ import com.ruoyi.system.domain_yada.TypeConversion; | ||||
| import com.ruoyi.system.domain_yada.TypeTable; | ||||
| import com.ruoyi.system.mapper_yada.ForestDetectionMapper; | ||||
| import com.ruoyi.system.service_yada.IForestDetectionService; | ||||
| import org.apache.ibatis.annotations.Param; | ||||
| import org.springframework.stereotype.Service; | ||||
| import org.springframework.web.bind.annotation.RequestParam; | ||||
|  | ||||
| @@ -23,8 +24,8 @@ public class ForestDetectionServiceImpl implements IForestDetectionService { | ||||
|     private ForestDetectionMapper mapper; | ||||
|  | ||||
|     @Override | ||||
|     public List<TypeTable> selectType() { | ||||
|         return mapper.selectType(); | ||||
|     public List<TypeTable> selectType(@Param("year1") String year1) { | ||||
|         return mapper.selectType(year1); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|   | ||||
| @@ -13,6 +13,9 @@ | ||||
|  | ||||
|     <select id="selectType" resultType="com.ruoyi.system.domain_yada.TypeTable"> | ||||
|         SELECT  id,class1,percentage,china,year1 FROM  type_table | ||||
|         <if test="year1!= null and year1 !=''"> | ||||
|             where year1 = #{year1} | ||||
|         </if> | ||||
|     </select> | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user