|
@@ -74,6 +74,68 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
private Context ctx = SHRContext.getInstance().getContext();
|
|
|
Logger logger = Logger.getLogger("com.kingdee.eas.custom.compensation.handler.CmpCalDynamicListHandlerExExEx");
|
|
|
|
|
|
+ /**
|
|
|
+ * 反算同步
|
|
|
+ *
|
|
|
+ * @param request
|
|
|
+ * @param response
|
|
|
+ * @param modelMap
|
|
|
+ * @throws SHRWebException
|
|
|
+ * @throws BOSException
|
|
|
+ * @throws EASBizException
|
|
|
+ */
|
|
|
+ public void taxPaymentBackSynAction(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) throws SHRWebException, BOSException {
|
|
|
+ logger.error("taxPaymentBackSynAction---------starst-------------");
|
|
|
+ //计算规则ID
|
|
|
+ String cmpschemeid = request.getParameter("cmpschemeid");
|
|
|
+ if (StringUtils.isEmpty(cmpschemeid)) {
|
|
|
+ throw new ShrWebBizException("计算规则ID不可为空!!");
|
|
|
+ }
|
|
|
+ Map msgMap = new HashMap();
|
|
|
+ try {
|
|
|
+ //薪酬项目
|
|
|
+ Map cmpItemMap = new HashMap();
|
|
|
+ ICmpItem iCmpItem = CmpItemFactory.getLocalInstance(ctx);
|
|
|
+ //GS014:当月个税 JZT02:税后保应发
|
|
|
+ CmpItemCollection cmpItemCollection = iCmpItem.getCmpItemCollection("where number in ('GS014','JZT02')");
|
|
|
+ for (int i = 0; i < cmpItemCollection.size(); i++) {
|
|
|
+ CmpItemInfo cmpItemInfo = cmpItemCollection.get(i);
|
|
|
+ cmpItemMap.put(cmpItemInfo.getNumber(), cmpItemInfo.getFieldSn());
|
|
|
+ }
|
|
|
+ logger.error("cmpItemMap----------------------" + cmpItemMap);
|
|
|
+ //税款反算
|
|
|
+ ITaxPaymentBackCalculate iTaxPaymentBackCalculate = TaxPaymentBackCalculateFactory.getLocalInstance(ctx);
|
|
|
+ TaxPaymentBackCalculateCollection taxPaymentBackCalculateCollection = iTaxPaymentBackCalculate.getTaxPaymentBackCalculateCollection("where cmpscheme = '" + cmpschemeid + "'");
|
|
|
+ if (taxPaymentBackCalculateCollection.size() <= 0) {
|
|
|
+ throw new ShrWebBizException("税款反算未找到该计算规则数据,请进行税款反算提交操作后再同步!!");
|
|
|
+ }
|
|
|
+ for (int i = 0; i < taxPaymentBackCalculateCollection.size(); i++) {
|
|
|
+ TaxPaymentBackCalculateInfo taxPaymentBackCalculateInfo = taxPaymentBackCalculateCollection.get(i);
|
|
|
+ //税后保应发
|
|
|
+ BigDecimal salarySum = taxPaymentBackCalculateInfo.getSalarySum();
|
|
|
+ //当月个税
|
|
|
+ BigDecimal individual = taxPaymentBackCalculateInfo.getIndividual();
|
|
|
+ //员工信息
|
|
|
+ PersonInfo person = taxPaymentBackCalculateInfo.getPerson();
|
|
|
+ //计算规则
|
|
|
+ CalSchemeInfo cmpscheme = taxPaymentBackCalculateInfo.getCmpscheme();
|
|
|
+ // 税后保应发序号 税后保应发 当月个税序号 当月个税 计算规则ID 员工ID
|
|
|
+ String updateSql = String.format("update T_HR_SCmpCalTable set s%s = '%s' , s%s = '%s' where FCALSCHEMEID = '%s' and FPERSONID = '%s'",
|
|
|
+ cmpItemMap.get("JZT02"), salarySum.toString(), cmpItemMap.get("GS014"), individual, cmpscheme.getId(), person.getId());
|
|
|
+ logger.error("updateSql---------" + updateSql);
|
|
|
+ DbUtil.execute(ctx, updateSql);
|
|
|
+ //String updateSql = "select * from T_HR_SCmpCalTable where FCALSCHEMEID = 'FqEAAAe2vAv/zfKx' and FPERSONID = '383Uzn7KSea0Y+B08YP6qIDvfe0='";
|
|
|
+ //update T_HR_SCmpCalTable set s1 , s2 where FCALSCHEMEID = '' and FPERSONID = ''
|
|
|
+ }
|
|
|
+ msgMap.put("msg", "同步成功");
|
|
|
+ JSONUtils.SUCCESS(msgMap);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ throw new ShrWebBizException(e);
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 税款反算
|
|
|
*
|
|
@@ -83,7 +145,8 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
* @throws ShrWebBizException
|
|
|
* @throws BOSException
|
|
|
*/
|
|
|
- public void taxPaymentBackCalculateAction(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) throws SHRWebException, BOSException, EASBizException {
|
|
|
+ public void taxPaymentBackCalculateAction(HttpServletRequest request, HttpServletResponse response, ModelMap
|
|
|
+ modelMap) throws SHRWebException, BOSException, EASBizException {
|
|
|
//计算规则ID
|
|
|
String cmpschemeid = request.getParameter("cmpschemeid");
|
|
|
if (StringUtils.isEmpty(cmpschemeid)) {
|
|
@@ -120,7 +183,8 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
//查询是否存在税后保实发
|
|
|
Integer abroadIncome = getAbroadIncome(personId, cmpschemeid);
|
|
|
logger.error("abroadIncome-----------" + personId + "--------------" + cmpschemeid);
|
|
|
- if (abroadIncome != null) {
|
|
|
+ logger.error("abroadIncome-----------" + abroadIncome);
|
|
|
+ if (abroadIncome != null && abroadIncome != 0) {
|
|
|
//获取纳税单位
|
|
|
String sql = getSalaryOrgMappingByPersonId(personId);
|
|
|
logger.error("getSalaryOrgMappingByPersonId--------" + sql);
|
|
@@ -244,7 +308,10 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
* @throws SQLException
|
|
|
* @throws JsonProcessingException
|
|
|
*/
|
|
|
- private CalculateIndividualIncomeTaxRequest getCalculateIndividualIncomeTaxRequest(Map.Entry<String, List<TaxUnitAndPerson>> entry, TaxUnitInfo taxUnitInfo, String taxItemPlanNumber, String taxItemPlanName, String cmpschemeid, LogInfoInfo logInfo) throws BOSException, EASBizException, SQLException, JsonProcessingException {
|
|
|
+ private CalculateIndividualIncomeTaxRequest getCalculateIndividualIncomeTaxRequest
|
|
|
+ (Map.Entry<String, List<TaxUnitAndPerson>> entry, TaxUnitInfo taxUnitInfo, String taxItemPlanNumber, String
|
|
|
+ taxItemPlanName, String cmpschemeid, LogInfoInfo logInfo) throws
|
|
|
+ BOSException, EASBizException, SQLException, JsonProcessingException {
|
|
|
CalculateIndividualIncomeTaxRequest calculateIndividualIncomeTaxRequest = new CalculateIndividualIncomeTaxRequest();
|
|
|
//外部业务编号
|
|
|
String replace = UUID.randomUUID().toString().replace("-", "");
|
|
@@ -306,7 +373,7 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
PersonPositionCollection personPositionCollection = iPersonPosition.getPersonPositionCollection(personEntityViewInfo);
|
|
|
logger.error("personPositionCollection------------size" + personPositionCollection.size());
|
|
|
//综合所得对象
|
|
|
- ComplexIncomeRequest complexIncomeRequest = getComplexIncomeRequest(taxItemPlanNumber, taxItemPlanName, personPositionCollection, cmpschemeid);
|
|
|
+ ComplexIncomeRequest complexIncomeRequest = getComplexIncomeRequest(taxItemPlanNumber, taxItemPlanName, personPositionCollection, cmpschemeid, taxUnitInfo);
|
|
|
logger.error("complexIncomeRequest------------" + complexIncomeRequest);
|
|
|
//综合所得
|
|
|
calculateIndividualIncomeTaxRequest.setComplexIncomeRequest(complexIncomeRequest);
|
|
@@ -316,6 +383,7 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
logInfo.setInterfaceAddress("gateway/iit/reverseCalculateTax/calculateASynIndividualIncomeTax");//接口地址
|
|
|
logInfo.setInterfaceName("calculateASynIndividualIncomeTax");//接口名
|
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
|
+ logger.error("calculateIndividualIncomeTaxRequest------------" + mapper.writeValueAsString(calculateIndividualIncomeTaxRequest));
|
|
|
logInfo.setInParameter(mapper.writeValueAsString(calculateIndividualIncomeTaxRequest));//入参
|
|
|
return calculateIndividualIncomeTaxRequest;
|
|
|
}
|
|
@@ -488,7 +556,8 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
* @param param 员工ID
|
|
|
* @return
|
|
|
*/
|
|
|
- public String addTaxPaymentBackCalculate(CalculateTaxResultRequest resBody, com.alibaba.fastjson.JSONObject param) throws BOSException, EASBizException {
|
|
|
+ public String addTaxPaymentBackCalculate(CalculateTaxResultRequest resBody, com.alibaba.fastjson.JSONObject
|
|
|
+ param) throws BOSException, EASBizException {
|
|
|
logger.error("addTaxPaymentBackCalculate============Start===============");
|
|
|
String personId = param.getString("personId");//员工ID
|
|
|
String periodYear = param.getString("periodYear");//统计年
|
|
@@ -524,17 +593,17 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
//zhsd 综合所得
|
|
|
ComplexIncomeResultRequest complexIncomeResultRequest = resBody.getComplexIncomeResultRequest();
|
|
|
//全年一次性奖金
|
|
|
- if ("2024083001".equals(taxItemPlanNumber)) {
|
|
|
+ if ("GS003".equals(taxItemPlanNumber)) {
|
|
|
//qnycxjjsslb 全年一次性奖金
|
|
|
complexTaxCalculateResult = complexIncomeResultRequest.getAnnualOneTimeBonusIncome();
|
|
|
}
|
|
|
//一般劳务报酬所得列表
|
|
|
- if ("2024083003".equals(taxItemPlanNumber)) {
|
|
|
+ if ("GS002".equals(taxItemPlanNumber)) {
|
|
|
//lwbclb 一般劳务报酬所得列表
|
|
|
complexTaxCalculateResult = complexIncomeResultRequest.getLaborRemunerationIncome();
|
|
|
}
|
|
|
//正常工资薪金对象
|
|
|
- if ("2024083004".equals(taxItemPlanNumber)) {
|
|
|
+ if ("GS001".equals(taxItemPlanNumber)) {
|
|
|
//zcgzxj 正常工资薪金对象
|
|
|
complexTaxCalculateResult = complexIncomeResultRequest.getNormalSalarySpecIncome();
|
|
|
}
|
|
@@ -557,7 +626,8 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public NonResidentsIncomeRequest getNonResidentsIncomeRequest(String taxItemPlanName, PersonInfo personInfo, String cmpschemeid) throws SQLException, BOSException {
|
|
|
+ public NonResidentsIncomeRequest getNonResidentsIncomeRequest(String taxItemPlanName, PersonInfo
|
|
|
+ personInfo, String cmpschemeid) throws SQLException, BOSException {
|
|
|
NonResidentsIncomeRequest nonResidentsIncomeRequest = new NonResidentsIncomeRequest();
|
|
|
List<NonResidentsIncome> foreignerWagesSalaryIncomes = new ArrayList();
|
|
|
NonResidentsIncome nonResidentsIncome = getNonResidentsIncome(taxItemPlanName, personInfo, cmpschemeid);
|
|
@@ -572,7 +642,8 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
* * personInfo 员工信息
|
|
|
* * cmpschemeid 计算规则ID
|
|
|
*/
|
|
|
- public NonResidentsIncome getNonResidentsIncome(String taxItemPlanName, PersonInfo personInfo, String cmpschemeid) throws SQLException, BOSException {
|
|
|
+ public NonResidentsIncome getNonResidentsIncome(String taxItemPlanName, PersonInfo personInfo, String
|
|
|
+ cmpschemeid) throws SQLException, BOSException {
|
|
|
NonResidentsIncome nonResidentsIncome = new NonResidentsIncome();
|
|
|
//nonResidentsIncome.setName("何云");
|
|
|
//nonResidentsIncome.setLicenseType("居民身份证");
|
|
@@ -613,11 +684,14 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public ComplexIncomeRequest getComplexIncomeRequest(String taxItemPlanNumber, String taxItemPlanName, PersonPositionCollection personPositionCollection, String cmpschemeid) throws BOSException, EASBizException, SQLException {
|
|
|
+ public ComplexIncomeRequest getComplexIncomeRequest(String taxItemPlanNumber, String
|
|
|
+ taxItemPlanName, PersonPositionCollection personPositionCollection, String cmpschemeid, TaxUnitInfo taxUnitInfo) throws
|
|
|
+ BOSException, EASBizException, SQLException {
|
|
|
logger.error("getComplexIncomeRequest-----" + taxItemPlanNumber + "---" + taxItemPlanName + "---" + personPositionCollection + "---" + cmpschemeid);
|
|
|
ComplexIncomeRequest complexIncomeRequest = new ComplexIncomeRequest();
|
|
|
//全年一次性奖金
|
|
|
- if (taxItemPlanNumber.equals("2024083001")) {
|
|
|
+ if (taxItemPlanNumber.equals("GS003")) {
|
|
|
+ //if (taxItemPlanNumber.equals("2024083001")) {
|
|
|
List<ComplexIncome> aOneBonusIncomeList = new ArrayList();
|
|
|
for (int i = 0; i < personPositionCollection.size(); i++) {
|
|
|
PersonPositionInfo personPositionInfo = personPositionCollection.get(i);
|
|
@@ -631,7 +705,8 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
}
|
|
|
}
|
|
|
//一般劳务报酬所得列表
|
|
|
- if (taxItemPlanNumber.equals("2024083003")) {
|
|
|
+ //if (taxItemPlanNumber.equals("2024083003")) {
|
|
|
+ if (taxItemPlanNumber.equals("GS002")) {
|
|
|
List<ComplexIncome> complexIncomeList = new ArrayList();
|
|
|
for (int i = 0; i < personPositionCollection.size(); i++) {
|
|
|
PersonPositionInfo personPositionInfo = personPositionCollection.get(i);
|
|
@@ -645,8 +720,10 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
}
|
|
|
}
|
|
|
//正常工资薪金对象
|
|
|
- if (taxItemPlanNumber.equals("2024083004")) {
|
|
|
- NormalSalarySpecIncome normalSalarySpecIncome = getNormalSalarySpecIncome(personPositionCollection);
|
|
|
+ //if (taxItemPlanNumber.equals("2024083004")) {
|
|
|
+ if (taxItemPlanNumber.equals("GS001")) {
|
|
|
+ logger.error("GS001-----" + personPositionCollection);
|
|
|
+ NormalSalarySpecIncome normalSalarySpecIncome = getNormalSalarySpecIncome(personPositionCollection, taxItemPlanName, cmpschemeid, taxUnitInfo);
|
|
|
complexIncomeRequest.setNormalSalarySpecIncome(normalSalarySpecIncome);
|
|
|
}
|
|
|
return complexIncomeRequest;
|
|
@@ -660,7 +737,8 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public ComplexIncome getAnnualOneTimeBonusIncome(PersonInfo personInfo, String taxItemPlanName, String cmpschemeid) throws SQLException, BOSException {
|
|
|
+ public ComplexIncome getAnnualOneTimeBonusIncome(PersonInfo personInfo, String taxItemPlanName, String
|
|
|
+ cmpschemeid) throws SQLException, BOSException {
|
|
|
ComplexIncome complexIncome = new ComplexIncome();
|
|
|
//姓名
|
|
|
complexIncome.setName(personInfo.getName());
|
|
@@ -694,7 +772,8 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public ComplexIncome getLaborRemunerationIncome(PersonInfo personInfo, String taxItemPlanName, String cmpschemeid) throws SQLException, BOSException {
|
|
|
+ public ComplexIncome getLaborRemunerationIncome(PersonInfo personInfo, String taxItemPlanName, String
|
|
|
+ cmpschemeid) throws SQLException, BOSException {
|
|
|
ComplexIncome complexIncome = new ComplexIncome();
|
|
|
//姓名
|
|
|
complexIncome.setName(personInfo.getName());
|
|
@@ -726,7 +805,10 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public NormalSalarySpecIncome getNormalSalarySpecIncome(PersonPositionCollection personPositionCollection) throws BOSException, EASBizException {
|
|
|
+ public NormalSalarySpecIncome getNormalSalarySpecIncome(PersonPositionCollection
|
|
|
+ personPositionCollection, String taxItemPlanName, String cmpschemeid, TaxUnitInfo taxUnitInfo) throws
|
|
|
+ BOSException, EASBizException, SQLException {
|
|
|
+ logger.error("getNormalSalarySpecIncome-------------start");
|
|
|
//正常工资薪金对象
|
|
|
NormalSalarySpecIncome normalSalarySpecIncome = new NormalSalarySpecIncome();
|
|
|
//人员列表
|
|
@@ -735,10 +817,37 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
PersonPositionInfo personPositionInfo = personPositionCollection.get(i);
|
|
|
PersonInfo personInfo = personPositionInfo.getPerson();
|
|
|
//获取人员数据
|
|
|
- DetailCompanyEmployee detailCompanyEmployee = getDetailCompanyEmployee(personInfo);
|
|
|
+ DetailCompanyEmployee detailCompanyEmployee = getDetailCompanyEmployee(personInfo, taxUnitInfo);
|
|
|
companyEmployeeList.add(detailCompanyEmployee);
|
|
|
+ normalSalarySpecIncome.setCompanyEmployeeList(companyEmployeeList);
|
|
|
+ //正常薪金列表
|
|
|
+ List<ComplexIncome> normalSalarySpec = new ArrayList();
|
|
|
+ ComplexIncome complexIncome = new ComplexIncome();
|
|
|
+ //姓名
|
|
|
+ complexIncome.setName(personInfo.getName());
|
|
|
+ //complexIncome.setName("何云");
|
|
|
+ //居民身份证
|
|
|
+ if (personInfo.getIdCardNO() != null) {
|
|
|
+ //证照号码
|
|
|
+ complexIncome.setLicenseNumber(personInfo.getIdCardNO());
|
|
|
+ //证照类型
|
|
|
+ complexIncome.setLicenseType("居民身份证");
|
|
|
+ }
|
|
|
+ //中国护照不
|
|
|
+ if (personInfo.getPassportNO() != null) {
|
|
|
+ //证照类型
|
|
|
+ complexIncome.setLicenseType("中国护照");
|
|
|
+ //证照号码
|
|
|
+ complexIncome.setLicenseNumber(personInfo.getPassportNO());
|
|
|
+ }
|
|
|
+ Integer abroadIncome = getAbroadIncome(personInfo.getId().toString(), cmpschemeid);
|
|
|
+ //complexIncome.setLicenseNumber("429004198601085125");
|
|
|
+ //税后收入额
|
|
|
+ complexIncome.setAfterTaxIncome(new BigDecimal(abroadIncome));
|
|
|
+ complexIncome.setIncomeItemName(taxItemPlanName);
|
|
|
+ normalSalarySpec.add(complexIncome);
|
|
|
+ normalSalarySpecIncome.setNormalSalarySpec(normalSalarySpec);
|
|
|
}
|
|
|
- normalSalarySpecIncome.setCompanyEmployeeList(companyEmployeeList);
|
|
|
return normalSalarySpecIncome;
|
|
|
}
|
|
|
|
|
@@ -747,8 +856,9 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public DetailCompanyEmployee getDetailCompanyEmployee(PersonInfo personInfo) throws BOSException, EASBizException {
|
|
|
-
|
|
|
+ public DetailCompanyEmployee getDetailCompanyEmployee(PersonInfo personInfo, TaxUnitInfo taxUnitInfo) throws
|
|
|
+ BOSException, EASBizException {
|
|
|
+ logger.error("getDetailCompanyEmployee-------------start");
|
|
|
//人员对象
|
|
|
DetailCompanyEmployee detailCompanyEmployee = new DetailCompanyEmployee();
|
|
|
////姓名
|
|
@@ -759,6 +869,8 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
//detailCompanyEmployee.setLicenseNumber("429004198601085125");
|
|
|
//姓名
|
|
|
detailCompanyEmployee.setName(personInfo.getName());
|
|
|
+ logger.error("personInfoName-------------" + personInfo.getName());
|
|
|
+ logger.error("personInfo.getIdCardNO()-------------" + personInfo.getIdCardNO());
|
|
|
//complexIncome.setName("何云");
|
|
|
//居民身份证
|
|
|
if (personInfo.getIdCardNO() != null) {
|
|
@@ -787,9 +899,14 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
ITaxPersonRecordEntry iTaxPersonRecordEntry = TaxPersonRecordEntryFactory.getLocalInstance(ctx);
|
|
|
TaxPersonRecordEntryCollection taxPersonRecordEntryCollection = iTaxPersonRecordEntry.getTaxPersonRecordEntryCollection("where person.id = '" + personInfo.getId() + "'");
|
|
|
TaxPersonRecordEntryInfo taxPersonRecordEntryInfo = taxPersonRecordEntryCollection.get(0);
|
|
|
+ logger.error("taxPersonRecordEntryInfo-------------" + taxPersonRecordEntryInfo);
|
|
|
//任职受雇类型 可选择雇员、保险营销员、证券经纪人、其他、实习学生(全日制学历教育)
|
|
|
//detailCompanyEmployee.setIsEmployee("其他");
|
|
|
- detailCompanyEmployee.setIsEmployee(taxPersonRecordEntryInfo.getEmployedType().getAlias());
|
|
|
+ if (taxPersonRecordEntryInfo.getEmployedType() == null) {
|
|
|
+ detailCompanyEmployee.setIsEmployee("其他");
|
|
|
+ } else {
|
|
|
+ detailCompanyEmployee.setIsEmployee(taxPersonRecordEntryInfo.getEmployedType().getAlias());
|
|
|
+ }
|
|
|
//受雇日期 YYYY-MM-DD,不能大于当前时间,任职受雇类型选择雇员、保险营销员、证券经纪人时必录
|
|
|
SimpleDateFormat inputFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
detailCompanyEmployee.setEmployedDate(inputFormat.format(taxPersonRecordEntryInfo.getEmployedDate()));
|
|
@@ -800,7 +917,10 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
//国籍 nationality
|
|
|
NationalityInfo nationality = personInfo.getNationality();
|
|
|
detailCompanyEmployee.setNationality(nationality.getName());
|
|
|
-
|
|
|
+ //纳税人状态
|
|
|
+ detailCompanyEmployee.setState(taxPersonRecordEntryInfo.getPersonStatus().getAlias());
|
|
|
+ logger.error("detailCompanyEmployee-------------" + detailCompanyEmployee);
|
|
|
+ logger.error("getDetailCompanyEmployee-------------end");
|
|
|
return detailCompanyEmployee;
|
|
|
}
|
|
|
|
|
@@ -812,12 +932,12 @@ public class CmpCalDynamicListHandlerExExEx extends CmpCalDynamicListHandlerExEx
|
|
|
* @return
|
|
|
*/
|
|
|
public Integer getAbroadIncome(String perosnId, String cmpschemeid) throws BOSException, SQLException {
|
|
|
- String sql = String.format("select S336 from T_HR_SCmpCalTable where FPERSONID = '%s' and FCALSCHEMEID = '%s'", perosnId, cmpschemeid);
|
|
|
+ String sql = String.format("select S328 from T_HR_SCmpCalTable where FPERSONID = '%s' and FCALSCHEMEID = '%s'", perosnId, cmpschemeid);
|
|
|
logger.error("getAbroadIncomeSql---------------" + sql);
|
|
|
IRowSet iRowSet = DbUtil.executeQuery(ctx, sql);
|
|
|
Integer abroadIncome = null;
|
|
|
while (iRowSet.next()) {
|
|
|
- abroadIncome = iRowSet.getInt("S336");
|
|
|
+ abroadIncome = iRowSet.getInt("S328");
|
|
|
}
|
|
|
return abroadIncome;
|
|
|
}
|