自动加入新增时间


public String save(@Validated BzDitch//时间 bzDitch) {

if(bzDitch.getIsNewRecord()){
bzDitch.setDitTime(new Date());
}
bzDitchService.save(bzDitch);
return renderResult(Global.TRUE, text("保存渠道管理成功!"));
}
原文地址:https://www.cnblogs.com/yu72732/p/13256283.html