use of io.github.ihongs.dh.search.TitlesHelper.Titles in project HongsCORE by ihongs.
the class SearchAction method acount.
@Action("acount")
@Preset(conf = "", form = "")
@Titles(conf = "", form = "")
public void acount(ActionHelper helper) throws HongsException {
SearchEntity sr = (SearchEntity) getEntity(helper);
StatisHelper sh = new StatisHelper(sr);
Map rd = helper.getRequestData();
rd = getReqMap(helper, sr, "acount", rd);
// 检查参数
acheck(sr, rd, 1);
Map xd = sh.acount(rd);
Map sd = Synt.mapOf("enfo", xd);
sd = getRspMap(helper, sr, "acount", sd);
helper.reply(sd);
}
use of io.github.ihongs.dh.search.TitlesHelper.Titles in project HongsCORE by ihongs.
the class SearchAction method amount.
@Action("amount")
@Preset(conf = "", form = "")
@Titles(conf = "", form = "")
public void amount(ActionHelper helper) throws HongsException {
SearchEntity sr = (SearchEntity) getEntity(helper);
StatisHelper sh = new StatisHelper(sr);
Map rd = helper.getRequestData();
rd = getReqMap(helper, sr, "amount", rd);
// 检查参数
acheck(sr, rd, 2);
Map xd = sh.amount(rd);
Map sd = Synt.mapOf("enfo", xd);
sd = getRspMap(helper, sr, "amount", sd);
helper.reply(sd);
}