Explorar el Código

修改报错逻辑

wzh hace 1 año
padre
commit
dbd6ffdad6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/main/java/com/qlm/controller/common/CommonController.java

+ 2 - 1
src/main/java/com/qlm/controller/common/CommonController.java

@@ -81,7 +81,8 @@ public class CommonController extends Controller{
 				record.remove("create_time");
 				Db.save(tableName,key,record);
 			}
-			Record findById = Db.findById(tableName,key, record.get(key));
+			Integer id = WxUtil.getInt(key, record);
+			Record findById = Db.findById(tableName,key, id);
 			afterSave(tableName, findById);
 			result.set("status", true);
 			result.set("data", findById);