Merge branch 'huacheng' into huacheng_dev
# Conflicts:
# springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/PartyBuildingApi.java
# springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
| | |
| | | } |
| | | return pbCheckUnitFeign.queryByList(comPbCheckUnit); |
| | | } |
| | | |
| | | @OperLog(operModul = "党员管理", operType = 1) |
| | | @ApiOperation(value = "新增党员") |
| | | @PostMapping("addpartybuildingmember") |
| | |
| | | spring: |
| | | application: |
| | | name: applets |
| | | name: huacheng-applets |
| | | cloud: |
| | | config: |
| | | discovery: |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | service-id: huacheng-config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | |
| | | metrics: |
| | | tags: |
| | | application: applets |
| | | application: huacheng-applets |
| | | |
| | |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!--日志文件输出的文件名--> |
| | | <FileNamePattern>${LOG_HOME}/applets.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <FileNamePattern>${LOG_HOME}/huachengapplets.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <!--日志文件保留天数--> |
| | | <MaxHistory>30</MaxHistory> |
| | | </rollingPolicy> |
| | |
| | | spring: |
| | | application: |
| | | name: appletsbackstage |
| | | name: huacheng-appletsbackstage |
| | | cloud: |
| | | config: |
| | | discovery: |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | service-id: huacheng-config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | |
| | | metrics: |
| | | tags: |
| | | application: appletsbackstage |
| | | application: huacheng-appletsbackstage |
| | | |
| | | |
| | | |
| | |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!--日志文件输出的文件名--> |
| | | <FileNamePattern>${LOG_HOME}/applets_backstage.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <FileNamePattern>${LOG_HOME}/huachengapplets_backstage.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <!--日志文件保留天数--> |
| | | <MaxHistory>30</MaxHistory> |
| | | </rollingPolicy> |
| | |
| | | spring: |
| | | application: |
| | | name: auth |
| | | name: huacheng-auth |
| | | cloud: |
| | | config: |
| | | discovery: |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | service-id: huacheng-config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | |
| | |
| | | |
| | | metrics: |
| | | tags: |
| | | application: auth |
| | | application: huacheng-auth |
| | |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!--日志文件输出的文件名--> |
| | | <FileNamePattern>${LOG_HOME}/auth.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <FileNamePattern>${LOG_HOME}/huachengauth.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <!--日志文件保留天数--> |
| | | <MaxHistory>30</MaxHistory> |
| | | </rollingPolicy> |
| | |
| | | @ApiModelProperty(value = "类型 1燃气 2防火") |
| | | private Integer pdfType; |
| | | |
| | | @ApiModelProperty(value = "省市区") |
| | | private String area; |
| | | |
| | | @ApiModelProperty(value = "出发地") |
| | | private String from; |
| | | |
| | | } |
| | |
| | | private Integer signCount; |
| | | |
| | | private Integer registerCount; |
| | | |
| | | private Integer isArticle; |
| | | |
| | | private String jumpArticleUrl; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.reserve; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author zzj |
| | | */ |
| | | @Data |
| | | public class FiveCount { |
| | | private Integer allCount; |
| | | private Integer dangerCount; |
| | | private Integer redMark; |
| | | private Integer yellowMark; |
| | | private Integer greenMark; |
| | | } |
| | |
| | | * @author: huang.hongfa weixin hhf9596 qq 959656820 |
| | | * @create: 2020-11-24 09:18 |
| | | **/ |
| | | @FeignClient(name = "auth") |
| | | @FeignClient(name = "huacheng-auth") |
| | | public interface TokenService { |
| | | /** |
| | | * 小程序用户登录 |
| | |
| | | * @author lyq |
| | | * @date 2022-03-01 13:44:43 |
| | | */ |
| | | @FeignClient(name = Constants.SERVICE_COMMUNITY, contextId = "comActEasyPhotoEvaluate", path = "comActEasyPhotoEvaluate") |
| | | @FeignClient(name = "huacheng-community", contextId = "comActEasyPhotoEvaluate", path = "comActEasyPhotoEvaluate") |
| | | public interface ComActEasyPhotoEvaluateFeign { |
| | | |
| | | /** |
| | |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:12 |
| | | */ |
| | | @FeignClient(name = Constants.SERVICE_COMMUNITY, contextId = "comActEasyPhotoHandler", path = "comActEasyPhotoHandler") |
| | | @FeignClient(name = "huacheng-community", contextId = "comActEasyPhotoHandler", path = "comActEasyPhotoHandler") |
| | | public interface ComActEasyPhotoHandlerFeign { |
| | | |
| | | /** |
| | |
| | | * @author: huang.hongfa weixin hhf9596 qq 959656820 |
| | | * @create: 2020-12-07 15:59 |
| | | **/ |
| | | @FeignClient(name = "community") |
| | | @FeignClient(name = "huacheng-community") |
| | | public interface CommunityService { |
| | | /** |
| | | * 新增社区活动 |
| | |
| | | @PostMapping("/comActEasyPhotoHandler/edit") |
| | | R editEasyPhotoHandler(@RequestBody EditComActEasyPhotoHandlerDto comActEasyPhotoHandler); |
| | | |
| | | @GetMapping("/reserve/fiveCount") |
| | | R fiveCount(@RequestParam("reserveId") Long reserveId); |
| | | |
| | | /** |
| | | * 分页查询所有数据 |
| | | * |
| | |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @FeignClient(name = Constants.SERVICE_PARTYBUILDING, contextId = "comDataStatistics", path = "comDataStatistics") |
| | | @FeignClient(name = "huacheng-partybuilding", contextId = "comDataStatistics", path = "comDataStatistics") |
| | | public interface ComDataStatisticsFeign { |
| | | |
| | | /** |
| | |
| | | * @author lyq |
| | | * @date 2022-02-16 16:22:48 |
| | | */ |
| | | @FeignClient(name = Constants.SERVICE_PARTYBUILDING, contextId = "comPbCheckUnit", path = "comPbCheckUnit") |
| | | @FeignClient(name = "huacheng-partybuilding", contextId = "comPbCheckUnit", path = "comPbCheckUnit") |
| | | public interface ComPbCheckUnitFeign { |
| | | |
| | | /** |
| | |
| | | * @author: huang.hongfa weixin hhf9596 qq 959656820 |
| | | * @create: 2020-11-30 09:50 |
| | | **/ |
| | | @FeignClient(value = "partybuilding") |
| | | @FeignClient(value = "huacheng-partybuilding") |
| | | public interface PartyBuildingService { |
| | | /** |
| | | * 新增党员 |
| | |
| | | /** |
| | | * 物业接口 |
| | | */ |
| | | @FeignClient(name = "property") |
| | | @FeignClient(name = "huacheng-property") |
| | | public interface PropertyService { |
| | | /** |
| | | * 分页查询所有数据 |
| | |
| | | * @author: huang.hongfa weixin hhf9596 qq 959656820 |
| | | * @create: 2020-11-24 08:58 |
| | | **/ |
| | | @FeignClient(name = "user") |
| | | @FeignClient(name = "huacheng-user") |
| | | public interface UserService { |
| | | |
| | | /** |
| | |
| | | //构建单个用户数据 |
| | | List<Object> userData = new ArrayList<>(); |
| | | |
| | | String noExport = "以上信息仅用于"; |
| | | String noExport = "本人对信息内容"; |
| | | //遍历答案列表 |
| | | Long reserveRecordId = 0L; |
| | | Long reserveSubId = 0L; |
| | |
| | | if (loginUserInfo == null) { |
| | | return R.fail("请先登录"); |
| | | } |
| | | String regionCode = communityService.getActBelongRegionCode(loginUserInfo.getCommunityId()); |
| | | if (regionCode.equals("510411")) { |
| | | ComActReserveDetailAdminVO reserverRecord = |
| | | communityService.detailReserveAdmin(pageReserveRegisterDetailedAdminDTO.getReserveId()).getData(); |
| | | if (reserverRecord.getTitle().equals("返攀登记")) { |
| | | return renheExportRegister(pageReserveRegisterDetailedAdminDTO); |
| | | } |
| | | } |
| | | // String regionCode = communityService.getActBelongRegionCode(loginUserInfo.getCommunityId()); |
| | | // if (regionCode.equals("510411")) { |
| | | // ComActReserveDetailAdminVO reserverRecord = |
| | | // communityService.detailReserveAdmin(pageReserveRegisterDetailedAdminDTO.getReserveId()).getData(); |
| | | // if (reserverRecord.getTitle().equals("返攀登记")) { |
| | | // return renheExportRegister(pageReserveRegisterDetailedAdminDTO); |
| | | // } |
| | | // } |
| | | String ftpUrl = "/mnt/data/web/excel/"; |
| | | String name = "登记明细导出数据.xlsx"; |
| | | String noHaed = "承诺"; |
| | |
| | | public R deleteRecord(@RequestParam("recordId") Long recordId) { |
| | | return communityService.deleteRecord(recordId); |
| | | } |
| | | |
| | | @ApiOperation("5个常规查询") |
| | | @GetMapping("/fiveCount") |
| | | public R fiveCount(@RequestParam("reserveId") Long reserveId){ |
| | | return communityService.fiveCount(reserveId); |
| | | } |
| | | } |
| | |
| | | spring: |
| | | application: |
| | | name: communitybackstage |
| | | name: huacheng-communitybackstage |
| | | cloud: |
| | | config: |
| | | discovery: |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | service-id: huacheng-config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | |
| | | metrics: |
| | | tags: |
| | | application: communitybackstage |
| | | application: huacheng-communitybackstage |
| | |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!--日志文件输出的文件名--> |
| | | <FileNamePattern>${LOG_HOME}/community_backstage.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <FileNamePattern>${LOG_HOME}/huachengcommunity_backstage.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <!--日志文件保留天数--> |
| | | <MaxHistory>30</MaxHistory> |
| | | </rollingPolicy> |
| | |
| | | |
| | | server: |
| | | port: 8193 |
| | | port: 6193 |
| | | servlet: |
| | | encoding: |
| | | force-response: true #中文乱码 |
| | |
| | | |
| | | spring: |
| | | application: |
| | | name: config |
| | | name: huacheng-config |
| | | |
| | | cloud: |
| | | config: |
| | |
| | | # search-paths: adminConfig |
| | | username: huanghongfa |
| | | password: huanghongfa123456 |
| | | default-label: huacheng |
| | | # basedir: F:\nahan\config-repo\config-repo |
| | | |
| | | #spring: |
| | |
| | | |
| | | metrics: |
| | | tags: |
| | | application: config |
| | | application: huacheng-config |
| | |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!--日志文件输出的文件名--> |
| | | <FileNamePattern>${LOG_HOME}/config_server.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <FileNamePattern>${LOG_HOME}/huachengconfig_server.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <!--日志文件保留天数--> |
| | | <MaxHistory>30</MaxHistory> |
| | | </rollingPolicy> |
| | |
| | | |
| | | ports: |
| | | |
| | | - containerPort: 8193 |
| | | - containerPort: 6193 |
| | | env: |
| | | - name: EUREKA_URL |
| | | value: eureka-server |
| | |
| | | name: config-server |
| | | spec: |
| | | ports: |
| | | - port: 8193 |
| | | targetPort: 8193 |
| | | - port: 6193 |
| | | targetPort: 6193 |
| | | name: http |
| | | #nodePort: 31072 |
| | | selector: |
| | |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | public R deleteRecord(@RequestParam("recordId")Long recordId){ |
| | | return R.ok(comActReserveRecordService.removeById(recordId)); |
| | | } |
| | | |
| | | @GetMapping("/fiveCount") |
| | | public R fiveCount(@RequestParam("reserveId") Long reserveId){ |
| | | return comActReserveRecordService.fiveCount(reserveId); |
| | | } |
| | | } |
| | |
| | | public class RabbitmqConfig { |
| | | |
| | | |
| | | public static final String PreOrder_QUEUE="preOrder.queue"; |
| | | public static final String PreOrder_ROUTING_KEY="preOrder.key"; |
| | | public static final String PreOrder_EXCHANGE="preOrder.exchange"; |
| | | public static final String PreOrder_QUEUE="huacheng.preOrder.queue"; |
| | | public static final String PreOrder_ROUTING_KEY="huacheng.preOrder.key"; |
| | | public static final String PreOrder_EXCHANGE="huacheng.preOrder.exchange"; |
| | | |
| | | public static final String Order_QUEUE="order.queue"; |
| | | public static final String Order_ROUTING_KEY="order.key"; |
| | | public static final String Order_EXCHANGE="order.exchange"; |
| | | public static final String Order_QUEUE="huacheng.order.queue"; |
| | | public static final String Order_ROUTING_KEY="huacheng.order.key"; |
| | | public static final String Order_EXCHANGE="huacheng.order.exchange"; |
| | | |
| | | public static final String RAFFLE_QUEUE="raffle.queue"; |
| | | public static final String RAFFLE_ROUTING_KEY="raffle.key"; |
| | | public static final String RAFFLE_EXCHANGE="raffle.exchange"; |
| | | public static final String RAFFLE_QUEUE="huacheng.raffle.queue"; |
| | | public static final String RAFFLE_ROUTING_KEY="huacheng.raffle.key"; |
| | | public static final String RAFFLE_EXCHANGE="huacheng.raffle.exchange"; |
| | | |
| | | public static final String McsOrder_QUEUE="mcsOrder.queue"; |
| | | public static final String McsOrder_ROUTING_KEY="mcsOrder.key"; |
| | | public static final String McsOrder_EXCHANGE="mcsOrder.exchange"; |
| | | public static final String McsOrder_QUEUE="huacheng.mcsOrder.queue"; |
| | | public static final String McsOrder_ROUTING_KEY="huacheng.mcsOrder.key"; |
| | | public static final String McsOrder_EXCHANGE="huacheng.mcsOrder.exchange"; |
| | | |
| | | |
| | | @Bean |
| | |
| | | import com.panzhihua.common.model.vos.community.ComActQuestnaireAnswerContentVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveRegisterDetailedAnswerVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveRegisterDetailedVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.FiveCount; |
| | | import com.panzhihua.common.model.vos.community.reserve.HomeQuarantineRegisterStatisticsVO; |
| | | import com.panzhihua.service_community.model.dos.ComActReserveAnswerContentDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | |
| | | * @return |
| | | */ |
| | | List<String> exportHomeQuarantine(@Param("detailedAdminDTO") PageReserveRegisterDetailedAdminDTO detailedAdminDTO); |
| | | |
| | | /** |
| | | * 5个常规数据查询 |
| | | * @param reserveId |
| | | * @return |
| | | */ |
| | | FiveCount fiveCount(Long reserveId); |
| | | } |
| | |
| | | */ |
| | | @Component |
| | | public class McsOrderMessage { |
| | | public static final String DELAYED_QUEUE="mcsOrder.queue"; |
| | | public static final String DELAYED_QUEUE="huacheng.mcsOrder.queue"; |
| | | @Resource |
| | | private McsOrderDao mcsOrderDao; |
| | | @RabbitListener(queues=DELAYED_QUEUE) |
| | |
| | | */ |
| | | @Component |
| | | public class OrderMessage { |
| | | public static final String DELAYED_QUEUE="order.queue"; |
| | | public static final String DELAYED_QUEUE="huacheng.order.queue"; |
| | | |
| | | @Resource |
| | | private RentingHourseOrderDao rentingHourseOrderDao; |
| | |
| | | */ |
| | | @Component |
| | | public class PreOrderMessage { |
| | | public static final String DELAYED_QUEUE="preOrder.queue"; |
| | | public static final String DELAYED_QUEUE="huacheng.preOrder.queue"; |
| | | |
| | | @Resource |
| | | private RentingHoursePreOrderDao rentingHoursePreOrderDao; |
| | |
| | | */ |
| | | @Component |
| | | public class RaffleMessage { |
| | | public static final String DELAYED_QUEUE="raffle.queue"; |
| | | public static final String DELAYED_QUEUE="huacheng.raffle.queue"; |
| | | |
| | | @Resource |
| | | private ComActRaffleDao comActRaffleDao; |
| | |
| | | } |
| | | comActRaffle.setStatus(3); |
| | | comActRaffleDao.updateById(comActRaffle); |
| | | rabbitTemplate.convertAndSend("raffle.exchange", "raffle.key", comActRaffleVO, message -> { |
| | | rabbitTemplate.convertAndSend("huacheng.raffle.exchange", "huacheng.raffle.key", comActRaffleVO, message -> { |
| | | message.getMessageProperties().setHeader("x-delay", dateToSecond(comActRaffle.getRaffleStopTime())); |
| | | return message; |
| | | }); |
| | |
| | | if(comActRaffle!=null&&comActRaffle.getStatus()==0&&comActRaffle.getStartTime().before(new Date())){ |
| | | comActRaffle.setStatus(1); |
| | | comActRaffleDao.updateById(comActRaffle); |
| | | rabbitTemplate.convertAndSend("raffle.exchange", "raffle.key", comActRaffleVO, message -> { |
| | | rabbitTemplate.convertAndSend("huacheng.raffle.exchange", "huacheng.raffle.key", comActRaffleVO, message -> { |
| | | message.getMessageProperties().setHeader("x-delay", dateToSecond(comActRaffle.getStopTime())); |
| | | return message; |
| | | }); |
| | |
| | | if(comActRaffle!=null&&comActRaffle.getStatus()==1&&comActRaffle.getStopTime().before(new Date())){ |
| | | comActRaffle.setStatus(2); |
| | | comActRaffleDao.updateById(comActRaffle); |
| | | rabbitTemplate.convertAndSend("raffle.exchange", "raffle.key", comActRaffleVO, message -> { |
| | | rabbitTemplate.convertAndSend("huacheng.raffle.exchange", "huacheng.raffle.key", comActRaffleVO, message -> { |
| | | message.getMessageProperties().setHeader("x-delay", dateToSecond(comActRaffle.getLotteryTime())); |
| | | return message; |
| | | }); |
| | |
| | | * 单次活动时长(小时) |
| | | */ |
| | | private Integer duration; |
| | | |
| | | private Integer isArticle; |
| | | |
| | | private String jumpArticleUrl; |
| | | } |
| | |
| | | |
| | | R registerDetailedDetailAdmin(Long reserveRecordId); |
| | | |
| | | /** |
| | | * 5个常规查询 |
| | | * @param reserveId |
| | | * @return |
| | | */ |
| | | R fiveCount(Long reserveId); |
| | | } |
| | |
| | | } else { |
| | | cmActEasyPhotoDO.setIsReportUrban(ComActEasyPhotoVO.isReportUrban.no); |
| | | } |
| | | cmActEasyPhotoDO.setHandlerId(comActEasyPhotoVO.getHandlerId()); |
| | | cmActEasyPhotoDO.setExamineAt(nowDate); |
| | | cmActEasyPhotoDO.setActivityType(comActEasyPhotoVO.getActivityType()); |
| | | if (StringUtils.isNotEmpty(comActEasyPhotoVO.getHandleResult()) |
| | |
| | | //添加分配人员 |
| | | if(comActEasyPhotoVO.getHandleList() != null && comActEasyPhotoVO.getHandleList().size() > 0){ |
| | | comActEasyPhotoVO.getHandleList().forEach(handle -> { |
| | | easyPhotoHandlerService.addHandleRecord(cmActEasyPhotoDO.getCommunityId(),comActEasyPhotoVO.getUserId() |
| | | cmActEasyPhotoDO.setHandlerId(handle.getUserId()); |
| | | easyPhotoHandlerService.addHandleRecord(cmActEasyPhotoDO.getCommunityId(),handle.getUserId() |
| | | ,cmActEasyPhotoDO.getId(),handle.getType(), ComActEasyPhotoHandler.ServiceType.SSP,comActEasyPhotoVO.getSponsorId()); |
| | | }); |
| | | } |
| | |
| | | comActRaffle.setStatus(0); |
| | | int count= this.baseMapper.insert(comActRaffle); |
| | | if(count>0){ |
| | | rabbitTemplate.convertAndSend("raffle.exchange", "raffle.key", comActRaffle, message -> { |
| | | rabbitTemplate.convertAndSend("huacheng.raffle.exchange", "huacheng.raffle.key", comActRaffle, message -> { |
| | | message.getMessageProperties().setHeader("x-delay", dateToSecond(comActRaffle.getStartTime())); |
| | | return message; |
| | | }); |
| | |
| | | |
| | | //查询用户回答 |
| | | List<ComActQuestnaireAnswerContentVO> vos = this.baseMapper.export(pageReserveRegisterDetailedAdminDTO); |
| | | vos.forEach(vo->{ |
| | | if(vo.getType()==4){ |
| | | vo.setAnswerContent(vo.getAnswerContent().replaceAll("(?<=\\w{3})\\w(?=\\w{4})", "*")); |
| | | } |
| | | }); |
| | | result.setAnswers(vos); |
| | | |
| | | return R.ok(result); |
| | |
| | | List<ComActReserveRegisterDetailedAnswerVO> registerDetailedAnswerList = this.baseMapper.getRegisterDetailedAnswerList(registerDetailed.getId()); |
| | | if(!registerDetailedAnswerList.isEmpty()){ |
| | | for (ComActReserveRegisterDetailedAnswerVO detailed:registerDetailedAnswerList) { |
| | | if(detailed.getType()==4){ |
| | | detailed.setAnswerContent(detailed.getAnswerContent().replaceAll("(?<=\\w{3})\\w(?=\\w{4})", "*")); |
| | | } |
| | | if(!detailed.getType().equals(5)){ |
| | | if(detailed.getType().equals(1)){ |
| | | String key = detailed.getReserveSubId() + ""; |
| | |
| | | map.put(detailed.getReserveSubId() + "",detailed.getAnswerContent()); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | //渲染登记流水号 |
| | |
| | | registerDetailedVO.setIdentity(identity.substring(0,identity.length()-1)); |
| | | //查询答题数据 |
| | | List<ComActReserveRegisterDetailedAnswerVO> answerList = comActReserveAnswerContentMapper.getRegisterDetailedAnswerList(reserveRecordId); |
| | | answerList.forEach(answer ->{ |
| | | if(answer.getType()==4){ |
| | | answer.setAnswerContent(answer.getAnswerContent().replaceAll("(?<=\\w{3})\\w(?=\\w{4})", "*")); |
| | | } |
| | | }); |
| | | registerDetailedVO.setAnswerList(answerList); |
| | | } |
| | | return R.ok(registerDetailedVO); |
| | | } |
| | | |
| | | @Override |
| | | public R fiveCount(Long reserveId) { |
| | | return R.ok(comActReserveAnswerContentMapper.fiveCount(reserveId)); |
| | | } |
| | | |
| | | } |
| | |
| | | mcsOrder.setCreateTime(new Date()); |
| | | mcsOrder.setOrderNo(DateUtils.getCurrentDateStrNoSignal()); |
| | | this.baseMapper.insert(mcsOrder); |
| | | rabbitTemplate.convertAndSend("mcsOrder.exchange", "mcsOrder.key", mcsOrder, message -> { |
| | | rabbitTemplate.convertAndSend("huacheng.mcsOrder.exchange", "huacheng.mcsOrder.key", mcsOrder, message -> { |
| | | message.getMessageProperties().setHeader("x-delay", 1000 * 1800); |
| | | return message; |
| | | }); |
| | |
| | | rentingHourseRegister.setStatus(2); |
| | | rentingHourseRegister.setDetailStatus(4); |
| | | rentingHourseRegisterDao.updateById(rentingHourseRegister); |
| | | rabbitTemplate.convertAndSend("order.exchange", "order.key", rentingHourseOrder, message -> { |
| | | rabbitTemplate.convertAndSend("huacheng.order.exchange", "huacheng.order.key", rentingHourseOrder, message -> { |
| | | message.getMessageProperties().setHeader("x-delay", dateToSecond(DateUtil.endOfDay(DateUtil.date())) * 1000 * 3600); |
| | | return message; |
| | | }); |
| | |
| | | rentingHourseRegister.setStatus(2); |
| | | rentingHourseRegister.setDetailStatus(4); |
| | | rentingHourseRegisterDao.updateById(rentingHourseRegister); |
| | | rabbitTemplate.convertAndSend("preOrder.exchange", "preOrder.key", rentingHoursePreOrder, message -> { |
| | | rabbitTemplate.convertAndSend("huacheng.preOrder.exchange", "huacheng.preOrder.key", rentingHoursePreOrder, message -> { |
| | | message.getMessageProperties().setHeader("x-delay", dateToSecond(rentingHoursePreOrder.getExpireDate()) * 1000 * 3600); |
| | | return message; |
| | | }); |
| | |
| | | spring: |
| | | application: |
| | | name: community |
| | | name: huacheng-community |
| | | cloud: |
| | | config: |
| | | discovery: |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | service-id: huacheng-config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | |
| | | metrics: |
| | | tags: |
| | | application: community |
| | | application: huacheng-community |
| | |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!--日志文件输出的文件名--> |
| | | <FileNamePattern>${LOG_HOME}/service_community.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <FileNamePattern>${LOG_HOME}/huachengservice_community.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <!--日志文件保留天数--> |
| | | <MaxHistory>30</MaxHistory> |
| | | </rollingPolicy> |
| | |
| | | AND STR_TO_DATE(carac.answer_content,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{detailedAdminDTO.stopTime} |
| | | </if> |
| | | <if test="detailedAdminDTO.keyword!=null and detailedAdminDTO.keyword != """> |
| | | AND carac.answer_content like concat ('%',#{detailedAdminDTO.keyword},'%') |
| | | AND carr.json_object like concat ('%',#{detailedAdminDTO.keyword},'%') |
| | | </if> |
| | | <if test="detailedAdminDTO.area!=null and detailedAdminDTO.area != """> |
| | | AND JSON_EXTRACT(json_object, '$[6].values') like concat ('%',#{detailedAdminDTO.area},'%') |
| | | </if> |
| | | <if test="detailedAdminDTO.from!=null and detailedAdminDTO.from != """> |
| | | AND JSON_EXTRACT(json_object, '$[3].values') like concat ('%',#{detailedAdminDTO.from},'%') |
| | | </if> |
| | | group by carr.id order by carr.id desc |
| | | </select> |
| | |
| | | AND STR_TO_DATE(carac.answer_content,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{detailedAdminDTO.stopTime} |
| | | </if> |
| | | <if test="detailedAdminDTO.keyword!=null and detailedAdminDTO.keyword != """> |
| | | AND carac.answer_content like concat ('%',#{detailedAdminDTO.keyword},'%') |
| | | AND carr.json_object like concat ('%',#{detailedAdminDTO.keyword},'%') |
| | | </if> |
| | | <if test="detailedAdminDTO.area!=null and detailedAdminDTO.area != """> |
| | | AND carr.json_object like concat ('%',#{detailedAdminDTO.area},'%') |
| | | </if> |
| | | group by carr.id order by carr.id desc |
| | | </select> |
| | |
| | | AND STR_TO_DATE(ac.answer_content,'%Y-%m-%d %H:%i:%s') <![CDATA[ <= ]]> #{detailedAdminDTO.stopTime} |
| | | </if> |
| | | <if test="detailedAdminDTO.keyword!=null and detailedAdminDTO.keyword != """> |
| | | AND ac.answer_content like concat ('%',#{detailedAdminDTO.keyword},'%') |
| | | </if>) |
| | | AND carr.json_object like concat ('%',#{detailedAdminDTO.keyword},'%') |
| | | </if> |
| | | <if test="detailedAdminDTO.area!=null and detailedAdminDTO.area != """> |
| | | AND JSON_EXTRACT(json_object, '$[6].values') like concat ('%',#{detailedAdminDTO.area},'%') |
| | | </if> |
| | | <if test="detailedAdminDTO.from!=null and detailedAdminDTO.from != """> |
| | | AND JSON_EXTRACT(json_object, '$[3].values') like concat ('%',#{detailedAdminDTO.from},'%') |
| | | </if> |
| | | ) |
| | | order by ac.reserve_record_id DESC,ac.id ASC |
| | | </select> |
| | | <select id="pageRegisterHomeQuarantine" resultType="java.lang.String"> |
| | |
| | | </if> |
| | | GROUP BY answer_content ORDER BY id DESC |
| | | </select> |
| | | |
| | | <select id="fiveCount" resultType="com.panzhihua.common.model.vos.community.reserve.FiveCount"> |
| | | select ( |
| | | select count(*) from com_act_reserve_record where reserve_id = #{reserveId} |
| | | and JSON_EXTRACT(json_object, '$[9].values') = 0 |
| | | |
| | | ) redMark,( |
| | | select count(*) from com_act_reserve_record where reserve_id = #{reserveId} |
| | | and JSON_EXTRACT(json_object, '$[9].values') = 1 |
| | | ) yellowMark,( |
| | | select count(*) from com_act_reserve_record where reserve_id = #{reserveId} |
| | | and JSON_EXTRACT(json_object, '$[9].values') = 2 |
| | | ) greenMark,(select count(*) from com_act_reserve_record where reserve_id = #{reserveId} |
| | | and JSON_EXTRACT(json_object, '$[10].values') = 0 ) dangerCount, |
| | | ( select count(*) from com_act_reserve_record where reserve_id = #{reserveId}) allCount |
| | | </select> |
| | | </mapper> |
| | |
| | | select id,title,type,img_type, img_url,adver_position_top, adver_position_application from com_act_reserve |
| | | <where> |
| | | status = 2 and adver_position_application = 1 |
| | | <if test="communityId !=null"> |
| | | and community_id = ${communityId} |
| | | </if> |
| | | and community_id = 1 |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="pageReserveDTO.communityId != null and pageReserveDTO.communityId !=0"> |
| | | and t.community_id = ${pageReserveDTO.communityId} |
| | | </if> |
| | | <if test="pageReserveDTO.areaCode !=null"> |
| | | <if test="pageReserveDTO.areaCode !=null and pageReserveDTO.communityId !=1"> |
| | | and t1.area_code = #{pageReserveDTO.areaCode} |
| | | </if> |
| | | <if test="pageReserveDTO.type != null and pageReserveDTO.type.size > 0"> |
| | |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | |
| | |
| | | spring: |
| | | application: |
| | | name: partybuilding |
| | | name: huacheng-partybuilding |
| | | cloud: |
| | | config: |
| | | discovery: |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | service-id: huacheng-config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | |
| | |
| | | |
| | | metrics: |
| | | tags: |
| | | application: partybuilding |
| | | application: huacheng-partybuilding |
| | |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!--日志文件输出的文件名--> |
| | | <FileNamePattern>${LOG_HOME}/service_partybuilding.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <FileNamePattern>${LOG_HOME}/huachengservice_partybuilding.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <!--日志文件保留天数--> |
| | | <MaxHistory>30</MaxHistory> |
| | | </rollingPolicy> |
| | |
| | | nettyServerHandler.stringRedisTemplate.boundValueOps(serial).set(JSONObject.toJSONString(comPropertyEquipment)); |
| | | } |
| | | int finalDuration = duration; |
| | | nettyServerHandler.rabbitTemplate.convertAndSend("delayed.exchange", "delayed.key", comPropertyEquipment, message -> { |
| | | nettyServerHandler.rabbitTemplate.convertAndSend("huacheng.delayed.exchange", "huacheng.delayed.key", comPropertyEquipment, message -> { |
| | | message.getMessageProperties().setHeader("x-delay", finalDuration * 1000 * 3601); |
| | | return message; |
| | | }); |
| | |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | spring: |
| | | application: |
| | | name: user |
| | | name: huacheng-user |
| | | cloud: |
| | | config: |
| | | discovery: |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | service-id: huacheng-config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | |
| | |
| | | |
| | | metrics: |
| | | tags: |
| | | application: user |
| | | application: huacheng-user |
| | |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!--日志文件输出的文件名--> |
| | | <FileNamePattern>${LOG_HOME}/service_user.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <FileNamePattern>${LOG_HOME}/huachengservice_user.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <!--日志文件保留天数--> |
| | | <MaxHistory>30</MaxHistory> |
| | | </rollingPolicy> |
| | |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | spring: |
| | | application: |
| | | name: timejob |
| | | name: huacheng-timejob |
| | | cloud: |
| | | config: |
| | | discovery: |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | |
| | |
| | | public class AppletWebSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter { |
| | | @Override |
| | | protected void configure(HttpSecurity http) throws Exception { |
| | | http.antMatcher("/api/applets/**").authorizeRequests().anyRequest().authenticated().and() |
| | | http.antMatcher("/api/huacheng-applets/**").authorizeRequests().anyRequest().authenticated().and() |
| | | .addFilterAfter(new AppletAuthenticationFilter(), AnonymousAuthenticationFilter.class); |
| | | } |
| | | } |
| | |
| | | |
| | | server: |
| | | port: 8194 |
| | | port: 6194 |
| | | servlet: |
| | | encoding: |
| | | force-response: true #中文乱码 |
| | |
| | | |
| | | spring: |
| | | application: |
| | | name: zuul |
| | | name: huacheng-zuul |
| | | cloud: |
| | | config: |
| | | discovery: |
| | | enabled: true |
| | | service-id: config # 注册中心的服务名 |
| | | service-id: huacheng-config # 注册中心的服务名 |
| | | profile: ${ENV:dev} # 指定配置文件的环境 |
| | | uri: http://${CONFIG_URL:localhost}:8193/ |
| | | uri: http://${CONFIG_URL:localhost}:6193/ |
| | | profiles: |
| | | active: ${ENV:dev} |
| | | servlet: |
| | |
| | | |
| | | metrics: |
| | | tags: |
| | | application: zuul |
| | | application: huacheng-zuul |
| | |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!--日志文件输出的文件名--> |
| | | <FileNamePattern>${LOG_HOME}/zuul.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <FileNamePattern>${LOG_HOME}/huachengzuul.log.%d{yyyy-MM-dd}.log</FileNamePattern> |
| | | <!--日志文件保留天数--> |
| | | <MaxHistory>30</MaxHistory> |
| | | </rollingPolicy> |