通过别名简化代码

master
星期八 5 years ago
parent 3a6078727a
commit 85f9876e85
  1. 3
      src/main/java/com/lq/cms/service/impl/SysLogServiceImpl.java
  2. 1
      src/main/java/com/lq/cms/service/impl/SysRoleResourcePermissionServiceImpl.java
  3. 2
      src/main/java/com/lq/code/service/BaseService.java
  4. 1
      src/main/java/com/lq/entity/SysLog.java
  5. 3
      src/main/webapp/WEB-INF/views/jsp/cms/sys/log/index.jsp

@ -13,9 +13,10 @@ import java.util.List;
/**
* Created by qi_liang on 2018/6/21.
* @author qi
*/
@Service
public class SysLogServiceImpl implements SysLogService {
public class SysLogServiceImpl implements SysLogService {
@Autowired
private SysLogDao sysLogDao;

@ -51,7 +51,6 @@ public class SysRoleResourcePermissionServiceImpl implements SysRoleResourcePer
public List<ZtreeComposite> findZtree(Long roleId) {
List<ZtreeComposite> ztreeList=new ArrayList<>();
List<SysResource> resourceList=sysResourceDao.findByParentId(0L);
for (SysResource sysResource:resourceList){
ZtreeItem ztreeItem=new ZtreeItem();
ztreeItem.setId(sysResource.getId());

@ -10,7 +10,7 @@ import java.util.List;
*/
public interface BaseService<T> {
BaseDao<T> getBaseDao();
BaseDao<T> getBaseDao();
default T findOne(Long id){
return getBaseDao().findOne(id);

@ -6,6 +6,7 @@ import java.util.Date;
/** 系统日志表
* Created by qi on 2017/7/27.
* @author qi
*/
public class SysLog extends IdEntity {
/**

@ -27,6 +27,9 @@
</script>
</head>
<body>
<div id="searchFrom">
时间: <input class="easyui-datebox"> - <input class="easyui-datebox">
</div>
<table id="dataList"></table>
</body>
</html>

Loading…
Cancel
Save