ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.vci.server.bof.event.impl;
 
 
import com.vci.common.utility.ObjectUtility;
import com.vci.corba.omd.data.BusinessObject;
import com.vci.server.bof.delegate.BOFactoryServerDelegate;
import com.vci.server.bof.event.IServerEvent;
import com.vci.server.bof.histroy.BOHistroyService;
import com.vci.server.bof.server.ServiceParams;
 
public class MultiBOSaveHistroyEvent implements IServerEvent {
 
    @Override
    public void doAction(ServiceParams params) throws Exception {
        BusinessObject[] bos = params.getUpdateBos();
        if (bos == null || bos.length == 0) {
            return;
        }
        for (BusinessObject updateBo : bos) {
            BusinessObject bo = BOFactoryServerDelegate.getInstance().getInfoBusinessObject(updateBo.oid, updateBo.btName);
            bo.nameoid = ObjectUtility.getNewObjectID36();
            BOHistroyService.getInstance().saveHistroy(bo);
        }
    }
}