|
|
@@ -179,6 +179,54 @@ public class OrganizationServiceImpl extends BaseMybatisDao<OrganizationManageme
|
|
|
}
|
|
|
organizationManagementMapper.updateByNumber(i);
|
|
|
n++;
|
|
|
+
|
|
|
+ //*******下下级编号修改
|
|
|
+ int m=0;
|
|
|
+ List<OrganizationListOut> Noss =organizationManagementMapper.selectIDNBySuperId(i.getName());
|
|
|
+ System.out.println("noss="+Noss);
|
|
|
+ for(OrganizationListOut o:Noss){
|
|
|
+ sdepNo=organizationManagementMapper.selectDepNoByName(o.getSuperId());
|
|
|
+ if(m<10){
|
|
|
+ String dep=sdepNo+"0"+m;
|
|
|
+ if(m>=10){
|
|
|
+ dep=sdepNo+m;
|
|
|
+ }else{
|
|
|
+ dep=sdepNo+"0"+m;
|
|
|
+ }
|
|
|
+ o.setDepNo(dep);
|
|
|
+ }
|
|
|
+ if(m>=10){
|
|
|
+ String dep=sdepNo+m;
|
|
|
+ dep=sdepNo+m;
|
|
|
+ o.setDepNo(dep);
|
|
|
+ }
|
|
|
+ organizationManagementMapper.updateByNumber(o);
|
|
|
+ m++;
|
|
|
+
|
|
|
+ //*******下下级编号修改
|
|
|
+ int z=0;
|
|
|
+ List<OrganizationListOut> Nosss =organizationManagementMapper.selectIDNBySuperId(o.getName());
|
|
|
+ for(OrganizationListOut p:Nosss){
|
|
|
+ sdepNo=organizationManagementMapper.selectDepNoByName(p.getSuperId());
|
|
|
+ if(z<10){
|
|
|
+ String dep=sdepNo+"0"+z;
|
|
|
+ if(z>=10){
|
|
|
+ dep=sdepNo+z;
|
|
|
+ }else{
|
|
|
+ dep=sdepNo+"0"+z;
|
|
|
+ }
|
|
|
+ p.setDepNo(dep);
|
|
|
+ }
|
|
|
+ if(z>=10){
|
|
|
+ String dep=sdepNo+z;
|
|
|
+ dep=sdepNo+z;
|
|
|
+ p.setDepNo(dep);
|
|
|
+ }
|
|
|
+ organizationManagementMapper.updateByNumber(p);
|
|
|
+ z++;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
return 1;
|
|
|
}
|