|
|
@@ -97,22 +97,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
prd.setMainStatus(1);
|
|
|
}else {
|
|
|
prd.setMainStatus(0);
|
|
|
- StringBuffer str2=new StringBuffer();
|
|
|
- //如果是白名单只通当事人不审核
|
|
|
- if (my.getPublicPurview()==1){
|
|
|
- str2=str2.append(my.getName()).append("业务员(无需审核),发起对您的企业");
|
|
|
- str2=str2.append("[").append(u.getNickname()).append("]发起公出。");
|
|
|
-
|
|
|
- sendNoticeAndSoucket(u.getAid(),3,str2.toString());
|
|
|
- }else {
|
|
|
-
|
|
|
- str2=str2.append(my.getName()).append("(需审核),发起对您的企业");
|
|
|
- str2=str2.append("[").append(u.getNickname()).append("]发起公出。");
|
|
|
- sendEmailAndNoticeAndSoucket(u.getAid(),3,str2.toString());
|
|
|
- //不是自己的企业则需要审核并设置非自己客户待审核
|
|
|
- addPublicExamine(in.getId(),u.getAid());
|
|
|
- if(in.getPublicType()==null||in.getPublicType()==0)in.setPublicType(1);
|
|
|
- }
|
|
|
+ if(in.getType()==0) pushPublicToNotice(in, my, u);
|
|
|
}
|
|
|
prd.setPrid(in.getId());
|
|
|
prd.setUid(s);
|
|
|
@@ -149,6 +134,24 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ private void pushPublicToNotice(InputPublicRelease in, AdminListBo my, User u) {
|
|
|
+
|
|
|
+ StringBuffer str2=new StringBuffer();
|
|
|
+ //如果是白名单只通当事人不审核
|
|
|
+ if (my.getPublicPurview()==1){
|
|
|
+ str2=str2.append(my.getName()).append("业务员(无需审核),发起对您的企业");
|
|
|
+ str2=str2.append("[").append(u.getNickname()).append("]发起公出。");
|
|
|
+ sendNoticeAndSoucket(u.getAid(),3,str2.toString());
|
|
|
+ }else {
|
|
|
+ str2=str2.append(my.getName()).append("(需审核),发起对您的企业");
|
|
|
+ str2=str2.append("[").append(u.getNickname()).append("]发起公出。");
|
|
|
+ sendEmailAndNoticeAndSoucket(u.getAid(),3,str2.toString());
|
|
|
+ //不是自己的企业则需要审核并设置非自己客户待审核
|
|
|
+ addPublicExamine(in.getId(), u.getAid());
|
|
|
+ if(in.getPublicType()==null|| in.getPublicType()==0) in.setPublicType(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void addPublicExamine(Integer id, String aid) {
|
|
|
PublicExamine pe=new PublicExamine();
|
|
|
pe.setPrid(id);
|