liupeng 4 vuotta sitten
vanhempi
commit
70dcc00b0a

+ 16 - 0
code/sapparent/sapservice/src/main/java/org/fouram/service/SapUserService.java

@@ -175,6 +175,22 @@ public class SapUserService extends BaseService {
 		}
 		}
 		return sb.substring(0, sb.length() - 1);
 		return sb.substring(0, sb.length() - 1);
 	}
 	}
+	
+	/**
+	 * 拼接多用户的职务
+	 * @param sapUsers
+	 * @return
+	 * @throws Exception
+	 */
+	public String getFullPosition(List<SapUser> sapUsers) throws Exception {
+		StringBuffer sb = new StringBuffer();
+		for (SapUser user : sapUsers) {
+			if (sb.indexOf(user.getFormatPosition()) < 0) {
+				sb.append(user.getFormatPosition()).append("、");
+			}
+		}
+		return sb.substring(0, sb.length() - 1);
+	}
 
 
 	public void saveSapUser(SapUser entity) throws Exception {
 	public void saveSapUser(SapUser entity) throws Exception {
 		entity.setCreateDate(new Date());
 		entity.setCreateDate(new Date());