组织机构选择角色

pull/6/merge
zhangdaiscott 2016-07-25 17:51:41 +08:00
parent 915d71b993
commit fea32ae492
2 changed files with 11 additions and 3 deletions

View File

@ -553,7 +553,9 @@ public class CommonDao extends GenericBaseCommonDao implements ICommonDao, IGene
}
}
curChildList.clear();
if(curChildList!=null){
curChildList.clear();
}
return tree;
}

View File

@ -22,6 +22,7 @@ import org.jeecgframework.codegenerate.pojo.Columnt;
import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.core.util.oConvertUtils;
import org.jeecgframework.tag.vo.datatable.SortDirection;
import org.jeecgframework.web.cgform.entity.config.CgFormFieldEntity;
import org.jeecgframework.web.cgform.entity.config.CgFormHeadEntity;
@ -197,13 +198,13 @@ public class CgformTransController {
cgFormField.setLength(Integer.valueOf(columnt
.getPrecision()));
}
//update-begin--Author:zhangdaihao Date:20140212 for[001]oracle下number类型数据库表导出表单默认长度为0同步失败
else{
if(cgFormField.getType().equals(DataBaseConst.INT)){
cgFormField.setLength(10);
}
}
//update-end--Author:zhangdaihao Date:20140212 for[001]oracle下number类型数据库表导出表单默认长度为0同步失败
if (StringUtil.isNotEmpty(columnt.getScale()))
cgFormField.setPointLength(Integer.valueOf(columnt
.getScale()));
@ -212,6 +213,11 @@ public class CgformTransController {
columnsList.add(cgFormField);
}
cgFormHead.setColumns(columnsList);
//update-begin--Author:scott Date:20170720 for导入报单报错-----
if(oConvertUtils.isEmpty(cgFormHead.getJformCategory())){
cgFormHead.setJformCategory("bdfl_ptbd");
}
//update-end--Author:scott Date:20170720 for导入报单报错-----
cgFormFieldService.saveTable(cgFormHead, "");
if (yes != "")
yes += ",";