|
@@ -117,18 +117,23 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
if (cmpCalTableCollection.size() > 0) {
|
|
|
for (int i = 0; i < cmpCalTableCollection.size(); i++) {
|
|
|
String personId = cmpCalTableCollection.get(i).getPerson().getId().toString();
|
|
|
- //获取纳税单位
|
|
|
- String sql = getSalaryOrgMappingByPersonId(personId);
|
|
|
- logger.error("getSalaryOrgMappingByPersonId--------" + sql);
|
|
|
- IRowSet iRowSet = DbUtil.executeQuery(ctx, sql);
|
|
|
- String taxUnitId = null;
|
|
|
- while (iRowSet.next()) {
|
|
|
- taxUnitId = iRowSet.getString("taxunit");
|
|
|
- }
|
|
|
- if (!StringUtils.isEmpty(taxUnitId)) {
|
|
|
- //throw new ShrWebBizException("员工ID:" + personId + "未获取到纳税单位!!");
|
|
|
- TaxUnitAndPerson taxUnitAndPerson = new TaxUnitAndPerson(taxUnitId, personId);
|
|
|
- taxUnitAndPeople.add(taxUnitAndPerson);
|
|
|
+ //查询是否存在税后保实发
|
|
|
+ Integer abroadIncome = getAbroadIncome(personId, cmpschemeid);
|
|
|
+ logger.error("abroadIncome-----------" + personId + "--------------" + cmpschemeid);
|
|
|
+ if (abroadIncome != null) {
|
|
|
+ //获取纳税单位
|
|
|
+ String sql = getSalaryOrgMappingByPersonId(personId);
|
|
|
+ logger.error("getSalaryOrgMappingByPersonId--------" + sql);
|
|
|
+ IRowSet iRowSet = DbUtil.executeQuery(ctx, sql);
|
|
|
+ String taxUnitId = null;
|
|
|
+ while (iRowSet.next()) {
|
|
|
+ taxUnitId = iRowSet.getString("taxunit");
|
|
|
+ }
|
|
|
+ if (!StringUtils.isEmpty(taxUnitId)) {
|
|
|
+ //throw new ShrWebBizException("员工ID:" + personId + "未获取到纳税单位!!");
|
|
|
+ TaxUnitAndPerson taxUnitAndPerson = new TaxUnitAndPerson(taxUnitId, personId);
|
|
|
+ taxUnitAndPeople.add(taxUnitAndPerson);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -186,7 +191,7 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("requestId", requestId);
|
|
|
json.put("param", jsonObject.toString());
|
|
|
- isyUtilsFacade.addTask("synIndividualIncomeTaxService", json.toJSONString(), TaskCatalogEnum.PERSON, "");
|
|
|
+ isyUtilsFacade.addTask("synIndividualIncomeTaxService", json.toJSONString(), TaskCatalogEnum.UN_CAL_GET, "");
|
|
|
//isyUtilsFacade.backTask("https://test-openapi.17win.com/gateway/iit/reverseCalculateTax/getASynIndividualIncomeTaxFeedback", requestId, "synIndividualIncomeTaxService", jsonObject.toString(), TaskCatalogEnum.CAL_GET);
|
|
|
//查询反算反馈结果
|
|
|
//ISYUtilsFacade isyUtilsFacade = SYUtilsFacadeFactory.getLocalInstance(ctx);
|