1 changed files with 25 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||||||
|
package apelet.tenantadmin.tenant.plugin; |
||||||
|
|
||||||
|
import apelet.common.core.object.ObjectCollection; |
||||||
|
import apelet.common.core.object.ObjectValue; |
||||||
|
import apelet.common.online.plugin.BeforeExecuteOperationArgs; |
||||||
|
import apelet.common.online.plugin.OperationServicePlugIn; |
||||||
|
|
||||||
|
//提交后修改状态
|
||||||
|
public class StatusChangePlugin extends OperationServicePlugIn { |
||||||
|
@Override |
||||||
|
public void beforeExecuteOperationTransaction(BeforeExecuteOperationArgs e){ |
||||||
|
super.beforeExecuteOperationTransaction(e); |
||||||
|
ObjectCollection modelCollcetion = e.getModelCollcetion(); |
||||||
|
|
||||||
|
if(modelCollcetion != null && !modelCollcetion.isEmpty()){ |
||||||
|
for (int i = 0; i < modelCollcetion.size(); i++) { |
||||||
|
// 获取单据对象
|
||||||
|
ObjectValue bill = modelCollcetion.getObject(i); |
||||||
|
bill.setString("status","2"); |
||||||
|
//保存入库
|
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue