|
|
@ -3427,6 +3427,10 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public Result submitMsFzItemResi(SubmitItemFormDTO formDto) { |
|
|
|
|
|
|
|
// todo 未开放 只推送前三条
|
|
|
|
//Integer minshengCount = 0;
|
|
|
|
|
|
|
|
if("0".equals(formDto.getAppealSource())){ |
|
|
|
formDto.setNickName("网格员:"+formDto.getNickName()); |
|
|
|
} |
|
|
@ -3449,6 +3453,10 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
code = result.getData().getCommunityDisCenterZoningCode(); |
|
|
|
} |
|
|
|
entity.setSerialNum(getSerialNum("MS" + code)); |
|
|
|
|
|
|
|
// todo 未开放 只推送前三条 并且是15个字以上的 查找网格员上报民生诉求的数量
|
|
|
|
//minshengCount = baseDao.minshengItemCount(formDto.getParentDeptIds());
|
|
|
|
|
|
|
|
} else if (NumConstant.ONE_STR.equals(formDto.getPeopleFlag())) { |
|
|
|
//执法诉求所属街道的市中心编码
|
|
|
|
Result<SysDeptDTO> dtoResult = adminFeignClient.getSysDeptInfo(entity.getGridId()); |
|
|
@ -3492,7 +3500,11 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
//发送到市平台
|
|
|
|
try { |
|
|
|
if (NumConstant.ZERO_STR.equals(formDto.getPeopleFlag())) { |
|
|
|
//民生
|
|
|
|
// 做限制 内容超过16个字符 并且当日推送的不超过3个 才可以推送给市平台
|
|
|
|
// 只推送前三条 并且是15个字以上的
|
|
|
|
/*if (entity.getItemContent().length()>15 && minshengCount < 3){ |
|
|
|
sendCaseLivelihood(entity); |
|
|
|
}*/ |
|
|
|
sendCaseLivelihood(entity); |
|
|
|
} else if (NumConstant.ONE_STR.equals(formDto.getPeopleFlag())) { |
|
|
|
//发展
|
|
|
|