金蝶s-HR 8612 电子合同支持外籍员工第三方认证二开说明
【支持版本】
8612及以上
【开发步骤】
1、修改OSF:com.kingdee.shr.econtractservice.osf.GetEContractListService(若不存在该OSF则不需要修改),其中
com.kingdee.shr.econtractservice.osf.GetEContractListService#processContractSignBizBill方法需要在personMap中put证件类型
参数:identityType
参数类型:String
参数值:默认为0,为0时会校验18位身份证号格式。0-居民身份证 1-护照 B-港澳居民往来内地通行证 C-台湾居民来往大陆通行证 E-户口簿 F-临时居民身份证
参考接口:
注意:personMap.put("idcard", person.getIdCardNO());中的idcard为身份证号,若为其他证件号,则此处value值需要二开做调整重新获取,获取方式从已有表字段或新增二开字段获取等
参考上面方式需要调整以下5个方法:
com.kingdee.shr.econtractservice.osf.GetEContractListService#processContractSignBizBill
com.kingdee.shr.econtractservice.osf.GetEContractListService#processContractRenewBizBill
com.kingdee.shr.econtractservice.osf.GetEContractListService#processContractPreSignBizBill
com.kingdee.shr.econtractservice.osf.GetEContractListService#processOtherContractSignBizBill
com.kingdee.shr.econtractservice.osf.GetEContractListService#processContractChangeBizBill
2、修改OSF:com.kingdee.shr.elecontract.osf.GetEContractInfoService
其中com.kingdee.shr.elecontract.osf.GetEContractInfoService#processDataFromRenewBillInfo方法需要在personMap中put证件类型
参数:identityType
参数类型:String
参数值:默认为0,为0时会校验18位身份证号格式。0-居民身份证 1-护照 B-港澳居民往来内地通行证 C-台湾居民来往大陆通行证 E-户口簿 F-临时居民身份证
参考接口:
注意:personMap.put("idcard", person.getIdCardNO());中的idcard为身份证号,若为其他证件号,则此处value值需要二开做调整重新获取,获取方式从已有表字段或新增二开字段获取等
参考上面方式需要调整以下7个方法:
共享领域:
com.kingdee.shr.elecontract.osf.GetEContractInfoService#processDataFromRenewBillInfo
com.kingdee.shr.elecontract.osf.GetEContractInfoService#processDataFromPreSignBillInfo
com.kingdee.shr.elecontract.osf.GetEContractInfoService#processDataFromSignBillInfo
com.kingdee.shr.elecontract.osf.GetEContractInfoService#processDataFromOtherBillInfo
com.kingdee.shr.elecontract.osf.GetEContractInfoService#processDataFromOtherPreSignBillInfo
com.kingdee.shr.elecontract.osf.GetEContractInfoService#processDataFromChangeBillInfo
人事领域:
com.kingdee.shr.elecontract.osf.GetEContractInfoService#processDataFromContractBillMiddleInfo
3、修改OSF:com.kingdee.shr.elecontract.osf.GetEmpEContractListService(若不存在该OSF则不需要修改)
参考以上方式修改以下3个方法:
com.kingdee.shr.elecontract.osf.GetEmpEContractListService
com.kingdee.shr.elecontract.osf.GetEmpEContractListService#processContractPreNewSignBizBill
com.kingdee.shr.elecontract.osf.GetEmpEContractListService#processEmployeeContract
4、修改OSF:com.kingdee.shr.elecontract.osf.ElectronicLaborMobileAuthUrlService
获取identityType然后将该值传给第三方,注意此处新增了OSF参数identityType,需要将该OSF扩展,添加OSF扩展配置