* @param type
* @return
*/
public static boolean addBlackList(int myId, int otherId, int type){
if(namedUniqueResult("BLACKLIST", myId, otherId)==null){
MyBlackListBean fbean = new MyBlackListBean();
fbean.setAddTime(new Date());
fbean.setMyId(myId);
fbean.setOther(new UserBean(otherId));
fbean.setType(type);
save(fbean);
return true;
}
return false;
}