/** * 数据打包,按 XML 格式打包,顺序参见<A href ={@docRoot}/dataStructure/tb.html#PrpLECRecommendation描述/A>表字段 * * @return: String 返回打包后字符串 */ public String encode() { StringBuffer strReturn = new StringBuffer(256); strReturn.append(StrTool.cTrim(recommend)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(recommended)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(ChgData.chgData(sendtimes)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(success)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(registered)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(field1)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(field2)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(field3)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(makedate)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(maketime)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(modifydate)); strReturn.append(SysConst.PACKAGESPILTER); strReturn.append(StrTool.cTrim(modifytime)); return strReturn.toString(); }