审核修正同一个业务中既有maat又有callback的情况下,审核走maat的bug
This commit is contained in:
@@ -161,27 +161,18 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
List<FunctionRegionDict> dictList = DictUtils.getFunctionRegionDictList(cfg.getFunctionId());
|
||||
int maatType=0;
|
||||
//判断下发类型是走maat还是callback
|
||||
if(cfg.getCfgRegionCode()!=null){
|
||||
for(FunctionRegionDict f:dictList){
|
||||
if(f.getConfigRegionCode().intValue()==cfg.getCfgRegionCode()){
|
||||
maatType=f.getIsMaat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
List<SysDataDictionaryItem> maatServiceList = DictUtils.getDictList("MAAT_SERVICE");
|
||||
for(SysDataDictionaryItem maatService:maatServiceList){
|
||||
if(Integer.parseInt(maatService.getItemCode())==cfg.getServiceId().intValue()){
|
||||
for(FunctionRegionDict f:dictList){
|
||||
if(maatService.getItemValue().equals(f.getConfigRegionValue())){
|
||||
maatType=f.getIsMaat();
|
||||
break;
|
||||
}
|
||||
|
||||
List<SysDataDictionaryItem> maatServiceList = DictUtils.getDictList("MAAT_SERVICE");
|
||||
for(SysDataDictionaryItem maatService:maatServiceList){
|
||||
if(Integer.parseInt(maatService.getItemCode())==cfg.getServiceId().intValue()){
|
||||
for(FunctionRegionDict f:dictList){
|
||||
if(maatService.getItemValue().equals(f.getConfigRegionValue())){
|
||||
maatType=f.getIsMaat();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(cfg.getIsAudit()==Constants.AUDIT_YES){
|
||||
|
||||
Reference in New Issue
Block a user