mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-24 06:15:06 +08:00
Merge pull request #124 from qxinfo2019/qxinfo2019-patch-2
fix: 同一表单中使用同一 stateClass 数据错乱
This commit is contained in:
commit
ad02c47a4b
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||
package com.rebuild.server.helper.state;
|
||||
|
||||
import cn.devezhao.persist4j.Field;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.rebuild.server.Application;
|
||||
|
@ -65,7 +66,8 @@ public class StateManager {
|
|||
final String cKey = "STATECLASS-" + stateClass;
|
||||
JSONArray options = (JSONArray) Application.getCommonCache().getx(cKey);
|
||||
if (options != null) {
|
||||
return options;
|
||||
// 使用副本
|
||||
return JSON.parseArray(options.toJSONString());
|
||||
}
|
||||
|
||||
Class<?> state = StateHelper.getSatetClass(stateClass);
|
||||
|
|
Loading…
Reference in a new issue