Search in sources :

Example 1 with Titles

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);
}
Also used : Map(java.util.Map) JAction(io.github.ihongs.dh.JAction) Action(io.github.ihongs.action.anno.Action) Preset(io.github.ihongs.action.anno.Preset) Titles(io.github.ihongs.dh.search.TitlesHelper.Titles)

Example 2 with Titles

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);
}
Also used : Map(java.util.Map) JAction(io.github.ihongs.dh.JAction) Action(io.github.ihongs.action.anno.Action) Preset(io.github.ihongs.action.anno.Preset) Titles(io.github.ihongs.dh.search.TitlesHelper.Titles)

Aggregations

Action (io.github.ihongs.action.anno.Action)2 Preset (io.github.ihongs.action.anno.Preset)2 JAction (io.github.ihongs.dh.JAction)2 Titles (io.github.ihongs.dh.search.TitlesHelper.Titles)2 Map (java.util.Map)2