解决app特征中配置修改时新增配置无法显示问题

This commit is contained in:
zhanghongqing
2018-10-09 09:44:48 +08:00
parent 2b6997aa93
commit e70e7007fc
2 changed files with 8 additions and 2 deletions

View File

@@ -121,18 +121,22 @@ public class AppMultiFeatureCfgService extends BaseService {
} }
if(entity.getStrList()!=null){ if(entity.getStrList()!=null){
for(AppStringFeatureCfg cfg:entity.getStrList()){ for(AppStringFeatureCfg cfg:entity.getStrList()){
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"}); BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
appMultiFeatureCfgDao.insertAppStringFeatureCfg(cfg); appMultiFeatureCfgDao.insertAppStringFeatureCfg(cfg);
} }
} }
}
if(entity.getComplexList()!=null){ if(entity.getComplexList()!=null){
for(AppComplexFeatureCfg cfg:entity.getComplexList()){ for(AppComplexFeatureCfg cfg:entity.getComplexList()){
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"}); BeanUtils.copyProperties(entity, cfg,new String[]{"cfgRegionCode","cfgType"});
appMultiFeatureCfgDao.insertAppComplexFeatureCfg(cfg); appMultiFeatureCfgDao.insertAppComplexFeatureCfg(cfg);
} }
} }
} }
} }
}
public void auditAppFeatureCfg(AppFeatureIndex entity, Integer isAudit) { public void auditAppFeatureCfg(AppFeatureIndex entity, Integer isAudit) {
ToMaatBean maatBean = new ToMaatBean(); ToMaatBean maatBean = new ToMaatBean();
MaatCfg maatCfg = new MaatCfg(); MaatCfg maatCfg = new MaatCfg();

View File

@@ -271,8 +271,10 @@ var delContent = function(contentClassName, addBtnClassName) {
</c:choose> </c:choose>
</c:forEach> </c:forEach>
<c:if test="${!isBreak}"> <c:if test="${!isBreak}">
<div <div class="row boxSolid ${tabName}${status.index} hidden disabled">
class="row boxSolid ${tabName}${status.index} hidden disabled"> <input type="hidden" name="cfgRegionValue" value="${region.configRegionValue }">
<input type="hidden" name="cfgRegionType" value="${region.regionType }">
<input type="hidden" name="cfgRegionCode1" value="${region.configRegionCode }">
<%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%> <%@include file="/WEB-INF/views/cfg/complexCfgForm.jsp"%>
</div> </div>
<c:set var="complexCfgIndex" value="${complexCfgIndex+1 }"></c:set> <c:set var="complexCfgIndex" value="${complexCfgIndex+1 }"></c:set>