Browse Source

Merge remote-tracking branch 'origin/dev_party_helper' into dev_party_helper

# Conflicts:
#	epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java
master
yinzuomei 3 years ago
parent
commit
3a2b1790f7
  1. 9
      epmet-commons/epmet-commons-rocketmq/src/main/java/com/epmet/commons/rocketmq/messages/PartyMeetingMessageMQMsg.java
  2. 24
      epmet-module/epmet-message/epmet-message-client/src/main/java/com/epmet/send/SendMqMsgUtil.java
  3. 33
      epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/partyOrg/form/ActAndScheduleListFormDTO.java
  4. 53
      epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/partyOrg/result/ActAndScheduleListResultDTO.java
  5. 30
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/controller/IcPartyActController.java
  6. 18
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/IcPartyActService.java
  7. 28
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java
  8. 2
      epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partyOrg/IcScheduleDao.xml

9
epmet-commons/epmet-commons-rocketmq/src/main/java/com/epmet/commons/rocketmq/messages/PartyMeetingMessageMQMsg.java

@ -1,15 +1,17 @@
package com.epmet.commons.rocketmq.messages;
import com.epmet.commons.tools.dto.form.mq.MqBaseFormDTO;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 党建小助手发布活动活动到期提醒活动发布提醒推送MQ
* @author sun
*/
@Data
public class PartyMeetingMessageMQMsg implements Serializable {
public class PartyMeetingMessageMQMsg extends MqBaseFormDTO implements Serializable {
//客户Id
private String customerId;
@ -17,10 +19,5 @@ public class PartyMeetingMessageMQMsg implements Serializable {
private String icPartyActId;
//动作类型 发布活动:publish 提前提醒:remind 日程通知:notify
private String type;
//党组织Id
private String publishOrgId;
//党组织类型 0省委,1市委,2区委,3党工委,4党委,5支部;6党小组
private String publishOrgType;
}

24
epmet-module/epmet-message/epmet-message-client/src/main/java/com/epmet/send/SendMqMsgUtil.java

@ -243,28 +243,4 @@ public class SendMqMsgUtil {
return false;
}
/**
* @Description 党建小助手消息同步Mq
* @author sun
*/
public boolean partyMeetingMQMsg(String msgType, PartyMeetingMessageMQMsg msgContent) {
try {
SystemMsgFormDTO form = new SystemMsgFormDTO(msgType,msgContent);
Result sendMsgResult;
log.info("partyMeetingMQMsg param:{}",msgContent);
int retryTime = 0;
do {
sendMsgResult = epmetMessageOpenFeignClient.sendSystemMsgByMQ(form);
} while ((sendMsgResult == null || !sendMsgResult.success()) && retryTime++ < NumConstant.TWO);
if (sendMsgResult != null && sendMsgResult.success()) {
return true;
}
log.error("发送党建小助手系统消息到message服务失败:{},msg:{}", JSON.toJSONString(sendMsgResult), JSON.toJSONString(form));
} catch (Exception e) {
log.error("partyMeetingMQMsg exception", e);
}
return false;
}
}

33
epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/partyOrg/form/ActAndScheduleListFormDTO.java

@ -0,0 +1,33 @@
package com.epmet.resi.partymember.dto.partyOrg.form;
import lombok.Data;
import java.io.Serializable;
/**
* @Author zxc
* @DateTime 2022/8/19 13:52
* @DESC
*/
@Data
public class ActAndScheduleListFormDTO implements Serializable {
private static final long serialVersionUID = -6776882545589530612L;
private String startDate;
private String endDate;
private String dateId;
/**
* 是否本人创建的活动10
*/
private String isSelf;
/**
* 党组织ID
*/
private String orgId;
private String customerId;
private String staffId;
}

53
epmet-module/resi-partymember/resi-partymember-client/src/main/java/com/epmet/resi/partymember/dto/partyOrg/result/ActAndScheduleListResultDTO.java

@ -0,0 +1,53 @@
package com.epmet.resi.partymember.dto.partyOrg.result;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Author zxc
* @DateTime 2022/8/19 13:41
* @DESC
*/
@Data
public class ActAndScheduleListResultDTO implements Serializable {
private static final long serialVersionUID = 7378300105829566449L;
private Integer scheduleTotal;
private Integer activityTotal;
private String dateId;
private List<ActivityListDTO> activityList;
private List<ScheduleListDTO> scheduleList;
@Data
public static class ActivityListDTO implements Serializable{
private static final long serialVersionUID = -9050507457068805831L;
private String activityId;
private String topic;
private String address;
private String holdTime;
private String type;
private String isPublicValue;
private String joinTypeValue;
private Boolean isMe;
}
public static class ScheduleListDTO implements Serializable{
private static final long serialVersionUID = 5372167729733804267L;
private String scheduleId;
private String title;
private String remindTime;
private String remark;
private Boolean isMe;
}
}

30
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/controller/IcPartyActController.java

@ -11,7 +11,9 @@ import com.epmet.resi.partymember.dto.icpartyact.form.IcPartyActPageFormDTO;
import com.epmet.resi.partymember.dto.icpartyact.result.IcPartActTypeDTO;
import com.epmet.resi.partymember.dto.icpartyact.result.IcPartyActDetailResDTO;
import com.epmet.resi.partymember.dto.icpartyact.result.IcPartyActPageResultDTO;
import com.epmet.resi.partymember.dto.partyOrg.form.ActAndScheduleListFormDTO;
import com.epmet.resi.partymember.dto.partyOrg.form.HomeMonthTotalFormDTO;
import com.epmet.resi.partymember.dto.partyOrg.result.ActAndScheduleListResultDTO;
import com.epmet.resi.partymember.dto.partyOrg.result.HomeMonthTotalResultDTO;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
@ -105,5 +107,33 @@ public class IcPartyActController {
formDTO.setStaffId(tokenDto.getUserId());
return new Result<List<HomeMonthTotalResultDTO>>().ok(icPartyActService.getHomeMonthTotal(formDTO));
}
/**
* Desc:党建日历活动日程列表
* @param formDTO
* @param tokenDto
* @author zxc
* @date 2022/8/19 13:57
*/
@PostMapping("actAndScheduleList")
public Result<ActAndScheduleListResultDTO> getActAndScheduleList(@RequestBody ActAndScheduleListFormDTO formDTO, @LoginUser TokenDto tokenDto){
formDTO.setStaffId(tokenDto.getUserId());
formDTO.setCustomerId(tokenDto.getCustomerId());
return new Result<ActAndScheduleListResultDTO>().ok(icPartyActService.getActAndScheduleList(formDTO));
}
/**
* Desc:党建日历某月/天数据搜索列表
* @param formDTO
* @param tokenDto
* @author zxc
* @date 2022/8/19 14:00
*/
@PostMapping("homeSearch")
public Result<List<ActAndScheduleListResultDTO>> homeSearch(@RequestBody ActAndScheduleListFormDTO formDTO, @LoginUser TokenDto tokenDto){
formDTO.setStaffId(tokenDto.getUserId());
formDTO.setCustomerId(tokenDto.getCustomerId());
return new Result<List<ActAndScheduleListResultDTO>>().ok(icPartyActService.homeSearch(formDTO));
}
}

