|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.com.taiji.common.pub.BeanTools; |
|
|
import cn.com.taiji.common.pub.BeanTools; |
|
|
import cn.com.taiji.core.entity.msgw.MsgwSendApply; |
|
|
import cn.com.taiji.core.entity.msgw.MsgwSendApply; |
|
|
|
|
|
import cn.com.taiji.core.entity.user.Staff; |
|
|
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.WxMiniSendMessageResponse; |
|
|
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.WxMiniSendMessageResponse; |
|
|
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.WxMpSendMessageResponse; |
|
|
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.WxMpSendMessageResponse; |
|
|
import cn.com.taiji.core.model.comm.protocol.ias.message.HltSendShortResponse; |
|
|
import cn.com.taiji.core.model.comm.protocol.ias.message.HltSendShortResponse; |
|
|
|
|
|
|
|
|
List<MsgwSendDetails> list = new ArrayList<>(); |
|
|
List<MsgwSendDetails> list = new ArrayList<>(); |
|
|
if (request.getApplyId() != null){ |
|
|
if (request.getApplyId() != null){ |
|
|
MsgwSendApply apply = sendApplyRepo.findById(request.getApplyId()).orElse(null); |
|
|
MsgwSendApply apply = sendApplyRepo.findById(request.getApplyId()).orElse(null); |
|
|
|
|
|
if (apply.getAuditorOpenId() != null){ |
|
|
|
|
|
Staff staff = staffRepo.findByOpenId(apply.getAuditorOpenId()); |
|
|
|
|
|
if (staff != null){ |
|
|
|
|
|
apply.setAuditorOpenId(staff.getStaffName()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
response.setSendApply(apply); |
|
|
response.setSendApply(apply); |
|
|
list = sendDetailsRepo.findByApplyId(request.getApplyId()); |
|
|
|
|
|
|
|
|
if (request.getDetailsId() != null){ |
|
|
|
|
|
MsgwSendDetails sendDetails = sendDetailsRepo.findById(request.getDetailsId()).orElse(null); |
|
|
|
|
|
list.add(sendDetails); |
|
|
|
|
|
}else{ |
|
|
|
|
|
list = sendDetailsRepo.findByApplyId(request.getApplyId()); |
|
|
|
|
|
} |
|
|
response.setSendDetails(list); |
|
|
response.setSendDetails(list); |
|
|
}else { |
|
|
}else { |
|
|
MsgwSendDetails sendDetails = sendDetailsRepo.findById(request.getDetailsId()).orElse(null); |
|
|
MsgwSendDetails sendDetails = sendDetailsRepo.findById(request.getDetailsId()).orElse(null); |