|
|
@@ -514,7 +514,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
PublicExamine newp=new PublicExamine();
|
|
|
newp.setId(pe.getId());
|
|
|
newp.setStatus(1);
|
|
|
- publicExamineMapper.updateByPrimaryKey(newp);
|
|
|
+ publicExamineMapper.updateByPrimaryKeySelective(newp);
|
|
|
x++;
|
|
|
}else {
|
|
|
if (pe.getStatus()==1){
|
|
|
@@ -535,11 +535,12 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
}
|
|
|
AdminListBo my = adminMapper.getDeptNameByAid(TokenManager.getAdminId());
|
|
|
sendNoticeAndSoucket(a.getId(),status,content.toString());
|
|
|
- if (my.getOpenId()!=null) {
|
|
|
+
|
|
|
+ if (a.getOpenId()!=null) {
|
|
|
if (remarks.length()>19) {
|
|
|
remarks=remarks.substring(0, 15)+"...";
|
|
|
}
|
|
|
- Integer res=weChatUtils.addNotice(a.getOpenId(),p.getStatus(),p.getId(),date,my.getName(),remarks);
|
|
|
+ Integer res=weChatUtils.addNotice(a.getOpenId(),status,p.getId(),date,my.getName(),remarks);
|
|
|
if (res!=0) {
|
|
|
sendEmail( my, a, status);
|
|
|
|