@@ -0,0 +1,1890 @@
+package cn.cerc.mis.other;%0A%0Aimport cn.cerc.core.IHandle;%0Aimport cn.cerc.core.Record;%0Aimport cn.cerc.db.mysql.SqlQuery;%0Aimport cn.cerc.mis.core.Application;%0Aimport cn.cerc.mis.core.ISystemTable;%0A%0Apublic class Memory_UserInfo %7B%0A    public static int count = 0;%0A%0A    public static MemoryBuffer get(IHandle sess, String usercode) %7B%0A        MemoryBuffer buff = new MemoryBuffer(BufferType.getAccount, usercode);%0A        if (buff.isNull()) %7B%0A            ISystemTable systemTable = Application.getBean(%22systemTable%22, ISystemTable.class);%0A            SqlQuery ds = new SqlQuery(sess);%0A            ds.add(%22select a.Code_,a.Enabled_,a.Name_,a.SuperUser_,a.DiyRole_,a.RoleCode_,oi.Type_,a.ImageUrl_ %22);%0A            ds.add(%22from %25s a %22, systemTable.getUserInfo());%0A            ds.add(%22inner join %25s oi on a.CorpNo_=oi.CorpNo_ %22, systemTable.getBookInfo());%0A            ds.add(%22where a.Code_='%25s'%22, usercode);%0A            ds.open();%0A            if (ds.eof())%0A                throw new RuntimeException(String.format(%22%E7%94%A8%E6%88%B7%E4%BB%A3%E7%A0%81 %25s %E4%B8%8D%E5%AD%98%E5%9C%A8!%22, usercode));%0A            Record record = ds.getCurrent();%0A            buff.setField(%22Name_%22, record.getString(%22Name_%22));%0A            buff.setField(%22Enabled_%22, record.getInt(%22Enabled_%22));%0A            buff.setField(%22SuperUser_%22, record.getBoolean(%22SuperUser_%22));%0A            buff.setField(%22ImageUrl_%22, record.getString(%22ImageUrl_%22));%0A            if (record.getBoolean(%22DiyRole_%22))%0A                buff.setField(%22RoleCode_%22, record.getString(%22Code_%22));%0A            else%0A                buff.setField(%22RoleCode_%22, record.getString(%22RoleCode_%22));%0A            buff.setField(%22CorpType_%22, %22%22 + record.getInt(%22Type_%22) + %22,%22);%0A%0A        %7D else %7B%0A            count++;%0A        %7D%0A        return buff;%0A    %7D%0A%0A    public static void clear(String usercode) %7B%0A        try (MemoryBuffer buff = new MemoryBuffer(BufferType.getAccount, usercode)) %7B%0A            buff.clear();%0A        %7D%0A    %7D%0A%7D%0A

Create Memory_UserInfo.java