2 |
3 |
4 |
5 | 主键
6 | {{ row.deptId }}
7 |
8 |
9 | 主键
10 | {{ row.deptId }}
11 |
12 |
13 | 上级ID
14 | {{ row.parentId }}
15 |
16 |
17 | 上级ID
18 | {{ row.parentId }}
19 |
20 |
21 | 部门名称
22 | {{ row.name }}
23 |
24 |
25 | 部门名称
26 | {{ row.name }}
27 |
28 |
29 | 可用标志
30 | {{ row.enable }}
31 |
32 |
33 | 可用标志
34 | {{ row.enable }}
35 |
36 |
37 | 备注
38 | {{ row.remark }}
39 |
40 |
41 | 备注
42 | {{ row.remark }}
43 |
44 |
45 |
46 |
47 |
52 |
62 |
--------------------------------------------------------------------------------
/test-maven-plugin/src/main/config/dist/dept/DeptService.java:
--------------------------------------------------------------------------------
1 | package org.alvin.test.dept;
2 | import java.util.List;
3 | import org.alvin.code.gen.utils.Page;
4 | import com.github.pagehelper.PageHelper;
5 | import lombok.extern.slf4j.Slf4j;
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 | import org.springframework.transaction.annotation.Transactional;
9 |
10 | /**
11 | * @类说明: admin_dept--数据逻辑层
12 | * @author: alvin198761@163.com
13 | * @date : 2019-11-17 21:00:17
14 | **/
15 | @Slf4j
16 | @Service
17 | public class DeptService {
18 |
19 |
20 | @Autowired
21 | private DeptDao dao; //注入admin_dept数据访问层
22 |
23 | /**
24 | * @方法说明: 新增[admin_dept]记录
25 | */
26 | @Transactional
27 | public int save(Dept dept) {
28 | return dao.save(dept);
29 | }
30 |
31 | /**
32 | * @方法说明: 删除admin_dept记录(多条)
33 | */
34 | @Transactional
35 | public int delete(Integer ids[]) {
36 | //return dao.deleteLogic(ids);//逻辑删除
37 | return dao.delete(ids);//物理删除
38 | }
39 |
40 | /**
41 | * @方法说明: 更新admin_dept记录
42 | */
43 | @Transactional
44 | public int update(Dept dept) {
45 | return dao.update(dept);
46 | }
47 |
48 | /**
49 | * @方法说明:更新admin_dept记录,不为空的都更新掉
50 | */
51 | @Transactional
52 | public int updateNotNull(Dept dept) {
53 | return dao.updateNotNull(dept);
54 | }
55 |
56 | /**
57 | * @方法说明: 按条件查询分页admin_dept列表
58 | */
59 | public Page