| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.xcong.farmer.cms.core.node.AttrNode; |
| | | import com.xcong.farmer.cms.core.tag.model.Child; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | * @author wzy |
| | | * @date 2022-06-29 |
| | | **/ |
| | | @Slf4j |
| | | public class ChildDataParserHandler implements DataParserHandler { |
| | | |
| | | @Override |
| | | public void dataParser(AttrNode attrNode) { |
| | | System.out.println("ChildDataParserHandler"); |
| | | log.info("#数据子集执行#"); |
| | | Map<String, Object> parserData = attrNode.getParserData(); |
| | | |
| | | Object param = attrNode.getParam(); |
| | | JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(param)); |
| | | String obj = jsonObject.getString("obj"); |
| | | Child param = (Child) attrNode.getParam(); |
| | | String obj = param.getObj(); |
| | | |
| | | Object o = parserData.get(obj); |
| | | Object state = JSONObject.parseObject(JSONObject.toJSONString(o)).get("state"); |