DML currently not allowed

DML currently not allowed
System.LimitException: DML currently not allowed

不能在constructor里进行DML操作的

原文地址:https://www.cnblogs.com/yqskj/p/2760302.html