Merge branch 'zhaozhengjie1104' into test
# Conflicts:
# springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
# springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComActReserveAnswerContentMapper.xml
| | |
| | | @ApiModelProperty("等级是否查询全部(1.是 2.否)") |
| | | private Integer levelIsAll; |
| | | |
| | | @ApiModelProperty("是否死亡人员 (1.是 2.否)") |
| | | private Integer isDeath; |
| | | public interface levelIsAll{ |
| | | int yes = 1; |
| | | int no = 2; |
| | |
| | | |
| | | @ApiModelProperty("是否是首页应用(1.是 2.否)") |
| | | private Integer adverPositionApplication; |
| | | |
| | | @ApiModelProperty("社区名称") |
| | | private String communityName; |
| | | } |
| | |
| | | headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | | //设置头字体 |
| | | WriteFont headWriteFont = new WriteFont(); |
| | | headWriteFont.setFontHeightInPoints((short)14); |
| | | headWriteFont.setFontHeightInPoints((short)10); |
| | | headWriteFont.setBold(true); |
| | | headWriteCellStyle.setWriteFont(headWriteFont); |
| | | |
| | | |
| | | WriteCellStyle contentWriteCellStyle = new WriteCellStyle(); |
| | | //设置表格内容字体 |
| | | WriteFont writeFont = new WriteFont(); |
| | | writeFont.setFontHeightInPoints((short)10); |
| | | //设置 水平居中 |
| | | contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
| | | //设置 垂直居中 |
| | | contentWriteCellStyle.setVerticalAlignment(VerticalAlignment.CENTER); |
| | | contentWriteCellStyle.setWriteFont(writeFont); |
| | | |
| | | contentWriteCellStyle.setWrapped(true); |
| | | HorizontalCellStyleStrategy horizontalCellStyleStrategy = |
| | |
| | | public R getCommunityLists() { |
| | | return communityService.getCommunityLists(); |
| | | } |
| | | @ApiOperation(value = "查询西区社区列表") |
| | | @GetMapping("community/westList") |
| | | public R getWestCommunityLists() { |
| | | return communityService.getWestCommunityLists(); |
| | | } |
| | | |
| | | @ApiOperation(value = "随手拍详情", response = ComActEasyPhotoVO.class) |
| | | @GetMapping("easyphoto") |
| | |
| | | |
| | | Integer columnWidth = this.dataLength(cellDataList, cell, isHead); |
| | | if (columnWidth >= 0) { |
| | | if (columnWidth > 30) { |
| | | columnWidth = 30; |
| | | if (columnWidth > 25) { |
| | | columnWidth = 25; |
| | | } |
| | | |
| | | Integer maxColumnWidth = (Integer)((Map)maxColumnWidthMap).get(cell.getColumnIndex()); |
| | | if (maxColumnWidth == null || columnWidth > maxColumnWidth) { |
| | | ((Map)maxColumnWidthMap).put(cell.getColumnIndex(), columnWidth); |
| | | writeSheetHolder.getSheet().setColumnWidth(cell.getColumnIndex(), columnWidth * 90); |
| | | writeSheetHolder.getSheet().setColumnWidth(cell.getColumnIndex(), columnWidth * 86); |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询西区社区列表 |
| | | * |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/eventgrid/community/westList") |
| | | public R getWestCommunityLists() { |
| | | return comActService.getWestCommunityLists(); |
| | | } |
| | | |
| | | /** |
| | | * 随手拍发放奖励 |
| | | * |
| | | * @param grantRewardDTO |
| | |
| | | + "FROM " + " com_act c " + " left join com_street as cs on cs.street_id = c.street_id " |
| | | + " HAVING distance >= 0 and distance <= #{communityDTO.distance} " + "ORDER BY " + " distance ASC") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByNearby(@Param("communityDTO") SearchCommunityDTO communityDTO); |
| | | |
| | | @Select("select t.community_id,t.`name` from com_act t left join com_street t1 on t.street_id = t1.street_id where t.state = 0 and t1.street_id in (12,14,15,16,17,18)") |
| | | List<EventGridCommunityAdminVO> getWestCommunityLists(); |
| | | } |
| | |
| | | + "AND cmp.unit_no = #{comMngPopulationVO.unitNo} " + " </if> " |
| | | + "<if test='comMngPopulationVO.houseNo != null and comMngPopulationVO.houseNo != ""'>" |
| | | + "AND cmp.house_no = #{comMngPopulationVO.houseNo} " + " </if> " |
| | | + "<if test='comMngPopulationVO.isDeath != null'>" |
| | | + "AND cmp.death = #{comMngPopulationVO.isDeath} " + " </if> " |
| | | + "<if test='comMngPopulationVO.sex != null and comMngPopulationVO.sex != ""'>" |
| | | + "AND cmp.sex = #{comMngPopulationVO.sex} " + " </if> " |
| | | + "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageStartTime != "" and comMngPopulationVO.ageEndTime == null'>" |
| | |
| | | R getCommunityLists(); |
| | | |
| | | /** |
| | | * 查询西区社区列表 |
| | | * |
| | | * @return 社区列表 |
| | | */ |
| | | R getWestCommunityLists(); |
| | | |
| | | /** |
| | | * 查询社区所有列表 |
| | | * |
| | | * @return 社区列表 |
| | |
| | | return R.ok(this.comActDAO.getCommunityLists()); |
| | | } |
| | | |
| | | @Override |
| | | public R getWestCommunityLists() { |
| | | return R.ok(this.comActDAO.getWestCommunityLists()); |
| | | } |
| | | |
| | | /** |
| | | * 查询社区所有列表 |
| | | * |
| | |
| | | UNION ALL |
| | | select id,cover,publish_at as show_time,5 as type,jump_url,jump_type from com_pb_dyn where status =2 and cover is not null and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,img_url,publish_time as show_time,6 as type,"" as jump_url,"" as jump_type from com_act_reserve where status =2 and community_id =#{communityId} |
| | | select id,img_url as cover,publish_time as show_time,6 as type,"" as jump_url,"" as jump_type from com_act_reserve where status =2 and community_id =#{communityId} |
| | | UNION ALL |
| | | select id,photo_path_list,examine_at as show_time,7 as type,"" as jump_url,"" as jump_type from com_act_easy_photo where status =2 and community_id =#{communityId} |
| | | select id,logo as cover,release_at as show_time,7 as type,"" as jump_url,"" as jump_type from com_act_easy_photo_activity where status =2 and community_id =#{communityId} |
| | | order by show_time desc limit 30 |
| | | </select> |
| | | |
| | |
| | | GROUP BY ac.id |
| | | order by ac.reserve_record_id asc,ac.id asc |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <select id="pageReserveAdmin" parameterType="com.panzhihua.common.model.dtos.community.reserve.PageReserveAdminDTO" |
| | | resultType="com.panzhihua.common.model.vos.community.reserve.ComActReserveListAdminVO"> |
| | | SELECT |
| | | id, |
| | | community_id, |
| | | `type`, |
| | | title, |
| | | t.id, |
| | | t.community_id, |
| | | t.`type`, |
| | | t.title, |
| | | view_num, |
| | | join_all_count, |
| | | join_count, |
| | | `status`, |
| | | t.`status`, |
| | | publish_time, |
| | | create_at, |
| | | t.create_at, |
| | | end_time, |
| | | adver_position_top, |
| | | adver_position_application |
| | | adver_position_application, |
| | | t1.`name` as community_name |
| | | FROM |
| | | com_act_reserve |
| | | com_act_reserve t left join com_act t1 on t.community_id = t1.community_id |
| | | <where> |
| | | and is_del = 2 |
| | | and t.is_del = 2 |
| | | <if test="pageReserveDTO.communityId != null and pageReserveDTO.communityId !=0"> |
| | | and community_id = #{pageReserveDTO.communityId} |
| | | and t.community_id = #{pageReserveDTO.communityId} |
| | | </if> |
| | | <if test="pageReserveDTO.communityId ==0"> |
| | | and t1.street_id in (12,14,15,16,17,18) |
| | | </if> |
| | | <if test="pageReserveDTO.type != null and pageReserveDTO.type.size > 0"> |
| | | and `type` in |
| | | and t.`type` in |
| | | <foreach collection='pageReserveDTO.type' item='id' index='index' open='(' close=')' separator=',' > |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="pageReserveDTO.status != null"> |
| | | and status = #{pageReserveDTO.status} |
| | | and t.status = #{pageReserveDTO.status} |
| | | </if> |
| | | <if test="pageReserveDTO.advertType != null and pageReserveDTO.advertType == 1"> |
| | | and adver_position_top = 2 and adver_position_application = 2 |
| | |
| | | and title like concat (#{pageReserveDTO.keyWord},'%') |
| | | </if> |
| | | <if test="pageReserveDTO.startTime != null and pageReserveDTO.startTime != """> |
| | | AND DATE_FORMAT(create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{pageReserveDTO.startTime} |
| | | AND DATE_FORMAT(t.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{pageReserveDTO.startTime} |
| | | </if> |
| | | <if test="pageReserveDTO.endTime != null and pageReserveDTO.endTime != """> |
| | | AND DATE_FORMAT(create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{pageReserveDTO.endTime} |
| | | AND DATE_FORMAT(t.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{pageReserveDTO.endTime} |
| | | </if> |
| | | </where> |
| | | order by create_at desc |
| | | order by t.create_at desc |
| | | </select> |
| | | |
| | | <delete id="deleteReserveSubAll"> |