2 changed files with 34 additions and 1 deletions
@ -0,0 +1,33 @@ |
|||||||
|
package apelet.association.plugin.clueManage; |
||||||
|
|
||||||
|
import apelet.common.core.object.ObjectCollection; |
||||||
|
import apelet.common.core.object.ObjectValue; |
||||||
|
import apelet.common.online.plugin.BeforeExecuteOperationArgs; |
||||||
|
import apelet.common.online.plugin.OperationServicePlugIn; |
||||||
|
|
||||||
|
/** |
||||||
|
* @ClassName: ClueActivateOpPlugin |
||||||
|
* @Author: lihuangbin |
||||||
|
* @Date: 2026/5/11 |
||||||
|
* @Description: 激活放弃的线索 |
||||||
|
*/ |
||||||
|
|
||||||
|
public class ClueActivateOpPlugin 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"); |
||||||
|
//保存入库
|
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -1,4 +1,4 @@ |
|||||||
package apelet.association.controller.plugin.formPlugin; |
package apelet.association.plugin.clueManage; |
||||||
|
|
||||||
import apelet.association.utils.CreatNumberUtils; |
import apelet.association.utils.CreatNumberUtils; |
||||||
import apelet.common.core.object.ObjectValue; |
import apelet.common.core.object.ObjectValue; |
||||||
Loading…
Reference in new issue