2018-10-21 21:38

@JFinal 先用model save/update 解决了,用Service 线上环境有问题。

//生成loanRepay
LoanRepay loanRepay = buildLoanRepay(lid, loan, deadline);
loanRepay.save();

2018-10-21 20:56

@JFinal 请教下,同样的代码,本地没报错,线上报错了。
明明已经用FInal标记了,loanAdminService空指针。

private final LoanAdminService loanAdminService = LoanAdminService.me;
Db.tx(new IAtom() {

@Override
public boolean run() throws SQLException {
loanAdminService.save(loanUpdate);
}

2018-10-21 20:55

@杜福忠 请教下,同样的代码,本地没报错,线上报错了。
明明已经用FInal标记了

private final LoanAdminService loanAdminService = LoanAdminService.me;
Db.tx(new IAtom() {

@Override
public boolean run() throws SQLException {
loanAdminService.save(loanUpdate);
}

2018-10-19 17:55

@JFinal 确认下,是这样么?
Db.tx(new IAtom() {
public boolean run() throws SQLException {
JFinal Db.update("update t1 set f1 = ?", 123);
Spring service.update();
return true;
}
});

2018-10-18 10:47

} else if(value instanceof Timestamp || value instanceof Date){
cell.setCellValue(DateFormatKit.formatDateYmdHms((Date) value));
} 目前这么处理的。 toJson的时候,mixedJson会有格式化 指定 格式。

2018-10-17 22:25

怎么不让缓存呢