returnMessage = "fileName=" + fileName + "<message>";
}
public void addRemark() throws EasyJException {
Remark remark = (Remark) object;
remark.setCreatorId(userId);
remark.setBuildTime(new java.sql.Date(System.currentTimeMillis()));
remark.setUpdateTime(new java.sql.Date(System.currentTimeMillis()));
/* todo:将来需要改成用户对应的角色 */
remark.setRoleId(new Long(1));
if (remark.getRemarkId() == null)
remark = (Remark) dp.create(remark);
else {
remark.setUseState("Y");
dp.update(remark);
}
remark = (Remark) dp.get(remark);
StringBuffer buffer = BeanUtil.serializeObjectToClient(remark);
buffer.append("<message>保存成功");