Browse Source

营销员驳回与上级驳回修改

anderx 2 years ago
parent
commit
4b078cf5f1

+ 3 - 2
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -581,8 +581,9 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 		}
 		AdminListBo my = adminMapper.getDeptNameByAid(TokenManager.getAdminId());
 		sendNoticeAndSoucket(a.getId(),status,content.toString());
-
-		publicReleaseMapper.updateByPrimaryKeySelective(p);
+		if (p.getStatus()!=null||p.getPublicType()!=null){
+			publicReleaseMapper.updateByPrimaryKeySelective(p);
+		}
 		if (a.getOpenId()!=null) {
 			if (remarks.length()>19) {
 				remarks=remarks.substring(0, 15)+"...";