2021-08-05 16:06
wds.stream().forEach(wd->{
String wdid= wd.getStr("wdid");
IntSummaryStatistics statistics = psyXuanxiangs.stream().collect(Collectors.summarizingInt(xx -> Db.queryInt("select fen from psy_dwd where tmid=? and daid=? and wdid=?", xx.getStr("tmid"), xx.getStr("daid"), wdid)));
wd.set(wdid,statistics.getSum());
});
2021-08-05 10:22
使用@Repeatable配置容器注解
/**
* 配置一条校验规则
*/
@Documented
@Target(ElementType.METHOD)
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(VRules.class)
public @interface VRule {
VType[] types();
String attrName();
String message() default "参数错误";
}
/**
* 校验规则
*/
@Documented
@Target(ElementType.METHOD)
@Inherited
@Retention(RetentionPolicy.RUNTIME)
public @interface VRules {
VRule[] value();
}
@VRule(attrName = "",types = {},message = "")
@VRule注解在action上即可
2021-03-14 11:54
@jounzhang IDEA下面开发会出现这个问题,Ecipse不会的