|
|
@ -29,6 +29,7 @@ import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constant.PartyMemberConstant; |
|
|
|
import com.epmet.constant.ReadFlagConstant; |
|
|
|
import com.epmet.constant.UserMessageTypeConstant; |
|
|
|
import com.epmet.dto.CustomerGridDTO; |
|
|
|
import com.epmet.dto.CustomerStaffGridDTO; |
|
|
|
import com.epmet.dto.UserRoleDTO; |
|
|
@ -211,7 +212,8 @@ public class ResiWarmheartedApplyServiceImpl extends BaseServiceImpl<ResiWarmhea |
|
|
|
} |
|
|
|
formDTO.setMessageText(messageContent); |
|
|
|
//1:将申请记录存入热心居民申请表中
|
|
|
|
saveResiWarmApply(formDTO); |
|
|
|
String applyId=saveResiWarmApply(formDTO); |
|
|
|
formDTO.setApplyId(applyId); |
|
|
|
//2:将最后一次操作行为更新到热心居民申请行为记录表中
|
|
|
|
resiWarmheartedVisitService.updateResiWarmVisit(formDTO); |
|
|
|
//3:添加消息信息,给网格长发消息
|
|
|
@ -234,7 +236,7 @@ public class ResiWarmheartedApplyServiceImpl extends BaseServiceImpl<ResiWarmhea |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public void saveResiWarmApply(ResiWarmheartedSubmitFormDTO formDTO) { |
|
|
|
public String saveResiWarmApply(ResiWarmheartedSubmitFormDTO formDTO) { |
|
|
|
ResiWarmheartedApplyEntity entity = new ResiWarmheartedApplyEntity(); |
|
|
|
entity.setCustomerId(formDTO.getCustomerId()); |
|
|
|
entity.setGridId(formDTO.getGridId()); |
|
|
@ -245,6 +247,7 @@ public class ResiWarmheartedApplyServiceImpl extends BaseServiceImpl<ResiWarmhea |
|
|
|
entity.setReadFlag(ResiWarmheartedVisitConstant.UN_READ); |
|
|
|
entity.setMessageText(formDTO.getMessageText()); |
|
|
|
baseDao.insert(entity); |
|
|
|
return entity.getId(); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 热心居民申请像网格长发送消息 |
|
|
@ -289,6 +292,11 @@ public class ResiWarmheartedApplyServiceImpl extends BaseServiceImpl<ResiWarmhea |
|
|
|
} |
|
|
|
msgDTO.setMessageContent(formDTO.getMessageText()); |
|
|
|
msgDTO.setReadFlag(ReadFlagConstant.UN_READ); |
|
|
|
|
|
|
|
//21.09.10:记录消息类型和对应的业务id
|
|
|
|
msgDTO.setMessageType(UserMessageTypeConstant.WARMHEARTED_APPLY); |
|
|
|
msgDTO.setTargetId(formDTO.getApplyId()); |
|
|
|
|
|
|
|
msgList.add(msgDTO); |
|
|
|
//微信订阅
|
|
|
|
WxSubscribeMessageFormDTO subscribeDTO = new WxSubscribeMessageFormDTO(); |
|
|
|