紫罗兰 发布于67月前 5答/1903阅
/**
* 淇濆瓨
*/
@Override
public boolean save() {
String pk = null;
if (xx.isOracle()) {
Table table = TableMapping.me().getTable(getClass());
pk = table.getPrimaryKey()[0];
// 搴忓垪榛樿鍊�
if (this.get(pk) == null) {
this.set(pk, EovaConst.SEQ_ + table.getName() + ".nextval");
}
}
boolean isSave = super.save();
if (xx.isOracle()) {
// 鏂板鎴愬姛鍚� 涓婚敭 BigDecimal->Integer
this.set(pk, Integer.valueOf(this.get(pk).toString())); //这里强转
}
return isSave;
}