18
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/IcPartyActService.java

@ -8,7 +8,9 @@ import com.epmet.resi.partymember.dto.icpartyact.form.IcPartyActPageFormDTO;
import com.epmet.resi.partymember.dto.icpartyact.result.IcPartActTypeDTO;
import com.epmet.resi.partymember.dto.icpartyact.result.IcPartyActDetailResDTO;
import com.epmet.resi.partymember.dto.icpartyact.result.IcPartyActPageResultDTO;
import com.epmet.resi.partymember.dto.partyOrg.form.ActAndScheduleListFormDTO;
import com.epmet.resi.partymember.dto.partyOrg.form.HomeMonthTotalFormDTO;
import com.epmet.resi.partymember.dto.partyOrg.result.ActAndScheduleListResultDTO;
import com.epmet.resi.partymember.dto.partyOrg.result.HomeMonthTotalResultDTO;
import java.util.List;
@ -59,4 +61,20 @@ public interface IcPartyActService extends BaseService<IcPartyActEntity> {
* @return
*/
IcPartyActDetailResDTO queryActDetail(String customerId, String userId, String icPartyActId);
/**
* Desc: 党建日历活动日程列表
* @param formDTO
* @author zxc
* @date 2022/8/19 13:57
*/
ActAndScheduleListResultDTO getActAndScheduleList(ActAndScheduleListFormDTO formDTO);
/**
* Desc: 党建日历某月/天数据搜索列表
* @param formDTO
* @author zxc
* @date 2022/8/19 14:01
*/
List<ActAndScheduleListResultDTO> homeSearch(ActAndScheduleListFormDTO formDTO);
}

28
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java

@ -10,18 +10,12 @@ import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.redis.common.CustomerStaffRedis;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.utils.DateUtils;
import com.epmet.commons.tools.utils.SpringContextUtils;
import com.epmet.modules.partyOrg.dao.IcPartyActDao;
import com.epmet.modules.partyOrg.dao.IcPartyActOrgDao;
import com.epmet.modules.partyOrg.dao.IcScheduleDao;
import com.epmet.modules.partyOrg.dao.ResiPartymemberAttachmentDao;
import com.epmet.modules.partyOrg.entity.IcPartyActEntity;
import com.epmet.modules.partyOrg.entity.IcPartyActOrgEntity;
import com.epmet.modules.partyOrg.entity.ResiPartymemberAttachmentEntity;
import com.epmet.modules.partyOrg.service.IcPartyActOrgService;
import com.epmet.modules.partyOrg.service.IcPartyActService;
import com.epmet.modules.partyOrg.service.IcPartyOrgService;
import com.epmet.modules.partyOrg.service.ResiPartymemberAttachmentService;
import com.epmet.resi.partymember.dto.icpartyact.form.IcPartyActAddOrUpdateFormDTO;
import com.epmet.resi.partymember.dto.icpartyact.form.IcPartyActPageFormDTO;
import com.epmet.resi.partymember.dto.icpartyact.result.IcPartActTypeDTO;
@ -205,4 +199,26 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
//todo
return null;
}
/**
* Desc: 党建日历活动日程列表
* @param formDTO
* @author zxc
* @date 2022/8/19 13:57
*/
@Override
public ActAndScheduleListResultDTO getActAndScheduleList(ActAndScheduleListFormDTO formDTO) {
return null;
}
/**
* Desc: 党建日历某月/天数据搜索列表
* @param formDTO
* @author zxc
* @date 2022/8/19 14:01
*/
@Override
public List<ActAndScheduleListResultDTO> homeSearch(ActAndScheduleListFormDTO formDTO) {
return null;
}
}

2
epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partyOrg/IcScheduleDao.xml

@ -37,7 +37,7 @@
WHERE DEL_FLAG = 0
AND CUSTOMER_ID = #{customerId}
AND HOLD_YEAR_ID = #{yearId}
<if test='isSelf == "1"'>
<if test=' isSelf == "1" '>
AND CREATED_BY = #{staffId}
</if>
AND PUBLISH_ORG_PATH LIKE CONCAT(#{path},'%')

Loading…
Cancel
Save