不知道哪里写错,前端按/jxkh/cqs就找不到post方法也没错,[DEBUG] 11:54:04.183 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) - Search mapping for [POST] path=/jxkh/cqs : NOT Action match
@IocBean
@At("/jxkh")
@Ok("json:{ignoreNull:true}")
public class EnterpriseCheckModule extends BaseModule {
Log log = Logs.get();
@Inject protected EnterpriseCheckService enterpriseCheckService;
@POST
@Ok("json")
@At("/cqs")
@AdaptBy(type = JsonAdaptor.class)
@Filters
public Object check(@Param("projectId")String projectId, HttpServletResponse response) {
try {
log.info("查询成功");
Sql sql = Sqls.create("SELECT a.name,a.realname as realName,b.name as projectName from sys_project_user c LEFT JOIN sys_user a on a.id = c.u_id LEFT JOIN sys_project b on b.id = c.p_id where b.id = @A");
sql.params().set("A", projectId);
sql.setCallback(Sqls.callback.maps());
dao.execute(sql);
List maps = sql.getList(Map.class);
return maps;
} catch (Exception e) {
log.info("查询失败");
e.printStackTrace();
}
return Messager.instance(CommResultEnum.QUERY_FAIL).res();
}