|
|
|
@ -1,10 +1,6 @@
|
|
|
|
|
package weaver.formmode.customjavacode.modeexpand;
|
|
|
|
|
package weaver.formmode.organization.modeexpand;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.engine.organization.entity.map.JclOrgMap;
|
|
|
|
|
import com.engine.organization.mapper.jclorgmap.JclOrgMapper;
|
|
|
|
|
import com.engine.organization.util.OrganizationDateUtil;
|
|
|
|
|
import com.engine.organization.util.db.MapperProxyFactory;
|
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
|
import weaver.formmode.customjavacode.AbstractModeExpandJavaCodeNew;
|
|
|
|
|
import weaver.general.Util;
|
|
|
|
@ -38,10 +34,10 @@ public class VODeleteModeExpand extends AbstractModeExpandJavaCodeNew {
|
|
|
|
|
for (String id : billidsTmp) {
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
rs.executeQuery("select id, fid, fecid, fname, ftype, forder, fparentid, fdate from uf_jcl_org_vir where id ='" + id + "'");
|
|
|
|
|
RecordSet recordSet = new RecordSet();
|
|
|
|
|
if (rs.next()) {
|
|
|
|
|
String ftype = rs.getString("ftype");
|
|
|
|
|
String fdate = rs.getString("fdate");
|
|
|
|
|
RecordSet recordSet = new RecordSet();
|
|
|
|
|
String delsql = "delete JCL_ORG_MAP where id=" + id + " and ftype='" + ftype + "' and fisvitual='1' and fdatebegin='" + fdate + "'";
|
|
|
|
|
recordSet.execute(delsql);
|
|
|
|
|
String updatesql = "update JCL_ORG_MAP set fdateend=' " + new Date(OrganizationDateUtil.stringToDate(currentDate).getTime()) +
|