{
code: 1,
message: "执行查询成功!",
version: "V1.0",
data: {
result: {
id: 22,
lastModifyTime: "2019-05-31T06:10:35.278+0000",
key: "APP_AUTHOR",
value: "峰",
is_Del: 1,
orgCode: null,
appCode: null
}
}
}
将查到的数据放在key为"result"的map中
显示出上面的效果
代码如下:
@Override
public ResponseVO selectPropertDetailById(Long id) {
try{
JuLongProperties p = propertiesMapper.selectPropertDetailById(id);
Map<String,JuLongProperties> resultMap = new HashMap<String,JuLongProperties>();
resultMap.put("result",p);
return new ResponseVO(ResponseCode.SUCCESS,"执行查询成功!",resultMap);
}catch(Exception e){
e.printStackTrace();
logger.error("查询属性配置错误!",e);
throw new JLException(e);
}
}