Commit eced1a27 by zlr

右侧搜索

parent e5708f82
...@@ -43,4 +43,10 @@ public class EtStatsAdminController { ...@@ -43,4 +43,10 @@ public class EtStatsAdminController {
return ResultVo.success(etStatsService.getCacheAgencyPercentageStats(vo)); return ResultVo.success(etStatsService.getCacheAgencyPercentageStats(vo));
} }
@ApiOperation("儿童搜索")
@PostMapping(value = "/agencyChildSearch")
public ResultVo agencyChildSearch(@RequestBody StatsReqVo vo) {
return ResultVo.success(etStatsService.agencyChildSearch(vo.getKeyword()));
}
} }
...@@ -4,9 +4,11 @@ import com.baomidou.dynamic.datasource.annotation.DS; ...@@ -4,9 +4,11 @@ import com.baomidou.dynamic.datasource.annotation.DS;
import com.zq.common.constant.DBName; import com.zq.common.constant.DBName;
import com.zq.portal.vo.StatsReqVo; import com.zq.portal.vo.StatsReqVo;
import com.zq.portal.vo.StatsVo; import com.zq.portal.vo.StatsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
import java.util.Map;
@DS(DBName.GXET) @DS(DBName.GXET)
@Repository @Repository
...@@ -51,4 +53,12 @@ public interface EtStatsDao { ...@@ -51,4 +53,12 @@ public interface EtStatsDao {
* @return * @return
*/ */
StatsVo getAreaOrphanStats(StatsReqVo vo); StatsVo getAreaOrphanStats(StatsReqVo vo);
/**
* 搜索
*
* @param keyword
* @return
*/
List<Map<String, Object>> search(@Param("keyword") String keyword);
} }
...@@ -201,4 +201,14 @@ public class EtStatsService { ...@@ -201,4 +201,14 @@ public class EtStatsService {
return agencyUnderChildStats; return agencyUnderChildStats;
} }
/**
* 搜索
*
* @param keyword
* @return
*/
public Object agencyChildSearch(String keyword) {
return etStatsDao.search(keyword);
}
} }
...@@ -81,4 +81,13 @@ ...@@ -81,4 +81,13 @@
</if> </if>
</select> </select>
<select id="search" resultType="java.util.Map">
SELECT AXCP0002 'name' ,AXCP0005 'idCard', AJEF0124 'fullAddress'
FROM
jep01
WHERE
AXCP0002 = #{keyword}
OR AXCP0005 = #{keyword}
</select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment