Browse Source

判断任务发起人名字如果为空,则不添加

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@7730 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 years ago
parent
commit
8b7cc28257

+ 5 - 1
src/main/java/com/uas/platform/b2b/mobile/service/impl/MobileTaskServiceImpl.java

@@ -134,7 +134,11 @@ public class MobileTaskServiceImpl implements MobileTaskService {
 			map.put("lasttask", null);
 		}
 		if (!CollectionUtils.isEmpty(lastProcess)) {
-			map.put("lastProcess", lastProcess.get(0).getDealname() + "的" + lastProcess.get(0).getCaller());
+			if (lastProcess.get(0).getDealname() != null) {
+				map.put("lastProcess", lastProcess.get(0).getDealname() + "的" + lastProcess.get(0).getCaller());
+			} else {
+				map.put("lastProcess", lastProcess.get(0).getCaller());
+			}
 		} else {
 			map.put("lastProcess", null);
 		}