|
@@ -7,10 +7,11 @@ import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
|
|
|
import com.kingdee.bos.util.BOSUuid;
|
|
|
import com.kingdee.eas.basedata.person.Genders;
|
|
|
import com.kingdee.eas.basedata.person.PersonInfo;
|
|
|
-import com.kingdee.eas.custom.shuiyou.RequestTypeEnum;
|
|
|
+
|
|
|
import com.kingdee.eas.custom.shuiyou.six.osf.vo.SixTPersonInfo;
|
|
|
import com.kingdee.eas.custom.shuiyou.six.osf.vo.SpecialAmountInfo;
|
|
|
-import com.kingdee.eas.custom.shuiyou.task.TaskCatalogEnum;
|
|
|
+
|
|
|
+import com.kingdee.eas.custom.shuiyou.task.MessageResult;
|
|
|
import com.kingdee.eas.custom.shuiyou.task.TaskFactory;
|
|
|
import com.kingdee.eas.custom.shuiyou.task.TaskInfo;
|
|
|
import com.kingdee.eas.custom.shuiyou.uitls.ISYUtilsFacade;
|
|
@@ -26,21 +27,9 @@ import com.kingdee.shr.compensation.app.taxCal.TaxCalInitDetailStateEnum;
|
|
|
import com.kingdee.shr.compensation.util.Base64Utils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.log4j.Logger;
|
|
|
-import javax.ejb.*;
|
|
|
-import java.rmi.RemoteException;
|
|
|
+
|
|
|
import com.kingdee.bos.*;
|
|
|
-import com.kingdee.bos.util.BOSObjectType;
|
|
|
-import com.kingdee.bos.metadata.IMetaDataPK;
|
|
|
-import com.kingdee.bos.metadata.rule.RuleExecutor;
|
|
|
-import com.kingdee.bos.metadata.MetaDataPK;
|
|
|
-//import com.kingdee.bos.metadata.entity.EntityViewInfo;
|
|
|
-import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
|
|
|
-import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
|
|
|
-//import com.kingdee.bos.dao.IObjectPK;
|
|
|
-import com.kingdee.bos.dao.IObjectValue;
|
|
|
-import com.kingdee.bos.dao.IObjectCollection;
|
|
|
-import com.kingdee.bos.service.ServiceContext;
|
|
|
-import com.kingdee.bos.service.IServiceContext;
|
|
|
+
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
@@ -70,13 +59,14 @@ public class TaxSpeAddDedReportExFacadeControllerBean extends AbstractTaxSpeAddD
|
|
|
}
|
|
|
}
|
|
|
@Override
|
|
|
- protected List _report(Context ctx, Map paramMap) throws BOSException {
|
|
|
+ protected MessageResult _report(Context ctx, Map paramMap) throws BOSException {
|
|
|
|
|
|
logger.error("_report:"+paramMap);
|
|
|
if (this.checkParams(paramMap)) {
|
|
|
throw new BOSException("专项附加扣除申报服务参数缺失,请检查参数");
|
|
|
} else {
|
|
|
-
|
|
|
+ //前置任务
|
|
|
+ String RELAYTASK = (String)paramMap.get("RELAYTASK");
|
|
|
String taxUnitID = (String)paramMap.get("TAXUNITID");
|
|
|
String initIds = (String)paramMap.get("initIds");
|
|
|
String period = (String)paramMap.get("PERIOD");
|
|
@@ -201,30 +191,31 @@ public class TaxSpeAddDedReportExFacadeControllerBean extends AbstractTaxSpeAddD
|
|
|
paramMap.put("data", dataMap);
|
|
|
Map<String,Object> config = facade.getConfig();
|
|
|
String url = config.get("ip")+ URLConfigEnum.QUERYPREDEDUCT_VALUE;
|
|
|
- String tastId = facade.addTask(url, RequestTypeEnum.POST, JSONUtil.toJsonStr(specialAmountInfo),"querySpecialAmountService", TaskCatalogEnum.TAXSPEADDDEDREPORT,null);
|
|
|
-
|
|
|
- TaskInfo taxCalTaskInfo = TaskFactory.getLocalInstance(ctx).getTaskInfo(new ObjectUuidPK(tastId));
|
|
|
-
|
|
|
- int i = 0;
|
|
|
-
|
|
|
- for(int size = recordCollection.size(); i < size; ++i) {
|
|
|
- TaxSpeAddDedRecordInfo taxSpeAddDedRecordInfo = (TaxSpeAddDedRecordInfo)recordCollection.get(i);
|
|
|
- taxSpeAddDedRecordInfo.put("task",taxCalTaskInfo);
|
|
|
- }
|
|
|
-
|
|
|
- Object[] objects;
|
|
|
- for(Iterator i$ = updateParamList.iterator(); i$.hasNext(); objects[0] = tastId) {
|
|
|
- objects = (Object[])i$.next();
|
|
|
- }
|
|
|
-
|
|
|
- TaxSpeAddDedRecordFactory.getLocalInstance(ctx).saveBatchData(recordCollection);
|
|
|
- if (updateParamList.size() > 0) {
|
|
|
- DbUtil.executeBatch(ctx, updateRecordSQL, updateParamList);
|
|
|
- }
|
|
|
-
|
|
|
- List<IObjectPK> arrayList = new ArrayList();
|
|
|
- arrayList.add(new ObjectUuidPK(tastId));
|
|
|
- return arrayList;
|
|
|
+ String result = facade.post(url, JSONUtil.toJsonStr(specialAmountInfo));
|
|
|
+// if
|
|
|
+// facade.addTask("GetQuerySpecialAmountFeedback",);
|
|
|
+// TaskInfo taxCalTaskInfo = TaskFactory.getLocalInstance(ctx).getTaskInfo(new ObjectUuidPK(tastId));
|
|
|
+//
|
|
|
+// int i = 0;
|
|
|
+//
|
|
|
+// for(int size = recordCollection.size(); i < size; ++i) {
|
|
|
+// TaxSpeAddDedRecordInfo taxSpeAddDedRecordInfo = (TaxSpeAddDedRecordInfo)recordCollection.get(i);
|
|
|
+// taxSpeAddDedRecordInfo.put("task",taxCalTaskInfo);
|
|
|
+// }
|
|
|
+//
|
|
|
+// Object[] objects;
|
|
|
+// for(Iterator i$ = updateParamList.iterator(); i$.hasNext(); objects[0] = tastId) {
|
|
|
+// objects = (Object[])i$.next();
|
|
|
+// }
|
|
|
+//
|
|
|
+// TaxSpeAddDedRecordFactory.getLocalInstance(ctx).saveBatchData(recordCollection);
|
|
|
+// if (updateParamList.size() > 0) {
|
|
|
+// DbUtil.executeBatch(ctx, updateRecordSQL, updateParamList);
|
|
|
+// }
|
|
|
+//
|
|
|
+// List<IObjectPK> arrayList = new ArrayList();
|
|
|
+// arrayList.add(new ObjectUuidPK(tastId));
|
|
|
+ return MessageResult.SUCCESS();
|
|
|
}
|
|
|
|
|
|
String recordId = rowSet.getString("RECORDID");
|