Browse Source

拼团购 顺道捎 bug修改

feature/syp_points
songyunpeng 5 years ago
parent
commit
10d1eea607
  1. 5
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/impl/GroupBuyInfoServiceImpl.java
  2. 9
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/sds/service/impl/SdsInfoServiceImpl.java

5
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/impl/GroupBuyInfoServiceImpl.java

@ -268,14 +268,15 @@ public class GroupBuyInfoServiceImpl extends BaseServiceImpl<GroupBuyInfoDao, Gr
entity.setShieldReason(formDto.getShieldReason());
entity.setShieldFlag(NumConstant.ONE_STR);
updateById(entity);
GroupBuyInfoEntity entityDetail = selectById(formDto.getId());
//更新结束后发消息通知到用户
EpdcInformationFormDTO informationFormDTO = new EpdcInformationFormDTO();
informationFormDTO.setType(SdsPtgNoticeConstant.NOTICE_TYPE_INTERACTIVE_NOTICE);
informationFormDTO.setUserId(entity.getUserId());
informationFormDTO.setUserId(entityDetail.getUserId());
informationFormDTO.setContent("您的拼团购内容被屏蔽,屏蔽原因:"+formDto.getShieldReason());
informationFormDTO.setTitle(SdsPtgNoticeConstant.NOTICE_PTG_DELETE);
informationFormDTO.setBusinessType(SdsPtgNoticeConstant.NOTICE_BUSINESS_TYPE_SDS_PTG);
informationFormDTO.setBusinessId(entity.getId());
informationFormDTO.setBusinessId(entityDetail.getId());
// 发送消息
newsTask.insertUserInformation(informationFormDTO);
return new Result();

9
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/sds/service/impl/SdsInfoServiceImpl.java

@ -133,7 +133,7 @@ public class SdsInfoServiceImpl extends BaseServiceImpl<SdsInfoDao, SdsInfoEntit
EpdcInformationFormDTO informationFormDTO = new EpdcInformationFormDTO();
informationFormDTO.setType(SdsPtgNoticeConstant.NOTICE_TYPE_INTERACTIVE_NOTICE);
informationFormDTO.setUserId(dto.getUserId());
informationFormDTO.setContent("您的拼团购内容被修改,请注意查看。");
informationFormDTO.setContent("您的顺道捎内容被修改,请注意查看。");
informationFormDTO.setTitle(SdsPtgNoticeConstant.NOTICE_SDS_UPDATE);
informationFormDTO.setBusinessType(SdsPtgNoticeConstant.NOTICE_BUSINESS_TYPE_SDS_PTG);
informationFormDTO.setBusinessId(entity.getId());
@ -269,14 +269,15 @@ public class SdsInfoServiceImpl extends BaseServiceImpl<SdsInfoDao, SdsInfoEntit
entity.setShieldReason(formDto.getShieldReason());
entity.setShieldFlag(NumConstant.ONE_STR);
updateById(entity);
SdsInfoEntity entityDetail = selectById(formDto.getId());
//更新结束后发消息通知到用户
EpdcInformationFormDTO informationFormDTO = new EpdcInformationFormDTO();
informationFormDTO.setType(SdsPtgNoticeConstant.NOTICE_TYPE_INTERACTIVE_NOTICE);
informationFormDTO.setUserId(entity.getUserId());
informationFormDTO.setContent("您的拼团购内容被屏蔽,屏蔽原因:"+formDto.getShieldReason());
informationFormDTO.setUserId(entityDetail.getUserId());
informationFormDTO.setContent("您的顺道捎内容被屏蔽,屏蔽原因:"+formDto.getShieldReason());
informationFormDTO.setTitle(SdsPtgNoticeConstant.NOTICE_SDS_DELETE);
informationFormDTO.setBusinessType(SdsPtgNoticeConstant.NOTICE_BUSINESS_TYPE_SDS_PTG);
informationFormDTO.setBusinessId(entity.getId());
informationFormDTO.setBusinessId(entityDetail.getId());
// 发送消息
newsTask.insertUserInformation(informationFormDTO);
return new Result();

Loading…
Cancel
Save