Commit 9efb1842 by zhangyu

部门

parent 8c6c8464
......@@ -59,8 +59,9 @@
<tbody>
<c:forEach items="${page}" var="verify" varStatus="vs">
<tr>
<td>${verify.sort}</td>
<td>${verify.label}</td>
<td>${verify.valueType}</td>
<%-- <td>${verify.valueType}</td>--%>
<td>
<c:forEach items="${verify.dList}" var="depar" varStatus="ds">
${depar.departName}
......
......@@ -44,7 +44,7 @@
</head>
<body>
<ul class="nav nav-tabs">
<li class="active">航线编辑</li>
<li class="active">航线部门管理</li>
</ul>
<br/>
......
......@@ -28,14 +28,17 @@ public class VerifyAddService extends CrudService<VerifyDao, VerifyEntity> {
public List<UserDictDepartEntity> findUserDeparDictAllList() {
List<UserDictEntity> userDictAll = verifyDepartAddDao.getUserDictAll();
List<UserDictDepartEntity> dictlist = new ArrayList<>();
Integer i=1;
for (UserDictEntity ud : userDictAll) {
String valueType = ud.getValueType();
List<UserDepartTypeEntity> userDepartType = verifyDepartAddDao.getUserDepartType(valueType);
UserDictDepartEntity userDictEntity = new UserDictDepartEntity();
userDictEntity.setSort(i);
userDictEntity.setLabel(ud.getLabel());
userDictEntity.setValueType(ud.getValueType());
userDictEntity.setdList(userDepartType);
dictlist.add(userDictEntity);
i++;
}
return dictlist;
}
......
......@@ -4,13 +4,13 @@ import com.ejweb.core.persistence.CrudDao;
import com.ejweb.modules.depart.entity.DepartEntity;
/**
*
*
* 论证部门Dao
* @author zhanglg
* @version 2016-08-24
*/
public interface DepartDao extends CrudDao<DepartEntity>{
public DepartEntity getdepartByName(DepartEntity departEntity);
}
\ No newline at end of file
......@@ -20,9 +20,17 @@ public class UserDictDepartEntity extends DataEntity<UserDictDepartEntity> {
private String label;
private String valueType;
private Integer sort;
private List<UserDepartTypeEntity> dList;
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public static long getSerialVersionUID() {
return serialVersionUID;
}
......
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