标签:列表 result catch return except nbsp base name cep
页面:
============================================================
@ApiOperation(value = "softlistinfo", notes = "query software note")
@RequestMapping(value="/softlistinfo",method=RequestMethod.POST)
public String softlistinfo( @RequestBody String data) {
String retMess = "ok";
try {
Map<String,String> requestMap = JSONObject.parseObject(data, Map.class);
List<SoftColl> mylist = softInfoService.querySoftInfoList(requestMap);
retMess = JSONObject.toJSONString(mylist);
}catch(Exception ex)
{
retMess = ex.getMessage();
}
return retMess;
}
=====================
sqlmapper
<select id="selectAllList" parameterType="java.util.Map" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from software_collection
limit #{begPageNum,jdbcType=INTEGER}, #{numCount,jdbcType=INTEGER}
</select>
@Autowired
private SoftCollMapper softCollMapper;
。。。。。
public List<SoftColl> querySoftInfoList(Map<String,String> requestMap)
{
List<SoftColl> mylist = softCollMapper.selectAllList(requestMap);
return mylist;
}
=======================================================
页面效果
标签:列表 result catch return except nbsp base name cep
原文地址:https://www.cnblogs.com/cquccy/p/12884334.html