This action will force synchronization from wxd_tony1984/DevelopAssistant, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
package ${PakageName}.controller;import java.util.Date;import javax.servlet.http.HttpServletRequest;import org.apache.shiro.SecurityUtils;import org.apache.shiro.subject.Subject;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import ${PakageName}.exception.BizException;import ${PakageName}.service.I${EntityName}Service;import lombok.extern.log4j.Log4j2;@Log4j2@RestControllerpublic class ${EntityName}Controller {@Autowiredprivate I${EntityName}Service ${InstanceName}Service;@RequestMapping("/${EntityName}/list")@ApiOperation( httpMethod = "POST", value = "分页获取数据", notes = "分页获取数据")public ResultEnity<IPage<Map<String, Object>>> List(@ApiParam(name = "params", value = "查询条件",required = true) @RequestBody Map<String,Object> params){IPage<Map<String, Object>> result = null;try {result = ${InstanceName}Service.query${EntityName}PageList(params);}catch (BizException ex) {// TODO: handle exceptionlog.error("查询数据出错:"+ex.getMessage(),ex);return ResultEnity.Error("查询数据出错:"+ex.getMessage(), null);}catch (Exception ex) {// TODO: handle exceptionlog.error("查询数据出错:"+ex.getMessage(),ex);return ResultEnity.Error("查询数据出错", null);}return ResultEnity.Success("查询成功", result);}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。