Commit 6b8a420e authored by tianbo's avatar tianbo

refactor(amos-boot-module-jg): 优化个人主体公司代码处理逻辑

- 在 CommonServiceImpl 类中的 isRegistrationNumberUsedByOtherUnits 方法中添加对个人主体公司类型的处理 - 通过拆分公司代码,获取个人主体的实际公司代码- 此修改提高了系统对不同公司类型处理的灵活性和准确性
parent b74a5ca5
......@@ -3023,6 +3023,10 @@ public class CommonServiceImpl implements ICommonService {
*/
public String isRegistrationNumberUsedByOtherUnits(String useRegistrationCode) {
String companyCode = getSelectedOrgInfo().getCompany().getCompanyCode();
String companyType = getSelectedOrgInfo().getCompany().getCompanyType();
if ("个人主体".equals(companyType)) {
companyCode = companyCode.split("_")[1];
}
return commonMapper.isRegistrationNumberUsedByOtherUnits(useRegistrationCode, companyCode);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment