| | |
| | | * @param date |
| | | * @return |
| | | */ |
| | | Integer countryStatics(@Param("departureCity") String departureCity, @Param("date") String date); |
| | | Integer countryStatics(@Param("departureCity") String departureCity, @Param("date") String date,@Param("localCity")String localCity); |
| | | } |
| | |
| | | comAcidStaticVO.setAreaName(areaName); |
| | | List<ComAcidAreaVO> comAcidAreaVOS=new ArrayList<>(); |
| | | for(String countryName:country){ |
| | | Integer count=this.baseMapper.countryStatics(countryName,date); |
| | | Integer count=this.baseMapper.countryStatics(countryName,date,areaName); |
| | | ComAcidAreaVO comAcidAreaVO=new ComAcidAreaVO(); |
| | | comAcidAreaVO.setName(countryName); |
| | | comAcidAreaVO.setCount(count); |
| | |
| | | </select> |
| | | |
| | | <select id="countryStatics" resultType="Integer"> |
| | | select count(*) from com_act_acid_record where departure_city like concat('%',#{departureCity},'%') <if test="date!=null and date!=''"> and create_time between concat(#{date},' 00:00:00') and concat(#{date},' 23:23:59')</if> |
| | | select count(*) from com_act_acid_record where departure_city like concat('%',#{departureCity},'%') <if test="date!=null and date!=''"> and create_time between concat(#{date},' 00:00:00') and concat(#{date},' 23:23:59')</if> and local_city like concat('%',#{localCity},'%') |
| | | </select> |
| | | |
| | | <select id="fiveCountPlus" resultType="com.panzhihua.common.model.vos.community.reserve.FiveCount"> |