Merge branch 'HQPT_USER' of 118.31.66.166:zp260/imf_cloud_wearhouse
正在显示
100 个修改的文件
包含
3137 行增加
和
417 行删除
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | web: | 2 | web: |
3 | upload-path: upload/ | 3 | upload-path: upload/ |
4 | server: | 4 | server: |
5 | - port: 7003 | 5 | + port: 8002 |
6 | servlet: | 6 | servlet: |
7 | context-path: ${SERVER_CONTEXTPATH:} | 7 | context-path: ${SERVER_CONTEXTPATH:} |
8 | spring: | 8 | spring: |
@@ -12,12 +12,15 @@ spring: | @@ -12,12 +12,15 @@ spring: | ||
12 | #静态资源,设置上传文件的访问, | 12 | #静态资源,设置上传文件的访问, |
13 | static-path-pattern: /** | 13 | static-path-pattern: /** |
14 | 14 | ||
15 | + | ||
15 | resources: | 16 | resources: |
16 | static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path} | 17 | static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path} |
17 | 18 | ||
18 | application: | 19 | application: |
19 | - name: tianbo.base.dev.devkit | ||
20 | - | 20 | + name: hqpt-user-center |
21 | + redis: | ||
22 | + host: 192.168.1.53 | ||
23 | + port: 6379 | ||
21 | jackson: | 24 | jackson: |
22 | serialization: | 25 | serialization: |
23 | FAIL_ON_EMPTY_BEANS: false | 26 | FAIL_ON_EMPTY_BEANS: false |
@@ -32,12 +35,12 @@ spring: | @@ -32,12 +35,12 @@ spring: | ||
32 | #eureka主机名,会在控制页面中显示 | 35 | #eureka主机名,会在控制页面中显示 |
33 | #DEV环境关闭注册。 | 36 | #DEV环境关闭注册。 |
34 | features: | 37 | features: |
35 | - enabled: false | 38 | + enabled: true |
36 | discovery: | 39 | discovery: |
37 | - enabled: false | 40 | + enabled: true |
38 | service-registry: | 41 | service-registry: |
39 | auto-registration: | 42 | auto-registration: |
40 | - enabled: false | 43 | + enabled: true |
41 | 44 | ||
42 | datasource: | 45 | datasource: |
43 | type: com.alibaba.druid.pool.DruidDataSource | 46 | type: com.alibaba.druid.pool.DruidDataSource |
@@ -47,9 +50,9 @@ spring: | @@ -47,9 +50,9 @@ spring: | ||
47 | #username=CGOETL | 50 | #username=CGOETL |
48 | #password=1q2w3e4r | 51 | #password=1q2w3e4r |
49 | #spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码 | 52 | #spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码 |
50 | - url: jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8 | ||
51 | - username: root | ||
52 | - password: | 53 | + url: jdbc:mysql://118.31.66.166:3306/HQPT_USER?useUnicode=true&characterEncoding=utf8 |
54 | + username: 110 | ||
55 | + password: QAHqCJf2kFYCLirM | ||
53 | driver-class-name: com.mysql.jdbc.Driver | 56 | driver-class-name: com.mysql.jdbc.Driver |
54 | max-idle: 10 | 57 | max-idle: 10 |
55 | max-wait: 10000 | 58 | max-wait: 10000 |
@@ -85,7 +88,7 @@ eureka: | @@ -85,7 +88,7 @@ eureka: | ||
85 | client: | 88 | client: |
86 | #eureka注册中心服务器地址 | 89 | #eureka注册中心服务器地址 |
87 | service-url: | 90 | service-url: |
88 | - defaultZone: http://10.50.3.82:19527/eureka/ | 91 | + defaultZone: http://192.168.1.53:12345/eureka/ |
89 | registry-fetch-interval-seconds: 30 | 92 | registry-fetch-interval-seconds: 30 |
90 | lease-renewal-interval-in-seconds: 15 | 93 | lease-renewal-interval-in-seconds: 15 |
91 | lease-expiration-duration-in-seconds: 45 | 94 | lease-expiration-duration-in-seconds: 45 |
@@ -100,6 +103,7 @@ pagehelper: | @@ -100,6 +103,7 @@ pagehelper: | ||
100 | #auto-runtime-dialect: true | 103 | #auto-runtime-dialect: true |
101 | helper-dialect: mysql | 104 | helper-dialect: mysql |
102 | reasonable: true | 105 | reasonable: true |
106 | + | ||
103 | support-methods-arguments: true | 107 | support-methods-arguments: true |
104 | params: count=countSql | 108 | params: count=countSql |
105 | 109 | ||
@@ -120,4 +124,4 @@ logging: | @@ -120,4 +124,4 @@ logging: | ||
120 | #日志配置,输出到文本, | 124 | #日志配置,输出到文本, |
121 | #Java Web Token 时效时间,单位秒 | 125 | #Java Web Token 时效时间,单位秒 |
122 | jwt: | 126 | jwt: |
123 | - max-alive: 300 | 127 | + max-alive: 30000 |
src/main/java/com/tianbo/warehouse/BootApplication.java
100644 → 100755
src/main/java/com/tianbo/warehouse/Swagger2.java
100644 → 100755
src/main/java/com/tianbo/warehouse/annotation/LogAnnotation.java
100644 → 100755
src/main/java/com/tianbo/warehouse/bean/AuthSuccessResponse.java
100644 → 100755
src/main/java/com/tianbo/warehouse/bean/WebSocketConfig.java
100644 → 100755
1 | +package com.tianbo.warehouse.controller; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.warehouse.annotation.LogAnnotation; | ||
5 | +import com.tianbo.warehouse.controller.response.ResultJson; | ||
6 | +import com.tianbo.warehouse.model.Company; | ||
7 | +import com.tianbo.warehouse.service.CompanyService; | ||
8 | +import org.springframework.beans.factory.annotation.Autowired; | ||
9 | +import org.springframework.web.bind.annotation.*; | ||
10 | + | ||
11 | +import javax.servlet.http.HttpServletRequest; | ||
12 | +import javax.servlet.http.HttpServletResponse; | ||
13 | +import javax.validation.Valid; | ||
14 | + | ||
15 | +@RestController | ||
16 | +@RequestMapping("/company") | ||
17 | +public class CompanyController { | ||
18 | + | ||
19 | + @Autowired | ||
20 | + CompanyService companyService; | ||
21 | + | ||
22 | + @GetMapping("/list") | ||
23 | + public PageInfo<Company> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
24 | + int pageNum, | ||
25 | + @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
26 | + int pageSize, | ||
27 | + @RequestParam(value = "companyName", required = false) String companyName){ | ||
28 | + return companyService.findAll(pageNum,pageSize, companyName); | ||
29 | + | ||
30 | + } | ||
31 | + | ||
32 | + @LogAnnotation(moduleName = "公司管理",operate = "公司添加") | ||
33 | + @PostMapping("/add") | ||
34 | + public ResultJson add(@RequestBody Company company){ | ||
35 | + | ||
36 | + int i =companyService.insertSelective(company); | ||
37 | + | ||
38 | + ResultJson resultJson = new ResultJson(); | ||
39 | + if (1==i){ | ||
40 | + resultJson = new ResultJson("200","添加成功"); | ||
41 | + }else { | ||
42 | + resultJson = new ResultJson("500","insert faild"); | ||
43 | + } | ||
44 | + return resultJson; | ||
45 | + } | ||
46 | + | ||
47 | + @LogAnnotation(moduleName = "公司管理",operate = "公司修改") | ||
48 | + @PutMapping("/edit") | ||
49 | + @ResponseBody | ||
50 | + public ResultJson edit(@RequestBody @Valid Company company){ | ||
51 | + | ||
52 | + int i =companyService.updateByPrimaryKeySelective(company); | ||
53 | + | ||
54 | + ResultJson resultJson = new ResultJson(); | ||
55 | + if (1==i){ | ||
56 | + resultJson = new ResultJson("200","修改成功"); | ||
57 | + }else { | ||
58 | + resultJson = new ResultJson("500","insert faild"); | ||
59 | + } | ||
60 | + return resultJson; | ||
61 | + } | ||
62 | + | ||
63 | + @LogAnnotation(moduleName = "公司管理",operate = "公司删除") | ||
64 | + @DeleteMapping("/del") | ||
65 | + public ResultJson reomve(@RequestBody Company company, HttpServletRequest request, HttpServletResponse response){ | ||
66 | + | ||
67 | + int i =companyService.deleteByPrimaryKey(company.getCompanyId()); | ||
68 | + | ||
69 | + ResultJson resultJson = new ResultJson(); | ||
70 | + if (1==i){ | ||
71 | + resultJson = new ResultJson("200","删除成功"); | ||
72 | + }else { | ||
73 | + resultJson = new ResultJson("500","insert faild"); | ||
74 | + } | ||
75 | + return resultJson; | ||
76 | + } | ||
77 | + | ||
78 | + @LogAnnotation(moduleName = "公司管理",operate = "公司批量删除") | ||
79 | + @GetMapping("/batchremove") | ||
80 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
81 | + | ||
82 | + ResultJson resultJson = new ResultJson(); | ||
83 | + | ||
84 | + if (companyService.deleteByPrimaryKey(ids)>0){ | ||
85 | + resultJson = new ResultJson("200","删除成功"); | ||
86 | + }else { | ||
87 | + resultJson = new ResultJson("500","insert faild"); | ||
88 | + } | ||
89 | + return resultJson; | ||
90 | + } | ||
91 | + | ||
92 | +} |
1 | +package com.tianbo.warehouse.controller; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.warehouse.annotation.LogAnnotation; | ||
5 | +import com.tianbo.warehouse.controller.response.ResultJson; | ||
6 | +import com.tianbo.warehouse.model.Company; | ||
7 | +import com.tianbo.warehouse.model.Department; | ||
8 | +import com.tianbo.warehouse.service.CompanyService; | ||
9 | +import com.tianbo.warehouse.service.DepartmentService; | ||
10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
11 | +import org.springframework.web.bind.annotation.*; | ||
12 | + | ||
13 | +import javax.servlet.http.HttpServletRequest; | ||
14 | +import javax.servlet.http.HttpServletResponse; | ||
15 | +import javax.validation.Valid; | ||
16 | + | ||
17 | +@RestController | ||
18 | +@RequestMapping("/department") | ||
19 | +public class DeparmentController { | ||
20 | + | ||
21 | + @Autowired | ||
22 | + DepartmentService departmentService; | ||
23 | + | ||
24 | + @GetMapping("/list") | ||
25 | + public PageInfo<Department> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
26 | + int pageNum, | ||
27 | + @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
28 | + int pageSize, | ||
29 | + @RequestParam(value = "departmentName", required = false) String departmentName){ | ||
30 | + return departmentService.findAll(pageNum,pageSize, departmentName); | ||
31 | + | ||
32 | + } | ||
33 | + | ||
34 | + @LogAnnotation(moduleName = "部门管理",operate = "部门添加") | ||
35 | + @PostMapping("/add") | ||
36 | + public ResultJson add(@RequestBody Department department){ | ||
37 | + | ||
38 | + int i =departmentService.insertSelective(department); | ||
39 | + | ||
40 | + ResultJson resultJson = new ResultJson(); | ||
41 | + if (1==i){ | ||
42 | + resultJson = new ResultJson("200","添加成功"); | ||
43 | + }else { | ||
44 | + resultJson = new ResultJson("500","insert faild"); | ||
45 | + } | ||
46 | + return resultJson; | ||
47 | + } | ||
48 | + | ||
49 | + @LogAnnotation(moduleName = "部门管理",operate = "部门修改") | ||
50 | + @PutMapping("/edit") | ||
51 | + @ResponseBody | ||
52 | + public ResultJson edit(@RequestBody @Valid Department department){ | ||
53 | + | ||
54 | + int i =departmentService.updateByPrimaryKeySelective(department); | ||
55 | + | ||
56 | + ResultJson resultJson = new ResultJson(); | ||
57 | + if (1==i){ | ||
58 | + resultJson = new ResultJson("200","修改成功"); | ||
59 | + }else { | ||
60 | + resultJson = new ResultJson("500","insert faild"); | ||
61 | + } | ||
62 | + return resultJson; | ||
63 | + } | ||
64 | + | ||
65 | + @LogAnnotation(moduleName = "部门管理",operate = "部门删除") | ||
66 | + @DeleteMapping("/del") | ||
67 | + public ResultJson reomve(@RequestBody Department department, HttpServletRequest request, HttpServletResponse response){ | ||
68 | + | ||
69 | + int i =departmentService.deleteByPrimaryKey(department.getDepartmentId()); | ||
70 | + | ||
71 | + ResultJson resultJson = new ResultJson(); | ||
72 | + if (1==i){ | ||
73 | + resultJson = new ResultJson("200","删除成功"); | ||
74 | + }else { | ||
75 | + resultJson = new ResultJson("500","insert faild"); | ||
76 | + } | ||
77 | + return resultJson; | ||
78 | + } | ||
79 | + | ||
80 | + @LogAnnotation(moduleName = "部门管理",operate = "部门批量删除") | ||
81 | + @GetMapping("/batchremove") | ||
82 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
83 | + | ||
84 | + ResultJson resultJson = new ResultJson(); | ||
85 | + | ||
86 | + if (departmentService.deleteByPrimaryKey(ids)>0){ | ||
87 | + resultJson = new ResultJson("200","删除成功"); | ||
88 | + }else { | ||
89 | + resultJson = new ResultJson("500","insert faild"); | ||
90 | + } | ||
91 | + return resultJson; | ||
92 | + } | ||
93 | + | ||
94 | +} |
1 | +package com.tianbo.warehouse.controller; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.warehouse.annotation.LogAnnotation; | ||
5 | +import com.tianbo.warehouse.controller.response.ResultJson; | ||
6 | +import com.tianbo.warehouse.model.Department; | ||
7 | +import com.tianbo.warehouse.model.Group_company; | ||
8 | +import com.tianbo.warehouse.service.DepartmentService; | ||
9 | +import com.tianbo.warehouse.service.GroupCompanyService; | ||
10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
11 | +import org.springframework.web.bind.annotation.*; | ||
12 | + | ||
13 | +import javax.servlet.http.HttpServletRequest; | ||
14 | +import javax.servlet.http.HttpServletResponse; | ||
15 | +import javax.validation.Valid; | ||
16 | + | ||
17 | +@RestController | ||
18 | +@RequestMapping("/group") | ||
19 | +public class GroupCompanyController { | ||
20 | + | ||
21 | + @Autowired | ||
22 | + GroupCompanyService groupCompanyService; | ||
23 | + | ||
24 | + @GetMapping("/list") | ||
25 | + public PageInfo<Group_company> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
26 | + int pageNum, | ||
27 | + @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
28 | + int pageSize, | ||
29 | + @RequestParam(value = "groupName") String groupName){ | ||
30 | + return groupCompanyService.findAll(pageNum,pageSize, groupName); | ||
31 | + | ||
32 | + } | ||
33 | + | ||
34 | + @LogAnnotation(moduleName = "集团管理",operate = "集团添加") | ||
35 | + @PostMapping("/add") | ||
36 | + public ResultJson add(@RequestBody Group_company group_company){ | ||
37 | + | ||
38 | + int i =groupCompanyService.insertSelective(group_company); | ||
39 | + | ||
40 | + ResultJson resultJson = new ResultJson(); | ||
41 | + if (1==i){ | ||
42 | + resultJson = new ResultJson("200","添加成功"); | ||
43 | + }else { | ||
44 | + resultJson = new ResultJson("500","insert faild"); | ||
45 | + } | ||
46 | + return resultJson; | ||
47 | + } | ||
48 | + | ||
49 | + @LogAnnotation(moduleName = "集团管理",operate = "集团修改") | ||
50 | + @PutMapping("/edit") | ||
51 | + @ResponseBody | ||
52 | + public ResultJson edit(@RequestBody @Valid Group_company group_company){ | ||
53 | + | ||
54 | + int i =groupCompanyService.updateByPrimaryKeySelective(group_company); | ||
55 | + | ||
56 | + ResultJson resultJson = new ResultJson(); | ||
57 | + if (1==i){ | ||
58 | + resultJson = new ResultJson("200","修改成功"); | ||
59 | + }else { | ||
60 | + resultJson = new ResultJson("500","insert faild"); | ||
61 | + } | ||
62 | + return resultJson; | ||
63 | + } | ||
64 | + | ||
65 | + @LogAnnotation(moduleName = "集团管理",operate = "集团删除") | ||
66 | + @DeleteMapping("/del") | ||
67 | + public ResultJson reomve(@RequestBody Group_company group_company, HttpServletRequest request, HttpServletResponse response){ | ||
68 | + | ||
69 | + int i =groupCompanyService.deleteByPrimaryKey(group_company.getGroupId()); | ||
70 | + | ||
71 | + ResultJson resultJson = new ResultJson(); | ||
72 | + if (1==i){ | ||
73 | + resultJson = new ResultJson("200","删除成功"); | ||
74 | + }else { | ||
75 | + resultJson = new ResultJson("500","insert faild"); | ||
76 | + } | ||
77 | + return resultJson; | ||
78 | + } | ||
79 | + | ||
80 | + @LogAnnotation(moduleName = "集团管理",operate = "集团批量删除") | ||
81 | + @GetMapping("/batchremove") | ||
82 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
83 | + | ||
84 | + ResultJson resultJson = new ResultJson(); | ||
85 | + | ||
86 | + if (groupCompanyService.deleteByPrimaryKey(ids)>0){ | ||
87 | + resultJson = new ResultJson("200","删除成功"); | ||
88 | + }else { | ||
89 | + resultJson = new ResultJson("500","insert faild"); | ||
90 | + } | ||
91 | + return resultJson; | ||
92 | + } | ||
93 | + | ||
94 | +} |
src/main/java/com/tianbo/warehouse/controller/LogController.java
100644 → 100755
@@ -19,7 +19,9 @@ public class LogController { | @@ -19,7 +19,9 @@ public class LogController { | ||
19 | public PageInfo<LOGWithBLOBs> systemLog(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | 19 | public PageInfo<LOGWithBLOBs> systemLog(@RequestParam(value = "pageNum",required = false,defaultValue = "1") |
20 | int pageNum, | 20 | int pageNum, |
21 | @RequestParam(value = "pageSize",required = false,defaultValue = "5") | 21 | @RequestParam(value = "pageSize",required = false,defaultValue = "5") |
22 | - int pageSize){ | ||
23 | - return logService.selectAll(pageNum,pageSize); | 22 | + int pageSize, |
23 | + @RequestParam(value = "username", required = false) String username, | ||
24 | + @RequestParam(value = "modelnamecn", required = false) String modelnamecn){ | ||
25 | + return logService.selectAll(pageNum,pageSize, username, modelnamecn); | ||
24 | } | 26 | } |
25 | } | 27 | } |
@@ -12,33 +12,83 @@ import org.springframework.security.core.context.SecurityContextHolder; | @@ -12,33 +12,83 @@ import org.springframework.security.core.context.SecurityContextHolder; | ||
12 | import org.springframework.security.core.userdetails.UserDetails; | 12 | import org.springframework.security.core.userdetails.UserDetails; |
13 | import org.springframework.web.bind.annotation.*; | 13 | import org.springframework.web.bind.annotation.*; |
14 | 14 | ||
15 | +import javax.servlet.http.HttpServletRequest; | ||
16 | +import javax.servlet.http.HttpServletResponse; | ||
17 | +import javax.validation.Valid; | ||
15 | import java.util.List; | 18 | import java.util.List; |
16 | import java.util.Map; | 19 | import java.util.Map; |
17 | 20 | ||
18 | 21 | ||
19 | @RestController() | 22 | @RestController() |
23 | +@RequestMapping("/perm") | ||
20 | public class PermssionController { | 24 | public class PermssionController { |
21 | 25 | ||
22 | @Autowired | 26 | @Autowired |
23 | PermissionService permissionService; | 27 | PermissionService permissionService; |
24 | 28 | ||
25 | - @GetMapping("/perm/list") | 29 | + @GetMapping("/list") |
26 | public PageInfo<PERMISSION> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | 30 | public PageInfo<PERMISSION> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") |
27 | int pageNum, | 31 | int pageNum, |
28 | @RequestParam(value = "pageSize",required = false,defaultValue = "5") | 32 | @RequestParam(value = "pageSize",required = false,defaultValue = "5") |
29 | - int pageSize){ | ||
30 | - return permissionService.findAll(pageNum,pageSize); | 33 | + int pageSize, |
34 | + @RequestParam(value = "name", required = false) String name){ | ||
35 | + return permissionService.findAll(pageNum,pageSize, name); | ||
31 | 36 | ||
32 | } | 37 | } |
33 | 38 | ||
34 | @LogAnnotation(moduleName = "权限管理",operate = "权限添加") | 39 | @LogAnnotation(moduleName = "权限管理",operate = "权限添加") |
35 | - @PostMapping("/perm/add") | 40 | + @PostMapping("/add") |
36 | public ResultJson add(@RequestBody PERMISSION permission){ | 41 | public ResultJson add(@RequestBody PERMISSION permission){ |
37 | int i =permissionService.insertSelective(permission); | 42 | int i =permissionService.insertSelective(permission); |
38 | 43 | ||
39 | ResultJson resultJson = new ResultJson(); | 44 | ResultJson resultJson = new ResultJson(); |
40 | if (1==i){ | 45 | if (1==i){ |
41 | - resultJson = new ResultJson("200","添加账户成功"); | 46 | + resultJson = new ResultJson("200","添加成功"); |
47 | + }else { | ||
48 | + resultJson = new ResultJson("500","insert faild"); | ||
49 | + } | ||
50 | + return resultJson; | ||
51 | + } | ||
52 | + | ||
53 | + @LogAnnotation(moduleName = "权限管理",operate = "权限修改") | ||
54 | + @PutMapping("/edit") | ||
55 | + @ResponseBody | ||
56 | + public ResultJson edit(@RequestBody @Valid PERMISSION permission){ | ||
57 | + | ||
58 | + int i =permissionService.updateByPrimaryKeySelective(permission); | ||
59 | + | ||
60 | + ResultJson resultJson = new ResultJson(); | ||
61 | + if (1==i){ | ||
62 | + resultJson = new ResultJson("200","修改成功"); | ||
63 | + }else { | ||
64 | + resultJson = new ResultJson("500","insert faild"); | ||
65 | + } | ||
66 | + return resultJson; | ||
67 | + } | ||
68 | + | ||
69 | + @LogAnnotation(moduleName = "权限管理",operate = "权限删除") | ||
70 | + @DeleteMapping("/del") | ||
71 | + public ResultJson reomve(@RequestBody PERMISSION permission, HttpServletRequest request, HttpServletResponse response){ | ||
72 | + | ||
73 | + int i =permissionService.deleteByPrimaryKey(permission.getPermissionId().toString()); | ||
74 | + | ||
75 | + ResultJson resultJson = new ResultJson(); | ||
76 | + if (1==i){ | ||
77 | + resultJson = new ResultJson("200","删除成功"); | ||
78 | + }else { | ||
79 | + resultJson = new ResultJson("500","insert faild"); | ||
80 | + } | ||
81 | + return resultJson; | ||
82 | + } | ||
83 | + | ||
84 | + @LogAnnotation(moduleName = "权限管理",operate = "权限批量删除") | ||
85 | + @GetMapping("/batchremove") | ||
86 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
87 | + | ||
88 | + ResultJson resultJson = new ResultJson(); | ||
89 | + | ||
90 | + if (permissionService.deleteByPrimaryKey(ids)>0){ | ||
91 | + resultJson = new ResultJson("200","删除成功"); | ||
42 | }else { | 92 | }else { |
43 | resultJson = new ResultJson("500","insert faild"); | 93 | resultJson = new ResultJson("500","insert faild"); |
44 | } | 94 | } |
@@ -9,22 +9,30 @@ import com.tianbo.warehouse.service.RoleService; | @@ -9,22 +9,30 @@ import com.tianbo.warehouse.service.RoleService; | ||
9 | import org.springframework.beans.factory.annotation.Autowired; | 9 | import org.springframework.beans.factory.annotation.Autowired; |
10 | import org.springframework.web.bind.annotation.*; | 10 | import org.springframework.web.bind.annotation.*; |
11 | 11 | ||
12 | +import javax.servlet.http.HttpServletRequest; | ||
13 | +import javax.servlet.http.HttpServletResponse; | ||
14 | +import javax.validation.Valid; | ||
15 | + | ||
12 | @RestController() | 16 | @RestController() |
17 | +@RequestMapping("/role") | ||
13 | public class RoleController { | 18 | public class RoleController { |
14 | 19 | ||
15 | @Autowired | 20 | @Autowired |
16 | RoleService roleService; | 21 | RoleService roleService; |
17 | 22 | ||
18 | - @GetMapping("/role/list") | 23 | + @GetMapping("/list") |
19 | public PageInfo<ROLE> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | 24 | public PageInfo<ROLE> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") |
20 | int pageNum, | 25 | int pageNum, |
21 | - @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
22 | - int pageSize){ | ||
23 | - return roleService.findAll(pageNum,pageSize); | 26 | + @RequestParam(value = "pageSize",required = false,defaultValue = "10") |
27 | + int pageSize, | ||
28 | + @RequestParam(value = "roleName",required = false) | ||
29 | + String roleName){ | ||
30 | + | ||
31 | + return roleService.findAll(pageNum,pageSize, roleName); | ||
24 | } | 32 | } |
25 | 33 | ||
26 | - @LogAnnotation(moduleName = "角色管理",operate = "角色添加") | ||
27 | - @PostMapping("/role/add") | 34 | + @LogAnnotation(moduleName = "岗位/角色管理",operate = "岗位/角色添加") |
35 | + @PostMapping("/add") | ||
28 | public ResultJson add(@RequestBody ROLE role){ | 36 | public ResultJson add(@RequestBody ROLE role){ |
29 | int i =roleService.insertSelective(role); | 37 | int i =roleService.insertSelective(role); |
30 | return i==1 ? new ResultJson("200","添加权限成功") :new ResultJson("500","insert faild"); | 38 | return i==1 ? new ResultJson("200","添加权限成功") :new ResultJson("500","insert faild"); |
@@ -35,10 +43,56 @@ public class RoleController { | @@ -35,10 +43,56 @@ public class RoleController { | ||
35 | * 设置角色的权限 | 43 | * 设置角色的权限 |
36 | * @return | 44 | * @return |
37 | */ | 45 | */ |
38 | - @LogAnnotation(moduleName = "角色管理",operate = "权限设置") | ||
39 | - @PutMapping("/role/permSet") | 46 | + @LogAnnotation(moduleName = "岗位/角色管理",operate = "权限设置") |
47 | + @PutMapping("/permSet") | ||
40 | public ResultJson permissionSet(@RequestBody RolePermission rolePermission){ | 48 | public ResultJson permissionSet(@RequestBody RolePermission rolePermission){ |
41 | int i = roleService.setRolePermissoin(rolePermission); | 49 | int i = roleService.setRolePermissoin(rolePermission); |
42 | return i==1 ? new ResultJson("200","设置权限成功") :new ResultJson("500","设置权限失败"); | 50 | return i==1 ? new ResultJson("200","设置权限成功") :new ResultJson("500","设置权限失败"); |
43 | } | 51 | } |
52 | + | ||
53 | + @LogAnnotation(moduleName = "岗位/角色管理",operate = "岗位/角色修改") | ||
54 | + @PutMapping("/edit") | ||
55 | + @ResponseBody | ||
56 | + public ResultJson edit(@RequestBody @Valid ROLE role){ | ||
57 | + | ||
58 | + int i =roleService.updateByPrimaryKeySelective(role); | ||
59 | + | ||
60 | + ResultJson resultJson = new ResultJson(); | ||
61 | + if (1==i){ | ||
62 | + resultJson = new ResultJson("200","修改成功"); | ||
63 | + }else { | ||
64 | + resultJson = new ResultJson("500","insert faild"); | ||
65 | + } | ||
66 | + return resultJson; | ||
67 | + } | ||
68 | + | ||
69 | + @LogAnnotation(moduleName = "岗位/角色管理",operate = "岗位/角色删除") | ||
70 | + @DeleteMapping("/del") | ||
71 | + public ResultJson reomve(@RequestBody ROLE role, HttpServletRequest request, HttpServletResponse response){ | ||
72 | + | ||
73 | + int i =roleService.deleteByPrimaryKey(role.getRoleId()); | ||
74 | + | ||
75 | + ResultJson resultJson = new ResultJson(); | ||
76 | + if (1==i){ | ||
77 | + resultJson = new ResultJson("200","删除成功"); | ||
78 | + }else { | ||
79 | + resultJson = new ResultJson("500","insert faild"); | ||
80 | + } | ||
81 | + return resultJson; | ||
82 | + } | ||
83 | + | ||
84 | + @LogAnnotation(moduleName = "岗位/角色管理",operate = "岗位/角色批量删除") | ||
85 | + @GetMapping("/batchremove") | ||
86 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
87 | + | ||
88 | + ResultJson resultJson = new ResultJson(); | ||
89 | + | ||
90 | + if (roleService.deleteByPrimaryKey(Integer.valueOf(ids))>0){ | ||
91 | + resultJson = new ResultJson("200","删除成功"); | ||
92 | + }else { | ||
93 | + resultJson = new ResultJson("500","insert faild"); | ||
94 | + } | ||
95 | + return resultJson; | ||
96 | + } | ||
97 | + | ||
44 | } | 98 | } |
@@ -39,13 +39,11 @@ public class UserController { | @@ -39,13 +39,11 @@ public class UserController { | ||
39 | int pageNum, | 39 | int pageNum, |
40 | @RequestParam(value = "pageSize",required = false,defaultValue = "5") | 40 | @RequestParam(value = "pageSize",required = false,defaultValue = "5") |
41 | int pageSize, | 41 | int pageSize, |
42 | - @RequestParam(value = "username",required = false) String username, | ||
43 | - @RequestParam(value = "realname",required = false) String realname) | 42 | + @RequestParam(value = "userName",required = false) String username, |
43 | + @RequestParam(value = "realName",required = false) String realname) | ||
44 | { | 44 | { |
45 | - USERS user = new USERS(); | ||
46 | - user.setUsername(username); | ||
47 | - user.setRealname(realname); | ||
48 | - PageInfo<USERS> usersPageInfo = userService.selectAllUser(pageNum,pageSize,user); | 45 | + |
46 | + PageInfo<USERS> usersPageInfo = userService.selectAllUser(pageNum,pageSize, username, realname); | ||
49 | return new ResultJson("200","success",usersPageInfo); | 47 | return new ResultJson("200","success",usersPageInfo); |
50 | } | 48 | } |
51 | 49 |
src/main/java/com/tianbo/warehouse/controller/response/RestControllerResponseAdvice.java
100644 → 100755
1 | +package com.tianbo.warehouse.controller.staff; | ||
2 | + | ||
3 | + | ||
4 | +import com.github.pagehelper.PageInfo; | ||
5 | +import com.tianbo.warehouse.annotation.LogAnnotation; | ||
6 | +import com.tianbo.warehouse.controller.response.ResultJson; | ||
7 | +import com.tianbo.warehouse.model.StaffApartmentComeCar; | ||
8 | +import com.tianbo.warehouse.model.StaffApartmentMaintain; | ||
9 | +import com.tianbo.warehouse.service.satff.ComeCarService; | ||
10 | +import com.tianbo.warehouse.service.satff.MaintainService; | ||
11 | +import org.springframework.beans.factory.annotation.Autowired; | ||
12 | +import org.springframework.web.bind.annotation.*; | ||
13 | + | ||
14 | +import javax.servlet.http.HttpServletRequest; | ||
15 | +import javax.servlet.http.HttpServletResponse; | ||
16 | +import javax.validation.Valid; | ||
17 | + | ||
18 | +@RestController | ||
19 | +@RequestMapping("/come_car") | ||
20 | +public class ComeCarController { | ||
21 | + | ||
22 | + @Autowired | ||
23 | + ComeCarService comeCarService; | ||
24 | + | ||
25 | + @GetMapping("/list") | ||
26 | + public PageInfo<StaffApartmentComeCar> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
27 | + int pageNum, | ||
28 | + @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
29 | + int pageSize, | ||
30 | + @RequestParam(value = "cometovisitname", required = false) | ||
31 | + String comeToVisitName){ | ||
32 | + return comeCarService.findAll(pageNum,pageSize,comeToVisitName); | ||
33 | + | ||
34 | + } | ||
35 | + | ||
36 | + @LogAnnotation(moduleName = "职工公寓人员,车辆来访登记",operate = "职工公寓人员,车辆来访登记添加") | ||
37 | + @PostMapping("/add") | ||
38 | + public ResultJson add(@RequestBody StaffApartmentComeCar staffApartmentComeCar){ | ||
39 | + | ||
40 | + int i =comeCarService.insertSelective(staffApartmentComeCar); | ||
41 | + | ||
42 | + ResultJson resultJson = new ResultJson(); | ||
43 | + if (1==i){ | ||
44 | + resultJson = new ResultJson("200","添加成功"); | ||
45 | + }else { | ||
46 | + resultJson = new ResultJson("500","insert faild"); | ||
47 | + } | ||
48 | + return resultJson; | ||
49 | + } | ||
50 | + | ||
51 | + @LogAnnotation(moduleName = "职工公寓人员,车辆来访登记",operate = "职工公寓人员,车辆来访登记修改") | ||
52 | + @PutMapping("/edit") | ||
53 | + @ResponseBody | ||
54 | + public ResultJson edit(@RequestBody @Valid StaffApartmentComeCar staffApartmentComeCar){ | ||
55 | + | ||
56 | + int i =comeCarService.updateByPrimaryKeySelective(staffApartmentComeCar); | ||
57 | + | ||
58 | + ResultJson resultJson = new ResultJson(); | ||
59 | + if (1==i){ | ||
60 | + resultJson = new ResultJson("200","修改成功"); | ||
61 | + }else { | ||
62 | + resultJson = new ResultJson("500","insert faild"); | ||
63 | + } | ||
64 | + return resultJson; | ||
65 | + } | ||
66 | + | ||
67 | + @LogAnnotation(moduleName = "职工公寓人员,车辆来访登记",operate = "职工公寓人员,车辆来访登记删除") | ||
68 | + @DeleteMapping("/del") | ||
69 | + public ResultJson reomve(@RequestBody StaffApartmentComeCar staffApartmentComeCar, HttpServletRequest request, HttpServletResponse response){ | ||
70 | + | ||
71 | + int i =comeCarService.deleteByPrimaryKey(staffApartmentComeCar.getId()); | ||
72 | + | ||
73 | + ResultJson resultJson = new ResultJson(); | ||
74 | + if (1==i){ | ||
75 | + resultJson = new ResultJson("200","删除成功"); | ||
76 | + }else { | ||
77 | + resultJson = new ResultJson("500","insert faild"); | ||
78 | + } | ||
79 | + return resultJson; | ||
80 | + } | ||
81 | + | ||
82 | + @LogAnnotation(moduleName = "职工公寓人员,车辆来访登记",operate = "职工公寓人员,车辆来访登记删除") | ||
83 | + @GetMapping("/batchremove") | ||
84 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
85 | + | ||
86 | + ResultJson resultJson = new ResultJson(); | ||
87 | + | ||
88 | + if (comeCarService.deleteByPrimaryKey(ids)>0){ | ||
89 | + resultJson = new ResultJson("200","删除成功"); | ||
90 | + }else { | ||
91 | + resultJson = new ResultJson("500","insert faild"); | ||
92 | + } | ||
93 | + return resultJson; | ||
94 | + } | ||
95 | + | ||
96 | +} |
1 | +package com.tianbo.warehouse.controller.staff; | ||
2 | + | ||
3 | + | ||
4 | +import com.github.pagehelper.PageInfo; | ||
5 | +import com.tianbo.warehouse.annotation.LogAnnotation; | ||
6 | +import com.tianbo.warehouse.controller.response.ResultJson; | ||
7 | +import com.tianbo.warehouse.model.StaffApartmentSpareKey; | ||
8 | +import com.tianbo.warehouse.model.StaffSecurityInspection; | ||
9 | +import com.tianbo.warehouse.service.satff.KeyService; | ||
10 | +import com.tianbo.warehouse.service.satff.StaffSecurityInspectionService; | ||
11 | +import org.springframework.beans.factory.annotation.Autowired; | ||
12 | +import org.springframework.web.bind.annotation.*; | ||
13 | + | ||
14 | +import javax.servlet.http.HttpServletRequest; | ||
15 | +import javax.servlet.http.HttpServletResponse; | ||
16 | +import javax.validation.Valid; | ||
17 | + | ||
18 | +@RestController | ||
19 | +@RequestMapping("/key") | ||
20 | +public class KeyController { | ||
21 | + | ||
22 | + @Autowired | ||
23 | + KeyService keyService; | ||
24 | + | ||
25 | + @GetMapping("/list") | ||
26 | + public PageInfo<StaffApartmentSpareKey> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
27 | + int pageNum, | ||
28 | + @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
29 | + int pageSize, | ||
30 | + @RequestParam(value = "staffname", required = false) | ||
31 | + String staffname){ | ||
32 | + return keyService.findAll(pageNum,pageSize,staffname); | ||
33 | + | ||
34 | + } | ||
35 | + | ||
36 | + @LogAnnotation(moduleName = "职工公寓备用钥匙使用记录管理",operate = "职工公寓备用钥匙使用记录添加") | ||
37 | + @PostMapping("/add") | ||
38 | + public ResultJson add(@RequestBody StaffApartmentSpareKey staffApartmentSpareKey){ | ||
39 | + | ||
40 | + int i =keyService.insertSelective(staffApartmentSpareKey); | ||
41 | + | ||
42 | + ResultJson resultJson = new ResultJson(); | ||
43 | + if (1==i){ | ||
44 | + resultJson = new ResultJson("200","添加成功"); | ||
45 | + }else { | ||
46 | + resultJson = new ResultJson("500","insert faild"); | ||
47 | + } | ||
48 | + return resultJson; | ||
49 | + } | ||
50 | + | ||
51 | + @LogAnnotation(moduleName = "职工公寓备用钥匙使用记录管理",operate = "职工公寓备用钥匙使用记录修改") | ||
52 | + @PutMapping("/edit") | ||
53 | + @ResponseBody | ||
54 | + public ResultJson edit(@RequestBody @Valid StaffApartmentSpareKey staffApartmentSpareKey){ | ||
55 | + | ||
56 | + int i =keyService.updateByPrimaryKeySelective(staffApartmentSpareKey); | ||
57 | + | ||
58 | + ResultJson resultJson = new ResultJson(); | ||
59 | + if (1==i){ | ||
60 | + resultJson = new ResultJson("200","修改成功"); | ||
61 | + }else { | ||
62 | + resultJson = new ResultJson("500","insert faild"); | ||
63 | + } | ||
64 | + return resultJson; | ||
65 | + } | ||
66 | + | ||
67 | + @LogAnnotation(moduleName = "职工公寓备用钥匙使用记录管理",operate = "职工公寓备用钥匙使用记录删除") | ||
68 | + @DeleteMapping("/del") | ||
69 | + public ResultJson reomve(@RequestBody StaffApartmentSpareKey staffApartmentSpareKey, HttpServletRequest request, HttpServletResponse response){ | ||
70 | + | ||
71 | + int i =keyService.deleteByPrimaryKey(staffApartmentSpareKey.getId()); | ||
72 | + | ||
73 | + ResultJson resultJson = new ResultJson(); | ||
74 | + if (1==i){ | ||
75 | + resultJson = new ResultJson("200","删除成功"); | ||
76 | + }else { | ||
77 | + resultJson = new ResultJson("500","insert faild"); | ||
78 | + } | ||
79 | + return resultJson; | ||
80 | + } | ||
81 | + | ||
82 | + @LogAnnotation(moduleName = "职工公寓备用钥匙使用记录管理",operate = "职工公寓备用钥匙使用记录删除") | ||
83 | + @GetMapping("/batchremove") | ||
84 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
85 | + | ||
86 | + ResultJson resultJson = new ResultJson(); | ||
87 | + | ||
88 | + if (keyService.deleteByPrimaryKey(ids)>0){ | ||
89 | + resultJson = new ResultJson("200","删除成功"); | ||
90 | + }else { | ||
91 | + resultJson = new ResultJson("500","insert faild"); | ||
92 | + } | ||
93 | + return resultJson; | ||
94 | + } | ||
95 | + | ||
96 | +} |
1 | +package com.tianbo.warehouse.controller.staff; | ||
2 | + | ||
3 | + | ||
4 | +import com.github.pagehelper.PageInfo; | ||
5 | +import com.tianbo.warehouse.annotation.LogAnnotation; | ||
6 | +import com.tianbo.warehouse.controller.response.ResultJson; | ||
7 | +import com.tianbo.warehouse.model.StaffApartmentMaintain; | ||
8 | +import com.tianbo.warehouse.model.StaffApartmentSpareKey; | ||
9 | +import com.tianbo.warehouse.service.satff.KeyService; | ||
10 | +import com.tianbo.warehouse.service.satff.MaintainService; | ||
11 | +import org.springframework.beans.factory.annotation.Autowired; | ||
12 | +import org.springframework.web.bind.annotation.*; | ||
13 | + | ||
14 | +import javax.servlet.http.HttpServletRequest; | ||
15 | +import javax.servlet.http.HttpServletResponse; | ||
16 | +import javax.validation.Valid; | ||
17 | + | ||
18 | +@RestController | ||
19 | +@RequestMapping("/maintain") | ||
20 | +public class MaintainController { | ||
21 | + | ||
22 | + @Autowired | ||
23 | + MaintainService maintainService; | ||
24 | + | ||
25 | + @GetMapping("/list") | ||
26 | + public PageInfo<StaffApartmentMaintain> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
27 | + int pageNum, | ||
28 | + @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
29 | + int pageSize, | ||
30 | + @RequestParam(value = "repairsname", required = false) | ||
31 | + String repairsname){ | ||
32 | + return maintainService.findAll(pageNum,pageSize,repairsname); | ||
33 | + | ||
34 | + } | ||
35 | + | ||
36 | + @LogAnnotation(moduleName = "职工公寓设施设备维修记录管理",operate = "职工公寓设施设备维修记录添加") | ||
37 | + @PostMapping("/add") | ||
38 | + public ResultJson add(@RequestBody StaffApartmentMaintain staffApartmentMaintain){ | ||
39 | + | ||
40 | + int i =maintainService.insertSelective(staffApartmentMaintain); | ||
41 | + | ||
42 | + ResultJson resultJson = new ResultJson(); | ||
43 | + if (1==i){ | ||
44 | + resultJson = new ResultJson("200","添加成功"); | ||
45 | + }else { | ||
46 | + resultJson = new ResultJson("500","insert faild"); | ||
47 | + } | ||
48 | + return resultJson; | ||
49 | + } | ||
50 | + | ||
51 | + @LogAnnotation(moduleName = "职工公寓设施设备维修记录管理",operate = "职工公寓设施设备维修记录修改") | ||
52 | + @PutMapping("/edit") | ||
53 | + @ResponseBody | ||
54 | + public ResultJson edit(@RequestBody @Valid StaffApartmentMaintain staffApartmentMaintain){ | ||
55 | + | ||
56 | + int i =maintainService.updateByPrimaryKeySelective(staffApartmentMaintain); | ||
57 | + | ||
58 | + ResultJson resultJson = new ResultJson(); | ||
59 | + if (1==i){ | ||
60 | + resultJson = new ResultJson("200","修改成功"); | ||
61 | + }else { | ||
62 | + resultJson = new ResultJson("500","insert faild"); | ||
63 | + } | ||
64 | + return resultJson; | ||
65 | + } | ||
66 | + | ||
67 | + @LogAnnotation(moduleName = "职工公寓设施设备维修记录管理",operate = "职工公寓设施设备维修记录删除") | ||
68 | + @DeleteMapping("/del") | ||
69 | + public ResultJson reomve(@RequestBody StaffApartmentMaintain staffApartmentMaintain, HttpServletRequest request, HttpServletResponse response){ | ||
70 | + | ||
71 | + int i =maintainService.deleteByPrimaryKey(staffApartmentMaintain.getId()); | ||
72 | + | ||
73 | + ResultJson resultJson = new ResultJson(); | ||
74 | + if (1==i){ | ||
75 | + resultJson = new ResultJson("200","删除成功"); | ||
76 | + }else { | ||
77 | + resultJson = new ResultJson("500","insert faild"); | ||
78 | + } | ||
79 | + return resultJson; | ||
80 | + } | ||
81 | + | ||
82 | + @LogAnnotation(moduleName = "职工公寓设施设备维修记录管理",operate = "职工公寓设施设备维修记录删除") | ||
83 | + @GetMapping("/batchremove") | ||
84 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
85 | + | ||
86 | + ResultJson resultJson = new ResultJson(); | ||
87 | + | ||
88 | + if (maintainService.deleteByPrimaryKey(ids)>0){ | ||
89 | + resultJson = new ResultJson("200","删除成功"); | ||
90 | + }else { | ||
91 | + resultJson = new ResultJson("500","insert faild"); | ||
92 | + } | ||
93 | + return resultJson; | ||
94 | + } | ||
95 | + | ||
96 | +} |
1 | +package com.tianbo.warehouse.controller.staff; | ||
2 | + | ||
3 | + | ||
4 | +import com.github.pagehelper.PageInfo; | ||
5 | +import com.tianbo.warehouse.annotation.LogAnnotation; | ||
6 | +import com.tianbo.warehouse.controller.response.ResultJson; | ||
7 | +import com.tianbo.warehouse.model.StaffApartmentMaintain; | ||
8 | +import com.tianbo.warehouse.model.StaffApartmentOnduty; | ||
9 | +import com.tianbo.warehouse.service.satff.MaintainService; | ||
10 | +import com.tianbo.warehouse.service.satff.OnDutyService; | ||
11 | +import org.springframework.beans.factory.annotation.Autowired; | ||
12 | +import org.springframework.web.bind.annotation.*; | ||
13 | + | ||
14 | +import javax.servlet.http.HttpServletRequest; | ||
15 | +import javax.servlet.http.HttpServletResponse; | ||
16 | +import javax.validation.Valid; | ||
17 | + | ||
18 | +@RestController | ||
19 | +@RequestMapping("/on_duty") | ||
20 | +public class OnDutyController { | ||
21 | + | ||
22 | + @Autowired | ||
23 | + OnDutyService onDutyService; | ||
24 | + | ||
25 | + @GetMapping("/list") | ||
26 | + public PageInfo<StaffApartmentOnduty> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
27 | + int pageNum, | ||
28 | + @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
29 | + int pageSize, | ||
30 | + @RequestParam(value = "warchkeeper", required = false) | ||
31 | + String warchkeeper){ | ||
32 | + return onDutyService.findAll(pageNum,pageSize,warchkeeper); | ||
33 | + | ||
34 | + } | ||
35 | + | ||
36 | + @LogAnnotation(moduleName = "职工公寓值班巡视管理",operate = "职工公寓值班巡视添加") | ||
37 | + @PostMapping("/add") | ||
38 | + public ResultJson add(@RequestBody StaffApartmentOnduty staffApartmentOnduty){ | ||
39 | + | ||
40 | + int i =onDutyService.insertSelective(staffApartmentOnduty); | ||
41 | + | ||
42 | + ResultJson resultJson = new ResultJson(); | ||
43 | + if (1==i){ | ||
44 | + resultJson = new ResultJson("200","添加成功"); | ||
45 | + }else { | ||
46 | + resultJson = new ResultJson("500","insert faild"); | ||
47 | + } | ||
48 | + return resultJson; | ||
49 | + } | ||
50 | + | ||
51 | + @LogAnnotation(moduleName = "职工公寓值班巡视管理",operate = "职工公寓值班巡视修改") | ||
52 | + @PutMapping("/edit") | ||
53 | + @ResponseBody | ||
54 | + public ResultJson edit(@RequestBody @Valid StaffApartmentOnduty staffApartmentOnduty){ | ||
55 | + | ||
56 | + int i =onDutyService.updateByPrimaryKeySelective(staffApartmentOnduty); | ||
57 | + | ||
58 | + ResultJson resultJson = new ResultJson(); | ||
59 | + if (1==i){ | ||
60 | + resultJson = new ResultJson("200","修改成功"); | ||
61 | + }else { | ||
62 | + resultJson = new ResultJson("500","insert faild"); | ||
63 | + } | ||
64 | + return resultJson; | ||
65 | + } | ||
66 | + | ||
67 | + @LogAnnotation(moduleName = "职工公寓值班巡视管理",operate = "职工公寓值班巡视删除") | ||
68 | + @DeleteMapping("/del") | ||
69 | + public ResultJson reomve(@RequestBody StaffApartmentOnduty staffApartmentOnduty, HttpServletRequest request, HttpServletResponse response){ | ||
70 | + | ||
71 | + int i =onDutyService.deleteByPrimaryKey(staffApartmentOnduty.getId()); | ||
72 | + | ||
73 | + ResultJson resultJson = new ResultJson(); | ||
74 | + if (1==i){ | ||
75 | + resultJson = new ResultJson("200","删除成功"); | ||
76 | + }else { | ||
77 | + resultJson = new ResultJson("500","insert faild"); | ||
78 | + } | ||
79 | + return resultJson; | ||
80 | + } | ||
81 | + | ||
82 | + @LogAnnotation(moduleName = "职工公寓值班巡视管理",operate = "职工公寓值班巡视删除") | ||
83 | + @GetMapping("/batchremove") | ||
84 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
85 | + | ||
86 | + ResultJson resultJson = new ResultJson(); | ||
87 | + | ||
88 | + if (onDutyService.deleteByPrimaryKey(ids)>0){ | ||
89 | + resultJson = new ResultJson("200","删除成功"); | ||
90 | + }else { | ||
91 | + resultJson = new ResultJson("500","insert faild"); | ||
92 | + } | ||
93 | + return resultJson; | ||
94 | + } | ||
95 | + | ||
96 | +} |
src/main/java/com/tianbo/warehouse/controller/staff/StaffSecurityInspectionController.java
0 → 100755
1 | +package com.tianbo.warehouse.controller.staff; | ||
2 | + | ||
3 | + | ||
4 | +import com.github.pagehelper.PageInfo; | ||
5 | +import com.tianbo.warehouse.annotation.LogAnnotation; | ||
6 | +import com.tianbo.warehouse.controller.response.ResultJson; | ||
7 | +import com.tianbo.warehouse.model.StaffSecurityInspection; | ||
8 | +import com.tianbo.warehouse.service.satff.StaffSecurityInspectionService; | ||
9 | +import org.springframework.beans.factory.annotation.Autowired; | ||
10 | +import org.springframework.web.bind.annotation.*; | ||
11 | + | ||
12 | +import javax.servlet.http.HttpServletRequest; | ||
13 | +import javax.servlet.http.HttpServletResponse; | ||
14 | +import javax.validation.Valid; | ||
15 | + | ||
16 | +@RestController | ||
17 | +@RequestMapping("/inspection") | ||
18 | +public class StaffSecurityInspectionController { | ||
19 | + | ||
20 | + @Autowired | ||
21 | + StaffSecurityInspectionService staffSecurityInspectionService; | ||
22 | + | ||
23 | + @GetMapping("/list") | ||
24 | + public PageInfo<StaffSecurityInspection> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
25 | + int pageNum, | ||
26 | + @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
27 | + int pageSize, | ||
28 | + @RequestParam(value = "securityInspectionName", required = false) | ||
29 | + String securityInspectionName){ | ||
30 | + return staffSecurityInspectionService.findAll(pageNum,pageSize,securityInspectionName); | ||
31 | + | ||
32 | + } | ||
33 | + | ||
34 | + @LogAnnotation(moduleName = "职工公寓安全巡视管理",operate = "职工公寓安全巡视添加") | ||
35 | + @PostMapping("/add") | ||
36 | + public ResultJson add(@RequestBody StaffSecurityInspection staffSecurityInspection){ | ||
37 | + | ||
38 | + int i =staffSecurityInspectionService.insertSelective(staffSecurityInspection); | ||
39 | + | ||
40 | + ResultJson resultJson = new ResultJson(); | ||
41 | + if (1==i){ | ||
42 | + resultJson = new ResultJson("200","添加成功"); | ||
43 | + }else { | ||
44 | + resultJson = new ResultJson("500","insert faild"); | ||
45 | + } | ||
46 | + return resultJson; | ||
47 | + } | ||
48 | + | ||
49 | + @LogAnnotation(moduleName = "职工公寓安全巡视管理",operate = "职工公寓安全巡视修改") | ||
50 | + @PutMapping("/edit") | ||
51 | + @ResponseBody | ||
52 | + public ResultJson edit(@RequestBody @Valid StaffSecurityInspection staffSecurityInspection){ | ||
53 | + | ||
54 | + int i =staffSecurityInspectionService.updateByPrimaryKeySelective(staffSecurityInspection); | ||
55 | + | ||
56 | + ResultJson resultJson = new ResultJson(); | ||
57 | + if (1==i){ | ||
58 | + resultJson = new ResultJson("200","修改成功"); | ||
59 | + }else { | ||
60 | + resultJson = new ResultJson("500","insert faild"); | ||
61 | + } | ||
62 | + return resultJson; | ||
63 | + } | ||
64 | + | ||
65 | + @LogAnnotation(moduleName = "职工公寓安全巡视管理",operate = "职工公寓安全巡视删除") | ||
66 | + @DeleteMapping("/del") | ||
67 | + public ResultJson reomve(@RequestBody StaffSecurityInspection staffSecurityInspection, HttpServletRequest request, HttpServletResponse response){ | ||
68 | + | ||
69 | + int i =staffSecurityInspectionService.deleteByPrimaryKey(staffSecurityInspection.getSecurityInspectionId()); | ||
70 | + | ||
71 | + ResultJson resultJson = new ResultJson(); | ||
72 | + if (1==i){ | ||
73 | + resultJson = new ResultJson("200","删除成功"); | ||
74 | + }else { | ||
75 | + resultJson = new ResultJson("500","insert faild"); | ||
76 | + } | ||
77 | + return resultJson; | ||
78 | + } | ||
79 | + | ||
80 | + @LogAnnotation(moduleName = "职工公寓安全巡视管理",operate = "职工公寓安全巡视删除") | ||
81 | + @GetMapping("/batchremove") | ||
82 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
83 | + | ||
84 | + ResultJson resultJson = new ResultJson(); | ||
85 | + | ||
86 | + if (staffSecurityInspectionService.deleteByPrimaryKey(ids)>0){ | ||
87 | + resultJson = new ResultJson("200","删除成功"); | ||
88 | + }else { | ||
89 | + resultJson = new ResultJson("500","insert faild"); | ||
90 | + } | ||
91 | + return resultJson; | ||
92 | + } | ||
93 | + | ||
94 | +} |
1 | +package com.tianbo.warehouse.controller.water; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.warehouse.annotation.LogAnnotation; | ||
5 | +import com.tianbo.warehouse.controller.response.ResultJson; | ||
6 | +import com.tianbo.warehouse.model.Company; | ||
7 | +import com.tianbo.warehouse.model.WaterStationsPatrol; | ||
8 | +import com.tianbo.warehouse.service.CompanyService; | ||
9 | +import com.tianbo.warehouse.service.water.WaterStationsPatrolService; | ||
10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
11 | +import org.springframework.web.bind.annotation.*; | ||
12 | + | ||
13 | +import javax.servlet.http.HttpServletRequest; | ||
14 | +import javax.servlet.http.HttpServletResponse; | ||
15 | +import javax.validation.Valid; | ||
16 | + | ||
17 | +@RestController | ||
18 | +@RequestMapping("/water_stations_patrol") | ||
19 | +public class WaterStationsPatrolController { | ||
20 | + | ||
21 | + @Autowired | ||
22 | + WaterStationsPatrolService waterStationsPatrolService; | ||
23 | + | ||
24 | + @GetMapping("/list") | ||
25 | + public PageInfo<WaterStationsPatrol> list(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
26 | + int pageNum, | ||
27 | + @RequestParam(value = "pageSize",required = false,defaultValue = "5") | ||
28 | + int pageSize){ | ||
29 | + return waterStationsPatrolService.findAll(pageNum,pageSize); | ||
30 | + | ||
31 | + } | ||
32 | + | ||
33 | + @LogAnnotation(moduleName = "二水厂-水站巡视记录单管理",operate = "二水厂-水站巡视记录单管理添加") | ||
34 | + @PostMapping("/add") | ||
35 | + public ResultJson add(@RequestBody WaterStationsPatrol waterStationsPatrol){ | ||
36 | + | ||
37 | + int i =waterStationsPatrolService.insertSelective(waterStationsPatrol); | ||
38 | + | ||
39 | + ResultJson resultJson = new ResultJson(); | ||
40 | + if (1==i){ | ||
41 | + resultJson = new ResultJson("200","添加成功"); | ||
42 | + }else { | ||
43 | + resultJson = new ResultJson("500","insert faild"); | ||
44 | + } | ||
45 | + return resultJson; | ||
46 | + } | ||
47 | + | ||
48 | + @LogAnnotation(moduleName = "二水厂-水站巡视记录单管理",operate = "二水厂-水站巡视记录单管理修改") | ||
49 | + @PutMapping("/edit") | ||
50 | + @ResponseBody | ||
51 | + public ResultJson edit(@RequestBody @Valid WaterStationsPatrol waterStationsPatrol){ | ||
52 | + | ||
53 | + int i =waterStationsPatrolService.updateByPrimaryKeySelective(waterStationsPatrol); | ||
54 | + | ||
55 | + ResultJson resultJson = new ResultJson(); | ||
56 | + if (1==i){ | ||
57 | + resultJson = new ResultJson("200","修改成功"); | ||
58 | + }else { | ||
59 | + resultJson = new ResultJson("500","insert faild"); | ||
60 | + } | ||
61 | + return resultJson; | ||
62 | + } | ||
63 | + | ||
64 | + @LogAnnotation(moduleName = "二水厂-水站巡视记录单管理",operate = "二水厂-水站巡视记录单管理删除") | ||
65 | + @DeleteMapping("/del") | ||
66 | + public ResultJson reomve(@RequestBody WaterStationsPatrol waterStationsPatrol, HttpServletRequest request, HttpServletResponse response){ | ||
67 | + | ||
68 | + int i =waterStationsPatrolService.deleteByPrimaryKey(waterStationsPatrol.getId()); | ||
69 | + | ||
70 | + ResultJson resultJson = new ResultJson(); | ||
71 | + if (1==i){ | ||
72 | + resultJson = new ResultJson("200","删除成功"); | ||
73 | + }else { | ||
74 | + resultJson = new ResultJson("500","insert faild"); | ||
75 | + } | ||
76 | + return resultJson; | ||
77 | + } | ||
78 | + | ||
79 | + @LogAnnotation(moduleName = "二水厂-水站巡视记录单管理",operate = "二水厂-水站巡视记录单管理批量删除") | ||
80 | + @GetMapping("/batchremove") | ||
81 | + public ResultJson reomve(String ids, HttpServletRequest request, HttpServletResponse response){ | ||
82 | + | ||
83 | + ResultJson resultJson = new ResultJson(); | ||
84 | + | ||
85 | + if (waterStationsPatrolService.deleteByPrimaryKey(ids)>0){ | ||
86 | + resultJson = new ResultJson("200","删除成功"); | ||
87 | + }else { | ||
88 | + resultJson = new ResultJson("500","insert faild"); | ||
89 | + } | ||
90 | + return resultJson; | ||
91 | + } | ||
92 | + | ||
93 | +} |
src/main/java/com/tianbo/warehouse/dao/AttachmentMapper.java
100644 → 100755
1 | +package com.tianbo.warehouse.dao; | ||
2 | + | ||
3 | +import com.tianbo.warehouse.model.Company; | ||
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface CompanyMapper { | ||
9 | + int deleteByPrimaryKey(String companyId); | ||
10 | + | ||
11 | + int insert(Company record); | ||
12 | + | ||
13 | + int insertSelective(Company record); | ||
14 | + | ||
15 | + Company selectByPrimaryKey(String companyId); | ||
16 | + | ||
17 | + int updateByPrimaryKeySelective(Company record); | ||
18 | + | ||
19 | + int updateByPrimaryKey(Company record); | ||
20 | + | ||
21 | + List<Company> findAll(@Param("companyName") String companyName); | ||
22 | +} |
1 | +package com.tianbo.warehouse.dao; | ||
2 | + | ||
3 | +import com.tianbo.warehouse.model.Department; | ||
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface DepartmentMapper { | ||
9 | + int deleteByPrimaryKey(String departmentId); | ||
10 | + | ||
11 | + int insert(Department record); | ||
12 | + | ||
13 | + int insertSelective(Department record); | ||
14 | + | ||
15 | + Department selectByPrimaryKey(String departmentId); | ||
16 | + | ||
17 | + int updateByPrimaryKeySelective(Department record); | ||
18 | + | ||
19 | + int updateByPrimaryKey(Department record); | ||
20 | + | ||
21 | + List<Department> findAll(@Param("departmentName") String departmentName); | ||
22 | + | ||
23 | + int count(String departmentId); | ||
24 | +} |
1 | +package com.tianbo.warehouse.dao; | ||
2 | + | ||
3 | +import com.tianbo.warehouse.model.Group_company; | ||
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface Group_companyMapper { | ||
9 | + int deleteByPrimaryKey(String groupId); | ||
10 | + | ||
11 | + int insert(Group_company record); | ||
12 | + | ||
13 | + int insertSelective(Group_company record); | ||
14 | + | ||
15 | + Group_company selectByPrimaryKey(String groupId); | ||
16 | + | ||
17 | + int updateByPrimaryKeySelective(Group_company record); | ||
18 | + | ||
19 | + int updateByPrimaryKey(Group_company record); | ||
20 | + | ||
21 | + List<Group_company> findAll(@Param("groupName") String groupName); | ||
22 | +} |
src/main/java/com/tianbo/warehouse/dao/LOGMapper.java
100644 → 100755
@@ -2,6 +2,7 @@ package com.tianbo.warehouse.dao; | @@ -2,6 +2,7 @@ package com.tianbo.warehouse.dao; | ||
2 | 2 | ||
3 | import com.tianbo.warehouse.model.LOG; | 3 | import com.tianbo.warehouse.model.LOG; |
4 | import com.tianbo.warehouse.model.LOGWithBLOBs; | 4 | import com.tianbo.warehouse.model.LOGWithBLOBs; |
5 | +import org.apache.ibatis.annotations.Param; | ||
5 | 6 | ||
6 | import java.util.List; | 7 | import java.util.List; |
7 | 8 | ||
@@ -14,7 +15,7 @@ public interface LOGMapper { | @@ -14,7 +15,7 @@ public interface LOGMapper { | ||
14 | 15 | ||
15 | LOGWithBLOBs selectByPrimaryKey(Integer logid); | 16 | LOGWithBLOBs selectByPrimaryKey(Integer logid); |
16 | 17 | ||
17 | - List<LOGWithBLOBs> selectAll(); | 18 | + List<LOGWithBLOBs> selectAll(@Param("username") String username, @Param("modelnamecn") String modelnamecn); |
18 | 19 | ||
19 | int updateByPrimaryKeySelective(LOGWithBLOBs record); | 20 | int updateByPrimaryKeySelective(LOGWithBLOBs record); |
20 | 21 |
src/main/java/com/tianbo/warehouse/dao/PERMISSIONMapper.java
100644 → 100755
1 | package com.tianbo.warehouse.dao; | 1 | package com.tianbo.warehouse.dao; |
2 | 2 | ||
3 | import com.tianbo.warehouse.model.PERMISSION; | 3 | import com.tianbo.warehouse.model.PERMISSION; |
4 | +import org.apache.ibatis.annotations.Param; | ||
4 | 5 | ||
5 | import java.math.BigDecimal; | 6 | import java.math.BigDecimal; |
6 | import java.util.List; | 7 | import java.util.List; |
@@ -18,7 +19,7 @@ public interface PERMISSIONMapper { | @@ -18,7 +19,7 @@ public interface PERMISSIONMapper { | ||
18 | 19 | ||
19 | int updateByPrimaryKey(PERMISSION record); | 20 | int updateByPrimaryKey(PERMISSION record); |
20 | 21 | ||
21 | - List<PERMISSION> findAll(); | 22 | + List<PERMISSION> findAll(@Param("name") String name); |
22 | 23 | ||
23 | List<PERMISSION> getAllMenus(); | 24 | List<PERMISSION> getAllMenus(); |
24 | 25 |
src/main/java/com/tianbo/warehouse/dao/ROLEMapper.java
100644 → 100755
1 | package com.tianbo.warehouse.dao; | 1 | package com.tianbo.warehouse.dao; |
2 | 2 | ||
3 | -import com.tianbo.warehouse.model.PERMISSION; | ||
4 | import com.tianbo.warehouse.model.ROLE; | 3 | import com.tianbo.warehouse.model.ROLE; |
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | 5 | ||
6 | -import java.math.BigDecimal; | ||
7 | -import java.util.HashMap; | ||
8 | import java.util.List; | 6 | import java.util.List; |
9 | -import java.util.Map; | ||
10 | 7 | ||
11 | public interface ROLEMapper { | 8 | public interface ROLEMapper { |
12 | int deleteByPrimaryKey(Integer roleId); | 9 | int deleteByPrimaryKey(Integer roleId); |
@@ -17,13 +14,11 @@ public interface ROLEMapper { | @@ -17,13 +14,11 @@ public interface ROLEMapper { | ||
17 | 14 | ||
18 | ROLE selectByPrimaryKey(Integer roleId); | 15 | ROLE selectByPrimaryKey(Integer roleId); |
19 | 16 | ||
20 | - int updateByPrimaryKeySelective(ROLE record); | ||
21 | - | ||
22 | - int updateByPrimaryKey(ROLE record); | ||
23 | - | ||
24 | List<ROLE> findRolesByUserId(Integer userId); | 17 | List<ROLE> findRolesByUserId(Integer userId); |
25 | 18 | ||
26 | - List<ROLE> findAll(); | 19 | + List<ROLE> findAll(@Param("roleName") String roleName); |
27 | 20 | ||
21 | + int updateByPrimaryKeySelective(ROLE record); | ||
28 | 22 | ||
23 | + int updateByPrimaryKey(ROLE record); | ||
29 | } | 24 | } |
src/main/java/com/tianbo/warehouse/dao/RolePermissionMapper.java
100644 → 100755
1 | +package com.tianbo.warehouse.dao; | ||
2 | + | ||
3 | +import com.tianbo.warehouse.model.StaffApartmentComeCar; | ||
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface StaffApartmentComeCarMapper { | ||
9 | + int deleteByPrimaryKey(String id); | ||
10 | + | ||
11 | + int insert(StaffApartmentComeCar record); | ||
12 | + | ||
13 | + int insertSelective(StaffApartmentComeCar record); | ||
14 | + | ||
15 | + StaffApartmentComeCar selectByPrimaryKey(String id); | ||
16 | + | ||
17 | + int updateByPrimaryKeySelective(StaffApartmentComeCar record); | ||
18 | + | ||
19 | + int updateByPrimaryKey(StaffApartmentComeCar record); | ||
20 | + | ||
21 | + List<StaffApartmentComeCar> findAll(@Param("comeToVisitName") String comeToVisitName); | ||
22 | +} |
1 | +package com.tianbo.warehouse.dao; | ||
2 | + | ||
3 | +import com.tianbo.warehouse.model.StaffApartmentMaintain; | ||
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface StaffApartmentMaintainMapper { | ||
9 | + int deleteByPrimaryKey(String id); | ||
10 | + | ||
11 | + int insert(StaffApartmentMaintain record); | ||
12 | + | ||
13 | + int insertSelective(StaffApartmentMaintain record); | ||
14 | + | ||
15 | + StaffApartmentMaintain selectByPrimaryKey(String id); | ||
16 | + | ||
17 | + int updateByPrimaryKeySelective(StaffApartmentMaintain record); | ||
18 | + | ||
19 | + int updateByPrimaryKey(StaffApartmentMaintain record); | ||
20 | + | ||
21 | + List<StaffApartmentMaintain> findAll(@Param("repairsname") String repairsname); | ||
22 | +} |
1 | +package com.tianbo.warehouse.dao; | ||
2 | + | ||
3 | +import com.tianbo.warehouse.model.StaffApartmentOnduty; | ||
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface StaffApartmentOndutyMapper { | ||
9 | + int deleteByPrimaryKey(String id); | ||
10 | + | ||
11 | + int insert(StaffApartmentOnduty record); | ||
12 | + | ||
13 | + int insertSelective(StaffApartmentOnduty record); | ||
14 | + | ||
15 | + StaffApartmentOnduty selectByPrimaryKey(String id); | ||
16 | + | ||
17 | + int updateByPrimaryKeySelective(StaffApartmentOnduty record); | ||
18 | + | ||
19 | + int updateByPrimaryKey(StaffApartmentOnduty record); | ||
20 | + | ||
21 | + List<StaffApartmentOnduty> findAll(@Param("warchkeeper") String warchkeeper); | ||
22 | +} |
1 | +package com.tianbo.warehouse.dao; | ||
2 | + | ||
3 | +import com.tianbo.warehouse.model.StaffApartmentSpareKey; | ||
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface StaffApartmentSpareKeyMapper { | ||
9 | + int deleteByPrimaryKey(String id); | ||
10 | + | ||
11 | + int insert(StaffApartmentSpareKey record); | ||
12 | + | ||
13 | + int insertSelective(StaffApartmentSpareKey record); | ||
14 | + | ||
15 | + StaffApartmentSpareKey selectByPrimaryKey(String id); | ||
16 | + | ||
17 | + int updateByPrimaryKeySelective(StaffApartmentSpareKey record); | ||
18 | + | ||
19 | + int updateByPrimaryKey(StaffApartmentSpareKey record); | ||
20 | + | ||
21 | + List<StaffApartmentSpareKey> findAll(@Param("staffname") String staffname); | ||
22 | +} |
1 | +package com.tianbo.warehouse.dao; | ||
2 | + | ||
3 | +import com.tianbo.warehouse.model.StaffSecurityInspection; | ||
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface StaffSecurityInspectionMapper { | ||
9 | + int deleteByPrimaryKey(String securityInspectionId); | ||
10 | + | ||
11 | + int insert(StaffSecurityInspection record); | ||
12 | + | ||
13 | + int insertSelective(StaffSecurityInspection record); | ||
14 | + | ||
15 | + StaffSecurityInspection selectByPrimaryKey(String securityInspectionId); | ||
16 | + | ||
17 | + int updateByPrimaryKeySelective(StaffSecurityInspection record); | ||
18 | + | ||
19 | + int updateByPrimaryKey(StaffSecurityInspection record); | ||
20 | + | ||
21 | + List<StaffSecurityInspection>findAll(@Param("securityInspectionName") String securityInspectionName); | ||
22 | +} |
src/main/java/com/tianbo/warehouse/dao/T_ETL_MESSAGEMapper.java
100644 → 100755
src/main/java/com/tianbo/warehouse/dao/USERSMapper.java
100644 → 100755
1 | package com.tianbo.warehouse.dao; | 1 | package com.tianbo.warehouse.dao; |
2 | 2 | ||
3 | import com.tianbo.warehouse.model.USERS; | 3 | import com.tianbo.warehouse.model.USERS; |
4 | +import org.apache.ibatis.annotations.Param; | ||
4 | 5 | ||
5 | import java.util.List; | 6 | import java.util.List; |
6 | 7 | ||
@@ -19,5 +20,5 @@ public interface USERSMapper { | @@ -19,5 +20,5 @@ public interface USERSMapper { | ||
19 | 20 | ||
20 | List<USERS> selectByUsername(String userName); | 21 | List<USERS> selectByUsername(String userName); |
21 | 22 | ||
22 | - List<USERS> selectAllUser(USERS record); | 23 | + List<USERS> selectAllUser(USERS users); |
23 | } | 24 | } |
src/main/java/com/tianbo/warehouse/dao/UserRoleMapper.java
100644 → 100755
1 | +package com.tianbo.warehouse.dao; | ||
2 | + | ||
3 | +import com.tianbo.warehouse.model.WaterStationsPatrol; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +public interface WaterStationsPatrolMapper { | ||
8 | + int deleteByPrimaryKey(String id); | ||
9 | + | ||
10 | + int insert(WaterStationsPatrol record); | ||
11 | + | ||
12 | + int insertSelective(WaterStationsPatrol record); | ||
13 | + | ||
14 | + WaterStationsPatrol selectByPrimaryKey(String id); | ||
15 | + | ||
16 | + int updateByPrimaryKeySelective(WaterStationsPatrol record); | ||
17 | + | ||
18 | + int updateByPrimaryKey(WaterStationsPatrol record); | ||
19 | + | ||
20 | + List<WaterStationsPatrol> findAll(); | ||
21 | +} |
src/main/java/com/tianbo/warehouse/handle/IO_Log_Handle.java
100644 → 100755
1 | -package com.tianbo.warehouse.imf; | ||
2 | - | ||
3 | -import com.caac.imf.api.IMFClient; | ||
4 | -import com.tianbo.warehouse.imf.handle.IMFSaveHandle; | ||
5 | -import com.tianbo.warehouse.imf.schedul.IMF_Task; | ||
6 | -import org.apache.log4j.Logger; | ||
7 | - | ||
8 | -public class IMF_Reader extends Thread{ | ||
9 | - protected static final Logger logger = Logger.getLogger(IMF_Reader.class); | ||
10 | - private IMFClient client; | ||
11 | - public static boolean isrunning; | ||
12 | - | ||
13 | - public IMF_Reader(IMFClient client) { | ||
14 | - this.client = client; | ||
15 | - } | ||
16 | - | ||
17 | - @Override | ||
18 | - public void run() { | ||
19 | - try{ | ||
20 | - isrunning =true; | ||
21 | - while(true) { | ||
22 | - if (IMF_Task.LOGIN_OK) { | ||
23 | - String message = this.client.getMSG(); | ||
24 | - if (message != null) { | ||
25 | - IMFSaveHandle imfSaveHandle = new IMFSaveHandle(); | ||
26 | - imfSaveHandle.handle(message); | ||
27 | - } | ||
28 | - | ||
29 | - } else { | ||
30 | - //logger.info("***"); | ||
31 | - } | ||
32 | - | ||
33 | - try { | ||
34 | - Thread.sleep(500L); | ||
35 | - } catch (InterruptedException var3) { | ||
36 | - var3.printStackTrace(); | ||
37 | - | ||
38 | - } | ||
39 | - } | ||
40 | - | ||
41 | - }catch (Exception e){ | ||
42 | - e.printStackTrace(); | ||
43 | - } | ||
44 | - isrunning=false; | ||
45 | - logger.info("****************读取线程不在了****************"); | ||
46 | - } | ||
47 | -} |
1 | -package com.tianbo.warehouse.imf; | ||
2 | - | ||
3 | -import com.caac.imf.api.IMFClient; | ||
4 | -import com.tianbo.warehouse.imf.schedul.IMF_Task; | ||
5 | -import com.tianbo.warehouse.util.Date.DateUtil; | ||
6 | -import com.tianbo.warehouse.util.IO.FileTool; | ||
7 | -import com.tianbo.warehouse.util.XML.MakeImfMeta; | ||
8 | -import org.apache.commons.io.FileUtils; | ||
9 | -import org.apache.log4j.Logger; | ||
10 | - | ||
11 | -import java.io.*; | ||
12 | -import java.util.Iterator; | ||
13 | -import java.util.List; | ||
14 | - | ||
15 | -public class IMF_Sender extends Thread{ | ||
16 | - | ||
17 | - protected static final Logger logger = Logger.getLogger(IMF_Sender.class); | ||
18 | - public static boolean isrunning; | ||
19 | - private IMFClient client; | ||
20 | - private String content; | ||
21 | - | ||
22 | - public IMF_Sender(IMFClient client) { | ||
23 | - this.client = client; | ||
24 | - } | ||
25 | - public IMF_Sender(IMFClient client, String content) { | ||
26 | - this.client = client; | ||
27 | - this.content = content; | ||
28 | - } | ||
29 | - | ||
30 | - @Override | ||
31 | - public void run(){ | ||
32 | - | ||
33 | - String sendDir = FileTool.readProperties("readDirectory"); | ||
34 | - String SNDR = FileTool.readProperties("loginname"); | ||
35 | - String TYPE = FileTool.readProperties("TYPE"); | ||
36 | - String STYP = FileTool.readProperties("STYP"); | ||
37 | - String RCVR = FileTool.readProperties("RCVR"); | ||
38 | - String DDTM = DateUtil.getDDTM(); | ||
39 | - String SEQN = DDTM; | ||
40 | - | ||
41 | - if (this.client == null) { | ||
42 | - logger.info("IMFClient has been closed"); | ||
43 | - return; | ||
44 | - } | ||
45 | - isrunning=true; | ||
46 | - if(IMF_Task.isSuc){ | ||
47 | - if(IMF_Task.LOGIN_OK){ | ||
48 | - while (true){ | ||
49 | - //发送报文 | ||
50 | - List<File> files = FileTool.readDirectoryFiles(new File(sendDir)); | ||
51 | - String sendMsg = ""; | ||
52 | - Iterator<File> it = files.iterator(); | ||
53 | - while(it.hasNext()){ | ||
54 | - File file = it.next(); | ||
55 | - try { | ||
56 | - sendMsg = MakeImfMeta.makeImfDocument(SNDR,RCVR,TYPE,STYP,DDTM,SEQN,file); | ||
57 | - String returnMsg = this.client.sendMSG(sendMsg); | ||
58 | - if(returnMsg.indexOf("<CODE>9</CODE>")>=0){ | ||
59 | - FileUtils.forceDelete(file); | ||
60 | - } | ||
61 | - }catch (Exception e){ | ||
62 | - e.printStackTrace(); | ||
63 | - } | ||
64 | - } | ||
65 | - | ||
66 | - try { | ||
67 | - Thread.sleep(500L); | ||
68 | - } catch (InterruptedException var3) { | ||
69 | - var3.printStackTrace(); | ||
70 | - } | ||
71 | - } | ||
72 | - }else{ | ||
73 | - logger.info("<<<<<<<<<<<登陆中>>>>>>>>>>>>"); | ||
74 | - } | ||
75 | - } | ||
76 | - | ||
77 | - | ||
78 | - | ||
79 | - isrunning=false; | ||
80 | - logger.info("<<<<<<<<<<<发送线程结束>>>>>>>>>>>>"); | ||
81 | - } | ||
82 | - | ||
83 | - public String getContent() { | ||
84 | - return content; | ||
85 | - } | ||
86 | - | ||
87 | - public void setContent(String content) { | ||
88 | - this.content = content; | ||
89 | - } | ||
90 | -} |
1 | -package com.tianbo.warehouse.imf.handle; | ||
2 | - | ||
3 | -import com.tianbo.warehouse.model.T_ETL_MESSAGE; | ||
4 | -import com.tianbo.warehouse.service.T_ETL_MESSAGEService; | ||
5 | - | ||
6 | -import com.tianbo.warehouse.util.Date.DateUtil; | ||
7 | -import com.tianbo.warehouse.util.IO.FileTool; | ||
8 | -import com.tianbo.warehouse.util.XML.XML2ENTITY; | ||
9 | -import org.apache.log4j.Logger; | ||
10 | -import org.dom4j.Document; | ||
11 | -import org.dom4j.DocumentHelper; | ||
12 | -import org.springframework.beans.factory.annotation.Autowired; | ||
13 | -import org.springframework.stereotype.Component; | ||
14 | - | ||
15 | -import javax.annotation.PostConstruct; | ||
16 | -import java.util.Date; | ||
17 | -import java.util.Map; | ||
18 | - | ||
19 | -/** | ||
20 | - * 存储IMF过来的原始报文到数据仓库T_ELT_MESSAGE原始报文表中 | ||
21 | - */ | ||
22 | -@Component | ||
23 | -public class IMFSaveHandle { | ||
24 | - | ||
25 | - @Autowired | ||
26 | - protected T_ETL_MESSAGEService messageService; | ||
27 | - | ||
28 | - private static IMFSaveHandle saveHandle; | ||
29 | - | ||
30 | - protected static final Logger logger = Logger.getLogger(IMFSaveHandle.class); | ||
31 | - | ||
32 | - @PostConstruct | ||
33 | - public void init(){ | ||
34 | - saveHandle = this; | ||
35 | - saveHandle.messageService = this.messageService; | ||
36 | - } | ||
37 | - | ||
38 | - public void handle(String xmlmessage){ | ||
39 | - try { | ||
40 | - //有人发报文头部不按规范发 | ||
41 | -// xmlmessage = xmlmessage.replace("<Msg>","<MSG>") | ||
42 | -// .replace("<msg>","<MSG>") | ||
43 | -// .replace("</Msg>","</MSG>") | ||
44 | -// .replace("</msg>","</MSG>"); | ||
45 | - | ||
46 | - | ||
47 | - Document document = DocumentHelper.parseText(xmlmessage); | ||
48 | - XML2ENTITY xml2ENTITY =new XML2ENTITY(); | ||
49 | - Map xmlMap = xml2ENTITY.Dom2Map(document); | ||
50 | - | ||
51 | - Map meta = (Map) xmlMap.get("META"); | ||
52 | - | ||
53 | - T_ETL_MESSAGE message = new T_ETL_MESSAGE(); | ||
54 | - | ||
55 | - String sndrm = meta.get("SNDR").toString(); | ||
56 | - String stypm = meta.get("STYP").toString(); | ||
57 | - | ||
58 | - | ||
59 | - | ||
60 | - if ("TXD".equals(sndrm)){ | ||
61 | - //读取配置文件的需要本地存储报文的节点 | ||
62 | - String saveStyp= FileTool.readProperties("saveStyp"); | ||
63 | - String[] styps = saveStyp.split(","); | ||
64 | - for (String item: styps) { | ||
65 | - if (item.equals(stypm)){ | ||
66 | - //存储至备份目录 | ||
67 | - FileTool.writeFileToBak(xmlmessage); | ||
68 | - } | ||
69 | - } | ||
70 | - } | ||
71 | - | ||
72 | - String typem = meta.get("TYPE").toString(); | ||
73 | - String rcvr = XML2ENTITY.getMap(meta,"RCVR").toString(); | ||
74 | - String ddtm = meta.get("DDTM").toString(); | ||
75 | - String seqn = meta.get("SEQN").toString(); | ||
76 | - | ||
77 | - | ||
78 | - | ||
79 | - | ||
80 | - message.setSndr(sndrm); | ||
81 | - message.setRcvr(rcvr); | ||
82 | - message.setType(typem); | ||
83 | - message.setStyp(stypm); | ||
84 | - message.setSeqn(seqn); | ||
85 | - | ||
86 | - | ||
87 | - Date ddtmDate = DateUtil.formatByyyyyMMddHHmmss(ddtm); | ||
88 | - message.setDdtm(ddtmDate); | ||
89 | - message.setSntm(ddtmDate); | ||
90 | - message.setOper("ALL"); | ||
91 | - message.setAppid("W"); | ||
92 | - message.setEtltim(new Date()); | ||
93 | - | ||
94 | - | ||
95 | - | ||
96 | - message.setContent(xmlmessage); | ||
97 | - | ||
98 | - int i = saveHandle.messageService.insertSelective(message); | ||
99 | - }catch (Exception e){ | ||
100 | - FileTool.writeFile("err",e.toString()+"\n"+xmlmessage,false); | ||
101 | - logger.warn("*报文入库失败已存储成备份文件*"); | ||
102 | - logger.error(e); | ||
103 | - logger.warn(e); | ||
104 | - } | ||
105 | - | ||
106 | - | ||
107 | - | ||
108 | - } | ||
109 | -} |
1 | -package com.tianbo.warehouse.imf.schedul; | ||
2 | - | ||
3 | -import com.caac.imf.api.IMFClient; | ||
4 | -import com.caac.imf.api.IMFClientFactory; | ||
5 | -import com.tianbo.warehouse.imf.IMF_Reader; | ||
6 | -import com.tianbo.warehouse.imf.IMF_Sender; | ||
7 | -import com.tianbo.warehouse.util.IO.FileTool; | ||
8 | -import org.apache.log4j.Logger; | ||
9 | -import org.apache.log4j.PropertyConfigurator; | ||
10 | -import org.springframework.stereotype.Component; | ||
11 | - | ||
12 | -import java.text.SimpleDateFormat; | ||
13 | - | ||
14 | -@Component | ||
15 | -public class IMF_Task { | ||
16 | - protected static final Logger logger = Logger.getLogger(IMF_Task.class); | ||
17 | - private static final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | ||
18 | - public static boolean LOGIN_OK = false; | ||
19 | - public static boolean isSuc = true; | ||
20 | - public static IMFClient client = null; | ||
21 | - public static String loginname; | ||
22 | - public static String loginpass; | ||
23 | - public static String isNeedSend = "N"; | ||
24 | - | ||
25 | - | ||
26 | -// @Scheduled(fixedRate = 5000) | ||
27 | - private static void start() throws Exception { | ||
28 | - PropertyConfigurator.configure("config/log4j.properties"); | ||
29 | - client = IMFClientFactory.createInstance(); | ||
30 | - loginname= FileTool.readProperties("loginname"); | ||
31 | - loginpass= FileTool.readProperties("loginpass"); | ||
32 | - isNeedSend= FileTool.readProperties("isNeedSend"); | ||
33 | - | ||
34 | - | ||
35 | - //登录 | ||
36 | - if (!LOGIN_OK) { | ||
37 | - loginIMF(client, loginname, loginpass, "config/imf_config.properties"); | ||
38 | - } | ||
39 | - | ||
40 | - //启动读取线程 | ||
41 | - if (client != null) { | ||
42 | - IMF_Reader reader = new IMF_Reader(client); | ||
43 | - | ||
44 | - if (!IMF_Reader.isrunning) { | ||
45 | - reader.start(); | ||
46 | - logger.info("*********读取线程已开启***********"); | ||
47 | - } else { | ||
48 | - // logger.info("*********读取线程已开启-不再启动线程*********"); | ||
49 | - } | ||
50 | - | ||
51 | - if("Y".equals(isNeedSend)){ | ||
52 | - IMF_Sender kako_sender = new IMF_Sender(client); | ||
53 | - if(!IMF_Sender.isrunning) { | ||
54 | - kako_sender.start(); | ||
55 | - } | ||
56 | - } | ||
57 | - | ||
58 | - } | ||
59 | - | ||
60 | - } | ||
61 | - | ||
62 | - public void sendMsg(String msg){ | ||
63 | - if (!msg.equals(null) && !msg.isEmpty()){ | ||
64 | - if(LOGIN_OK){ | ||
65 | - IMF_Sender sender = new IMF_Sender(client,msg); | ||
66 | - sender.setContent(msg); | ||
67 | - sender.start(); | ||
68 | - } | ||
69 | - | ||
70 | - } | ||
71 | - | ||
72 | - } | ||
73 | - | ||
74 | - private static void loginIMF(IMFClient client, String userName, String password, String confFileName) { | ||
75 | - if (client.initial(confFileName)) { | ||
76 | - String message = client.login(userName, password); | ||
77 | - logger.info("message=" + message); | ||
78 | - if (message.indexOf("<CODE>1</CODE>") > 0) { | ||
79 | - logger.info("登陆成功"); | ||
80 | - LOGIN_OK = true; | ||
81 | - } else { | ||
82 | - int times = 0; | ||
83 | - | ||
84 | - while(times <= 3) { | ||
85 | - logger.info("try connection..."); | ||
86 | - ++times; | ||
87 | - logger.info("message.=" + message); | ||
88 | - if (message.indexOf("<CODE>1</CODE>") > 0) { | ||
89 | - logger.info("登陆成功"); | ||
90 | - LOGIN_OK = true; | ||
91 | - break; | ||
92 | - } | ||
93 | - | ||
94 | - logger.info("登录失败~~~~"); | ||
95 | - message = client.login(userName, password); | ||
96 | - | ||
97 | - try { | ||
98 | - Thread.sleep(4000L); | ||
99 | - } catch (InterruptedException var7) { | ||
100 | - var7.printStackTrace(); | ||
101 | - } | ||
102 | - } | ||
103 | - | ||
104 | - if (!LOGIN_OK) { | ||
105 | - logger.info("多次尝试登录失败,退出登陆"); | ||
106 | - client.disconnect(); | ||
107 | - isSuc =false; | ||
108 | - System.exit(-1); | ||
109 | - } | ||
110 | - } | ||
111 | - } | ||
112 | - | ||
113 | - } | ||
114 | - | ||
115 | -} |
src/main/java/com/tianbo/warehouse/model/Attachment.java
100644 → 100755
1 | +package com.tianbo.warehouse.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class Company { | ||
6 | + private String companyId; | ||
7 | + | ||
8 | + private String companyName; | ||
9 | + | ||
10 | + private String groupId; | ||
11 | + | ||
12 | + private Date creatTime; | ||
13 | + | ||
14 | + private String companyStatus; | ||
15 | + | ||
16 | + private String groupName; | ||
17 | + | ||
18 | + public String getGroupName() { | ||
19 | + return groupName; | ||
20 | + } | ||
21 | + | ||
22 | + public void setGroupName(String groupName) { | ||
23 | + this.groupName = groupName; | ||
24 | + } | ||
25 | + | ||
26 | + public String getCompanyId() { | ||
27 | + return companyId; | ||
28 | + } | ||
29 | + | ||
30 | + public void setCompanyId(String companyId) { | ||
31 | + this.companyId = companyId == null ? null : companyId.trim(); | ||
32 | + } | ||
33 | + | ||
34 | + public String getCompanyName() { | ||
35 | + return companyName; | ||
36 | + } | ||
37 | + | ||
38 | + public void setCompanyName(String companyName) { | ||
39 | + this.companyName = companyName == null ? null : companyName.trim(); | ||
40 | + } | ||
41 | + | ||
42 | + public String getGroupId() { | ||
43 | + return groupId; | ||
44 | + } | ||
45 | + | ||
46 | + public void setGroupId(String groupId) { | ||
47 | + this.groupId = groupId == null ? null : groupId.trim(); | ||
48 | + } | ||
49 | + | ||
50 | + public Date getCreatTime() { | ||
51 | + return creatTime; | ||
52 | + } | ||
53 | + | ||
54 | + public void setCreatTime(Date creatTime) { | ||
55 | + this.creatTime = creatTime; | ||
56 | + } | ||
57 | + | ||
58 | + public String getCompanyStatus() { | ||
59 | + return companyStatus; | ||
60 | + } | ||
61 | + | ||
62 | + public void setCompanyStatus(String companyStatus) { | ||
63 | + this.companyStatus = companyStatus == null ? null : companyStatus.trim(); | ||
64 | + } | ||
65 | +} |
1 | +package com.tianbo.warehouse.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class Department { | ||
6 | + private String departmentId; | ||
7 | + | ||
8 | + private String departmentName; | ||
9 | + | ||
10 | + private Date creatTime; | ||
11 | + | ||
12 | + private String companyId; | ||
13 | + | ||
14 | + private String companyName; | ||
15 | + | ||
16 | + public String getCompanyName() { | ||
17 | + return companyName; | ||
18 | + } | ||
19 | + | ||
20 | + public void setCompanyName(String companyName) { | ||
21 | + this.companyName = companyName; | ||
22 | + } | ||
23 | + | ||
24 | + public String getDepartmentId() { | ||
25 | + return departmentId; | ||
26 | + } | ||
27 | + | ||
28 | + public void setDepartmentId(String departmentId) { | ||
29 | + this.departmentId = departmentId == null ? null : departmentId.trim(); | ||
30 | + } | ||
31 | + | ||
32 | + public String getDepartmentName() { | ||
33 | + return departmentName; | ||
34 | + } | ||
35 | + | ||
36 | + public void setDepartmentName(String departmentName) { | ||
37 | + this.departmentName = departmentName == null ? null : departmentName.trim(); | ||
38 | + } | ||
39 | + | ||
40 | + public Date getCreatTime() { | ||
41 | + return creatTime; | ||
42 | + } | ||
43 | + | ||
44 | + public void setCreatTime(Date creatTime) { | ||
45 | + this.creatTime = creatTime; | ||
46 | + } | ||
47 | + | ||
48 | + public String getCompanyId() { | ||
49 | + return companyId; | ||
50 | + } | ||
51 | + | ||
52 | + public void setCompanyId(String companyId) { | ||
53 | + this.companyId = companyId == null ? null : companyId.trim(); | ||
54 | + } | ||
55 | +} |
1 | +package com.tianbo.warehouse.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class Group_company { | ||
6 | + private String groupId; | ||
7 | + | ||
8 | + private String groupName; | ||
9 | + | ||
10 | + private Date creatTime; | ||
11 | + | ||
12 | + public String getGroupId() { | ||
13 | + return groupId; | ||
14 | + } | ||
15 | + | ||
16 | + public void setGroupId(String groupId) { | ||
17 | + this.groupId = groupId == null ? null : groupId.trim(); | ||
18 | + } | ||
19 | + | ||
20 | + public String getGroupName() { | ||
21 | + return groupName; | ||
22 | + } | ||
23 | + | ||
24 | + public void setGroupName(String groupName) { | ||
25 | + this.groupName = groupName == null ? null : groupName.trim(); | ||
26 | + } | ||
27 | + | ||
28 | + public Date getCreatTime() { | ||
29 | + return creatTime; | ||
30 | + } | ||
31 | + | ||
32 | + public void setCreatTime(Date creatTime) { | ||
33 | + this.creatTime = creatTime; | ||
34 | + } | ||
35 | +} |
src/main/java/com/tianbo/warehouse/model/LOG.java
100644 → 100755
src/main/java/com/tianbo/warehouse/model/LOGWithBLOBs.java
100644 → 100755
src/main/java/com/tianbo/warehouse/model/PERMISSION.java
100644 → 100755
@@ -61,8 +61,8 @@ public class PERMISSION { | @@ -61,8 +61,8 @@ public class PERMISSION { | ||
61 | return ismenu; | 61 | return ismenu; |
62 | } | 62 | } |
63 | 63 | ||
64 | - public void setIsmenu(Boolean ismenu) { | ||
65 | - this.ismenu = ismenu; | 64 | + public void setIsmenu(String ismenu) { |
65 | + this.ismenu = "0".equals(ismenu)?false:true ; | ||
66 | } | 66 | } |
67 | 67 | ||
68 | public Integer getParentId() { | 68 | public Integer getParentId() { |
src/main/java/com/tianbo/warehouse/model/ROLE.java
100644 → 100755
@@ -5,6 +5,7 @@ import org.springframework.security.core.GrantedAuthority; | @@ -5,6 +5,7 @@ import org.springframework.security.core.GrantedAuthority; | ||
5 | import java.util.List; | 5 | import java.util.List; |
6 | 6 | ||
7 | public class ROLE implements GrantedAuthority { | 7 | public class ROLE implements GrantedAuthority { |
8 | + | ||
8 | private static final long serialVersionUID = 1L; | 9 | private static final long serialVersionUID = 1L; |
9 | 10 | ||
10 | private Integer roleId; | 11 | private Integer roleId; |
@@ -15,8 +16,20 @@ public class ROLE implements GrantedAuthority { | @@ -15,8 +16,20 @@ public class ROLE implements GrantedAuthority { | ||
15 | 16 | ||
16 | private String description; | 17 | private String description; |
17 | 18 | ||
19 | + private String departmentId; | ||
20 | + | ||
21 | + private String departmentName; | ||
22 | + | ||
18 | private List<PERMISSION> permissions; | 23 | private List<PERMISSION> permissions; |
19 | 24 | ||
25 | + public String getDepartmentName() { | ||
26 | + return departmentName; | ||
27 | + } | ||
28 | + | ||
29 | + public void setDepartmentName(String departmentName) { | ||
30 | + this.departmentName = departmentName; | ||
31 | + } | ||
32 | + | ||
20 | public Integer getRoleId() { | 33 | public Integer getRoleId() { |
21 | return roleId; | 34 | return roleId; |
22 | } | 35 | } |
@@ -49,6 +62,14 @@ public class ROLE implements GrantedAuthority { | @@ -49,6 +62,14 @@ public class ROLE implements GrantedAuthority { | ||
49 | this.description = description == null ? null : description.trim(); | 62 | this.description = description == null ? null : description.trim(); |
50 | } | 63 | } |
51 | 64 | ||
65 | + public String getDepartmentId() { | ||
66 | + return departmentId; | ||
67 | + } | ||
68 | + | ||
69 | + public void setDepartmentId(String departmentId) { | ||
70 | + this.departmentId = departmentId == null ? null : departmentId.trim(); | ||
71 | + } | ||
72 | + | ||
52 | public List<PERMISSION> getPermissions() { | 73 | public List<PERMISSION> getPermissions() { |
53 | return permissions; | 74 | return permissions; |
54 | } | 75 | } |
src/main/java/com/tianbo/warehouse/model/RolePermission.java
100644 → 100755
1 | +package com.tianbo.warehouse.model; | ||
2 | + | ||
3 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
4 | +import org.springframework.format.annotation.DateTimeFormat; | ||
5 | + | ||
6 | +import java.util.Date; | ||
7 | + | ||
8 | +public class StaffApartmentComeCar { | ||
9 | + private String id; | ||
10 | + | ||
11 | + @DateTimeFormat(pattern = "yyyy-MM-dd") | ||
12 | + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
13 | + private Date datetime; | ||
14 | + | ||
15 | + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
16 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
17 | + private Date cometovisitdate; | ||
18 | + | ||
19 | + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
20 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
21 | + private Date leavedate; | ||
22 | + | ||
23 | + private String cometovisitname; | ||
24 | + | ||
25 | + private String carnumber; | ||
26 | + | ||
27 | + private String phone; | ||
28 | + | ||
29 | + private String comematter; | ||
30 | + | ||
31 | + private String warchkeeper; | ||
32 | + | ||
33 | + private String remark1; | ||
34 | + | ||
35 | + private String remark2; | ||
36 | + | ||
37 | + private String remark3; | ||
38 | + | ||
39 | + private Integer userid; | ||
40 | + | ||
41 | + private Date createtime; | ||
42 | + | ||
43 | + public String getId() { | ||
44 | + return id; | ||
45 | + } | ||
46 | + | ||
47 | + public void setId(String id) { | ||
48 | + this.id = id == null ? null : id.trim(); | ||
49 | + } | ||
50 | + | ||
51 | + public Date getDatetime() { | ||
52 | + return datetime; | ||
53 | + } | ||
54 | + | ||
55 | + public void setDatetime(Date datetime) { | ||
56 | + this.datetime = datetime; | ||
57 | + } | ||
58 | + | ||
59 | + public Date getCometovisitdate() { | ||
60 | + return cometovisitdate; | ||
61 | + } | ||
62 | + | ||
63 | + public void setCometovisitdate(Date cometovisitdate) { | ||
64 | + this.cometovisitdate = cometovisitdate; | ||
65 | + } | ||
66 | + | ||
67 | + public Date getLeavedate() { | ||
68 | + return leavedate; | ||
69 | + } | ||
70 | + | ||
71 | + public void setLeavedate(Date leavedate) { | ||
72 | + this.leavedate = leavedate; | ||
73 | + } | ||
74 | + | ||
75 | + public String getCometovisitname() { | ||
76 | + return cometovisitname; | ||
77 | + } | ||
78 | + | ||
79 | + public void setCometovisitname(String cometovisitname) { | ||
80 | + this.cometovisitname = cometovisitname == null ? null : cometovisitname.trim(); | ||
81 | + } | ||
82 | + | ||
83 | + public String getCarnumber() { | ||
84 | + return carnumber; | ||
85 | + } | ||
86 | + | ||
87 | + public void setCarnumber(String carnumber) { | ||
88 | + this.carnumber = carnumber == null ? null : carnumber.trim(); | ||
89 | + } | ||
90 | + | ||
91 | + public String getPhone() { | ||
92 | + return phone; | ||
93 | + } | ||
94 | + | ||
95 | + public void setPhone(String phone) { | ||
96 | + this.phone = phone == null ? null : phone.trim(); | ||
97 | + } | ||
98 | + | ||
99 | + public String getComematter() { | ||
100 | + return comematter; | ||
101 | + } | ||
102 | + | ||
103 | + public void setComematter(String comematter) { | ||
104 | + this.comematter = comematter == null ? null : comematter.trim(); | ||
105 | + } | ||
106 | + | ||
107 | + public String getWarchkeeper() { | ||
108 | + return warchkeeper; | ||
109 | + } | ||
110 | + | ||
111 | + public void setWarchkeeper(String warchkeeper) { | ||
112 | + this.warchkeeper = warchkeeper == null ? null : warchkeeper.trim(); | ||
113 | + } | ||
114 | + | ||
115 | + public String getRemark1() { | ||
116 | + return remark1; | ||
117 | + } | ||
118 | + | ||
119 | + public void setRemark1(String remark1) { | ||
120 | + this.remark1 = remark1 == null ? null : remark1.trim(); | ||
121 | + } | ||
122 | + | ||
123 | + public String getRemark2() { | ||
124 | + return remark2; | ||
125 | + } | ||
126 | + | ||
127 | + public void setRemark2(String remark2) { | ||
128 | + this.remark2 = remark2 == null ? null : remark2.trim(); | ||
129 | + } | ||
130 | + | ||
131 | + public String getRemark3() { | ||
132 | + return remark3; | ||
133 | + } | ||
134 | + | ||
135 | + public void setRemark3(String remark3) { | ||
136 | + this.remark3 = remark3 == null ? null : remark3.trim(); | ||
137 | + } | ||
138 | + | ||
139 | + public Integer getUserid() { | ||
140 | + return userid; | ||
141 | + } | ||
142 | + | ||
143 | + public void setUserid(Integer userid) { | ||
144 | + this.userid = userid; | ||
145 | + } | ||
146 | + | ||
147 | + public Date getCreatetime() { | ||
148 | + return createtime; | ||
149 | + } | ||
150 | + | ||
151 | + public void setCreatetime(Date createtime) { | ||
152 | + this.createtime = createtime; | ||
153 | + } | ||
154 | +} |
1 | +package com.tianbo.warehouse.model; | ||
2 | + | ||
3 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
4 | +import org.springframework.format.annotation.DateTimeFormat; | ||
5 | + | ||
6 | +import java.util.Date; | ||
7 | + | ||
8 | +public class StaffApartmentMaintain { | ||
9 | + private String id; | ||
10 | + | ||
11 | + @DateTimeFormat(pattern = "yyyy-MM-dd") | ||
12 | + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
13 | + private Date repairsdate; | ||
14 | + | ||
15 | + private String repairscontent; | ||
16 | + | ||
17 | + private String reflectway; | ||
18 | + | ||
19 | + private String repairsdept; | ||
20 | + | ||
21 | + private String answerthephonename; | ||
22 | + | ||
23 | + private String repairsname; | ||
24 | + | ||
25 | + private String repairsphone; | ||
26 | + | ||
27 | + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
28 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
29 | + private Date maintaindate; | ||
30 | + | ||
31 | + private String maintaincase; | ||
32 | + | ||
33 | + private String cooperatemaintainname; | ||
34 | + | ||
35 | + private Integer meno; | ||
36 | + | ||
37 | + private String remark1; | ||
38 | + | ||
39 | + private String remark2; | ||
40 | + | ||
41 | + private String remark3; | ||
42 | + | ||
43 | + private Integer createby; | ||
44 | + | ||
45 | + private Date createtime; | ||
46 | + | ||
47 | + public String getId() { | ||
48 | + return id; | ||
49 | + } | ||
50 | + | ||
51 | + public void setId(String id) { | ||
52 | + this.id = id == null ? null : id.trim(); | ||
53 | + } | ||
54 | + | ||
55 | + public Date getRepairsdate() { | ||
56 | + return repairsdate; | ||
57 | + } | ||
58 | + | ||
59 | + public void setRepairsdate(Date repairsdate) { | ||
60 | + this.repairsdate = repairsdate; | ||
61 | + } | ||
62 | + | ||
63 | + public String getRepairscontent() { | ||
64 | + return repairscontent; | ||
65 | + } | ||
66 | + | ||
67 | + public void setRepairscontent(String repairscontent) { | ||
68 | + this.repairscontent = repairscontent == null ? null : repairscontent.trim(); | ||
69 | + } | ||
70 | + | ||
71 | + public String getReflectway() { | ||
72 | + return reflectway; | ||
73 | + } | ||
74 | + | ||
75 | + public void setReflectway(String reflectway) { | ||
76 | + this.reflectway = reflectway == null ? null : reflectway.trim(); | ||
77 | + } | ||
78 | + | ||
79 | + public String getRepairsdept() { | ||
80 | + return repairsdept; | ||
81 | + } | ||
82 | + | ||
83 | + public void setRepairsdept(String repairsdept) { | ||
84 | + this.repairsdept = repairsdept == null ? null : repairsdept.trim(); | ||
85 | + } | ||
86 | + | ||
87 | + public String getAnswerthephonename() { | ||
88 | + return answerthephonename; | ||
89 | + } | ||
90 | + | ||
91 | + public void setAnswerthephonename(String answerthephonename) { | ||
92 | + this.answerthephonename = answerthephonename == null ? null : answerthephonename.trim(); | ||
93 | + } | ||
94 | + | ||
95 | + public String getRepairsname() { | ||
96 | + return repairsname; | ||
97 | + } | ||
98 | + | ||
99 | + public void setRepairsname(String repairsname) { | ||
100 | + this.repairsname = repairsname == null ? null : repairsname.trim(); | ||
101 | + } | ||
102 | + | ||
103 | + public String getRepairsphone() { | ||
104 | + return repairsphone; | ||
105 | + } | ||
106 | + | ||
107 | + public void setRepairsphone(String repairsphone) { | ||
108 | + this.repairsphone = repairsphone == null ? null : repairsphone.trim(); | ||
109 | + } | ||
110 | + | ||
111 | + public Date getMaintaindate() { | ||
112 | + return maintaindate; | ||
113 | + } | ||
114 | + | ||
115 | + public void setMaintaindate(Date maintaindate) { | ||
116 | + this.maintaindate = maintaindate; | ||
117 | + } | ||
118 | + | ||
119 | + public String getMaintaincase() { | ||
120 | + return maintaincase; | ||
121 | + } | ||
122 | + | ||
123 | + public void setMaintaincase(String maintaincase) { | ||
124 | + this.maintaincase = maintaincase == null ? null : maintaincase.trim(); | ||
125 | + } | ||
126 | + | ||
127 | + public String getCooperatemaintainname() { | ||
128 | + return cooperatemaintainname; | ||
129 | + } | ||
130 | + | ||
131 | + public void setCooperatemaintainname(String cooperatemaintainname) { | ||
132 | + this.cooperatemaintainname = cooperatemaintainname == null ? null : cooperatemaintainname.trim(); | ||
133 | + } | ||
134 | + | ||
135 | + public Integer getMeno() { | ||
136 | + return meno; | ||
137 | + } | ||
138 | + | ||
139 | + public void setMeno(Integer meno) { | ||
140 | + this.meno = meno; | ||
141 | + } | ||
142 | + | ||
143 | + public String getRemark1() { | ||
144 | + return remark1; | ||
145 | + } | ||
146 | + | ||
147 | + public void setRemark1(String remark1) { | ||
148 | + this.remark1 = remark1 == null ? null : remark1.trim(); | ||
149 | + } | ||
150 | + | ||
151 | + public String getRemark2() { | ||
152 | + return remark2; | ||
153 | + } | ||
154 | + | ||
155 | + public void setRemark2(String remark2) { | ||
156 | + this.remark2 = remark2 == null ? null : remark2.trim(); | ||
157 | + } | ||
158 | + | ||
159 | + public String getRemark3() { | ||
160 | + return remark3; | ||
161 | + } | ||
162 | + | ||
163 | + public void setRemark3(String remark3) { | ||
164 | + this.remark3 = remark3 == null ? null : remark3.trim(); | ||
165 | + } | ||
166 | + | ||
167 | + public Integer getCreateby() { | ||
168 | + return createby; | ||
169 | + } | ||
170 | + | ||
171 | + public void setCreateby(Integer createby) { | ||
172 | + this.createby = createby; | ||
173 | + } | ||
174 | + | ||
175 | + public Date getCreatetime() { | ||
176 | + return createtime; | ||
177 | + } | ||
178 | + | ||
179 | + public void setCreatetime(Date createtime) { | ||
180 | + this.createtime = createtime; | ||
181 | + } | ||
182 | +} |
1 | +package com.tianbo.warehouse.model; | ||
2 | + | ||
3 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
4 | +import org.springframework.format.annotation.DateTimeFormat; | ||
5 | + | ||
6 | +import java.util.Date; | ||
7 | + | ||
8 | +public class StaffApartmentOnduty { | ||
9 | + private String id; | ||
10 | + | ||
11 | + private String warchkeeper; | ||
12 | + | ||
13 | + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
14 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
15 | + private Date handovershifttime; | ||
16 | + | ||
17 | + private String publiclighting; | ||
18 | + | ||
19 | + private String carpark; | ||
20 | + | ||
21 | + private String campusafforestation; | ||
22 | + | ||
23 | + private String firefightingequipment; | ||
24 | + | ||
25 | + private String equipmentfacilities; | ||
26 | + | ||
27 | + private String publicsanitation; | ||
28 | + | ||
29 | + private String property; | ||
30 | + | ||
31 | + private String securitydanger; | ||
32 | + | ||
33 | + private String rests; | ||
34 | + | ||
35 | + private String handovermatters; | ||
36 | + | ||
37 | + private Date creatime; | ||
38 | + | ||
39 | + private Integer userid; | ||
40 | + | ||
41 | + private String remberk1; | ||
42 | + | ||
43 | + private String remberk2; | ||
44 | + | ||
45 | + private String remberk3; | ||
46 | + | ||
47 | + public String getId() { | ||
48 | + return id; | ||
49 | + } | ||
50 | + | ||
51 | + public void setId(String id) { | ||
52 | + this.id = id == null ? null : id.trim(); | ||
53 | + } | ||
54 | + | ||
55 | + public String getWarchkeeper() { | ||
56 | + return warchkeeper; | ||
57 | + } | ||
58 | + | ||
59 | + public void setWarchkeeper(String warchkeeper) { | ||
60 | + this.warchkeeper = warchkeeper == null ? null : warchkeeper.trim(); | ||
61 | + } | ||
62 | + | ||
63 | + public Date getHandovershifttime() { | ||
64 | + return handovershifttime; | ||
65 | + } | ||
66 | + | ||
67 | + public void setHandovershifttime(Date handovershifttime) { | ||
68 | + this.handovershifttime = handovershifttime; | ||
69 | + } | ||
70 | + | ||
71 | + public String getPubliclighting() { | ||
72 | + return publiclighting; | ||
73 | + } | ||
74 | + | ||
75 | + public void setPubliclighting(String publiclighting) { | ||
76 | + this.publiclighting = publiclighting == null ? null : publiclighting.trim(); | ||
77 | + } | ||
78 | + | ||
79 | + public String getCarpark() { | ||
80 | + return carpark; | ||
81 | + } | ||
82 | + | ||
83 | + public void setCarpark(String carpark) { | ||
84 | + this.carpark = carpark == null ? null : carpark.trim(); | ||
85 | + } | ||
86 | + | ||
87 | + public String getCampusafforestation() { | ||
88 | + return campusafforestation; | ||
89 | + } | ||
90 | + | ||
91 | + public void setCampusafforestation(String campusafforestation) { | ||
92 | + this.campusafforestation = campusafforestation == null ? null : campusafforestation.trim(); | ||
93 | + } | ||
94 | + | ||
95 | + public String getFirefightingequipment() { | ||
96 | + return firefightingequipment; | ||
97 | + } | ||
98 | + | ||
99 | + public void setFirefightingequipment(String firefightingequipment) { | ||
100 | + this.firefightingequipment = firefightingequipment == null ? null : firefightingequipment.trim(); | ||
101 | + } | ||
102 | + | ||
103 | + public String getEquipmentfacilities() { | ||
104 | + return equipmentfacilities; | ||
105 | + } | ||
106 | + | ||
107 | + public void setEquipmentfacilities(String equipmentfacilities) { | ||
108 | + this.equipmentfacilities = equipmentfacilities == null ? null : equipmentfacilities.trim(); | ||
109 | + } | ||
110 | + | ||
111 | + public String getPublicsanitation() { | ||
112 | + return publicsanitation; | ||
113 | + } | ||
114 | + | ||
115 | + public void setPublicsanitation(String publicsanitation) { | ||
116 | + this.publicsanitation = publicsanitation == null ? null : publicsanitation.trim(); | ||
117 | + } | ||
118 | + | ||
119 | + public String getProperty() { | ||
120 | + return property; | ||
121 | + } | ||
122 | + | ||
123 | + public void setProperty(String property) { | ||
124 | + this.property = property == null ? null : property.trim(); | ||
125 | + } | ||
126 | + | ||
127 | + public String getSecuritydanger() { | ||
128 | + return securitydanger; | ||
129 | + } | ||
130 | + | ||
131 | + public void setSecuritydanger(String securitydanger) { | ||
132 | + this.securitydanger = securitydanger == null ? null : securitydanger.trim(); | ||
133 | + } | ||
134 | + | ||
135 | + public String getRests() { | ||
136 | + return rests; | ||
137 | + } | ||
138 | + | ||
139 | + public void setRests(String rests) { | ||
140 | + this.rests = rests == null ? null : rests.trim(); | ||
141 | + } | ||
142 | + | ||
143 | + public String getHandovermatters() { | ||
144 | + return handovermatters; | ||
145 | + } | ||
146 | + | ||
147 | + public void setHandovermatters(String handovermatters) { | ||
148 | + this.handovermatters = handovermatters == null ? null : handovermatters.trim(); | ||
149 | + } | ||
150 | + | ||
151 | + public Date getCreatime() { | ||
152 | + return creatime; | ||
153 | + } | ||
154 | + | ||
155 | + public void setCreatime(Date creatime) { | ||
156 | + this.creatime = creatime; | ||
157 | + } | ||
158 | + | ||
159 | + public Integer getUserid() { | ||
160 | + return userid; | ||
161 | + } | ||
162 | + | ||
163 | + public void setUserid(Integer userid) { | ||
164 | + this.userid = userid; | ||
165 | + } | ||
166 | + | ||
167 | + public String getRemberk1() { | ||
168 | + return remberk1; | ||
169 | + } | ||
170 | + | ||
171 | + public void setRemberk1(String remberk1) { | ||
172 | + this.remberk1 = remberk1 == null ? null : remberk1.trim(); | ||
173 | + } | ||
174 | + | ||
175 | + public String getRemberk2() { | ||
176 | + return remberk2; | ||
177 | + } | ||
178 | + | ||
179 | + public void setRemberk2(String remberk2) { | ||
180 | + this.remberk2 = remberk2 == null ? null : remberk2.trim(); | ||
181 | + } | ||
182 | + | ||
183 | + public String getRemberk3() { | ||
184 | + return remberk3; | ||
185 | + } | ||
186 | + | ||
187 | + public void setRemberk3(String remberk3) { | ||
188 | + this.remberk3 = remberk3 == null ? null : remberk3.trim(); | ||
189 | + } | ||
190 | +} |
1 | +package com.tianbo.warehouse.model; | ||
2 | + | ||
3 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
4 | +import org.springframework.format.annotation.DateTimeFormat; | ||
5 | + | ||
6 | +import java.util.Date; | ||
7 | + | ||
8 | +public class StaffApartmentSpareKey { | ||
9 | + private String id; | ||
10 | + | ||
11 | + @DateTimeFormat(pattern = "yyyy-MM-dd") | ||
12 | + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
13 | + private Date usedate; | ||
14 | + | ||
15 | + private String roomnum; | ||
16 | + | ||
17 | + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
18 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
19 | + private Date usetime; | ||
20 | + | ||
21 | + private String staffname; | ||
22 | + | ||
23 | + private String dept; | ||
24 | + | ||
25 | + private String phone; | ||
26 | + | ||
27 | + private String ictype; | ||
28 | + | ||
29 | + private String iccard; | ||
30 | + | ||
31 | + private String roomduty; | ||
32 | + | ||
33 | + private String remark1; | ||
34 | + | ||
35 | + private String remark2; | ||
36 | + | ||
37 | + private String remark3; | ||
38 | + | ||
39 | + private Integer createby; | ||
40 | + | ||
41 | + private Date createtime; | ||
42 | + | ||
43 | + public String getId() { | ||
44 | + return id; | ||
45 | + } | ||
46 | + | ||
47 | + public void setId(String id) { | ||
48 | + this.id = id == null ? null : id.trim(); | ||
49 | + } | ||
50 | + | ||
51 | + public Date getUsedate() { | ||
52 | + return usedate; | ||
53 | + } | ||
54 | + | ||
55 | + public void setUsedate(Date usedate) { | ||
56 | + this.usedate = usedate; | ||
57 | + } | ||
58 | + | ||
59 | + public String getRoomnum() { | ||
60 | + return roomnum; | ||
61 | + } | ||
62 | + | ||
63 | + public void setRoomnum(String roomnum) { | ||
64 | + this.roomnum = roomnum == null ? null : roomnum.trim(); | ||
65 | + } | ||
66 | + | ||
67 | + public Date getUsetime() { | ||
68 | + return usetime; | ||
69 | + } | ||
70 | + | ||
71 | + public void setUsetime(Date usetime) { | ||
72 | + this.usetime = usetime; | ||
73 | + } | ||
74 | + | ||
75 | + public String getStaffname() { | ||
76 | + return staffname; | ||
77 | + } | ||
78 | + | ||
79 | + public void setStaffname(String staffname) { | ||
80 | + this.staffname = staffname == null ? null : staffname.trim(); | ||
81 | + } | ||
82 | + | ||
83 | + public String getDept() { | ||
84 | + return dept; | ||
85 | + } | ||
86 | + | ||
87 | + public void setDept(String dept) { | ||
88 | + this.dept = dept == null ? null : dept.trim(); | ||
89 | + } | ||
90 | + | ||
91 | + public String getPhone() { | ||
92 | + return phone; | ||
93 | + } | ||
94 | + | ||
95 | + public void setPhone(String phone) { | ||
96 | + this.phone = phone == null ? null : phone.trim(); | ||
97 | + } | ||
98 | + | ||
99 | + public String getIctype() { | ||
100 | + return ictype; | ||
101 | + } | ||
102 | + | ||
103 | + public void setIctype(String ictype) { | ||
104 | + this.ictype = ictype == null ? null : ictype.trim(); | ||
105 | + } | ||
106 | + | ||
107 | + public String getIccard() { | ||
108 | + return iccard; | ||
109 | + } | ||
110 | + | ||
111 | + public void setIccard(String iccard) { | ||
112 | + this.iccard = iccard == null ? null : iccard.trim(); | ||
113 | + } | ||
114 | + | ||
115 | + public String getRoomduty() { | ||
116 | + return roomduty; | ||
117 | + } | ||
118 | + | ||
119 | + public void setRoomduty(String roomduty) { | ||
120 | + this.roomduty = roomduty == null ? null : roomduty.trim(); | ||
121 | + } | ||
122 | + | ||
123 | + public String getRemark1() { | ||
124 | + return remark1; | ||
125 | + } | ||
126 | + | ||
127 | + public void setRemark1(String remark1) { | ||
128 | + this.remark1 = remark1 == null ? null : remark1.trim(); | ||
129 | + } | ||
130 | + | ||
131 | + public String getRemark2() { | ||
132 | + return remark2; | ||
133 | + } | ||
134 | + | ||
135 | + public void setRemark2(String remark2) { | ||
136 | + this.remark2 = remark2 == null ? null : remark2.trim(); | ||
137 | + } | ||
138 | + | ||
139 | + public String getRemark3() { | ||
140 | + return remark3; | ||
141 | + } | ||
142 | + | ||
143 | + public void setRemark3(String remark3) { | ||
144 | + this.remark3 = remark3 == null ? null : remark3.trim(); | ||
145 | + } | ||
146 | + | ||
147 | + public Integer getCreateby() { | ||
148 | + return createby; | ||
149 | + } | ||
150 | + | ||
151 | + public void setCreateby(Integer createby) { | ||
152 | + this.createby = createby; | ||
153 | + } | ||
154 | + | ||
155 | + public Date getCreatetime() { | ||
156 | + return createtime; | ||
157 | + } | ||
158 | + | ||
159 | + public void setCreatetime(Date createtime) { | ||
160 | + this.createtime = createtime; | ||
161 | + } | ||
162 | +} |
1 | +package com.tianbo.warehouse.model; | ||
2 | + | ||
3 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
4 | +import org.springframework.format.annotation.DateTimeFormat; | ||
5 | + | ||
6 | +import java.util.Date; | ||
7 | + | ||
8 | +public class StaffSecurityInspection { | ||
9 | + private String securityInspectionId; | ||
10 | + | ||
11 | + private String securityInspectionName; | ||
12 | + | ||
13 | + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
14 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
15 | + private Date securityInspectionDate; | ||
16 | + | ||
17 | + private String fireName; | ||
18 | + | ||
19 | + private String securityElectro; | ||
20 | + | ||
21 | + private String fireproofing; | ||
22 | + | ||
23 | + private String doubtfulPerson; | ||
24 | + | ||
25 | + private String violationsCar; | ||
26 | + | ||
27 | + private String builders; | ||
28 | + | ||
29 | + private String otherSituations; | ||
30 | + | ||
31 | + private Integer userId; | ||
32 | + | ||
33 | + private String realname; | ||
34 | + | ||
35 | + private Date optTime; | ||
36 | + | ||
37 | + public String getSecurityInspectionId() { | ||
38 | + return securityInspectionId; | ||
39 | + } | ||
40 | + | ||
41 | + public void setSecurityInspectionId(String securityInspectionId) { | ||
42 | + this.securityInspectionId = securityInspectionId == null ? null : securityInspectionId.trim(); | ||
43 | + } | ||
44 | + | ||
45 | + public String getSecurityInspectionName() { | ||
46 | + return securityInspectionName; | ||
47 | + } | ||
48 | + | ||
49 | + public void setSecurityInspectionName(String securityInspectionName) { | ||
50 | + this.securityInspectionName = securityInspectionName == null ? null : securityInspectionName.trim(); | ||
51 | + } | ||
52 | + | ||
53 | + public Date getSecurityInspectionDate() { | ||
54 | + return securityInspectionDate; | ||
55 | + } | ||
56 | + | ||
57 | + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss") | ||
58 | + public void setSecurityInspectionDate(Date securityInspectionDate) { | ||
59 | + this.securityInspectionDate = securityInspectionDate; | ||
60 | + } | ||
61 | + | ||
62 | + public String getFireName() { | ||
63 | + return fireName; | ||
64 | + } | ||
65 | + | ||
66 | + public void setFireName(String fireName) { | ||
67 | + this.fireName = fireName == null ? null : fireName.trim(); | ||
68 | + } | ||
69 | + | ||
70 | + public String getSecurityElectro() { | ||
71 | + return securityElectro; | ||
72 | + } | ||
73 | + | ||
74 | + public void setSecurityElectro(String securityElectro) { | ||
75 | + this.securityElectro = securityElectro == null ? null : securityElectro.trim(); | ||
76 | + } | ||
77 | + | ||
78 | + public String getFireproofing() { | ||
79 | + return fireproofing; | ||
80 | + } | ||
81 | + | ||
82 | + public void setFireproofing(String fireproofing) { | ||
83 | + this.fireproofing = fireproofing == null ? null : fireproofing.trim(); | ||
84 | + } | ||
85 | + | ||
86 | + public String getDoubtfulPerson() { | ||
87 | + return doubtfulPerson; | ||
88 | + } | ||
89 | + | ||
90 | + public void setDoubtfulPerson(String doubtfulPerson) { | ||
91 | + this.doubtfulPerson = doubtfulPerson == null ? null : doubtfulPerson.trim(); | ||
92 | + } | ||
93 | + | ||
94 | + public String getViolationsCar() { | ||
95 | + return violationsCar; | ||
96 | + } | ||
97 | + | ||
98 | + public void setViolationsCar(String violationsCar) { | ||
99 | + this.violationsCar = violationsCar == null ? null : violationsCar.trim(); | ||
100 | + } | ||
101 | + | ||
102 | + public String getBuilders() { | ||
103 | + return builders; | ||
104 | + } | ||
105 | + | ||
106 | + public void setBuilders(String builders) { | ||
107 | + this.builders = builders == null ? null : builders.trim(); | ||
108 | + } | ||
109 | + | ||
110 | + public String getOtherSituations() { | ||
111 | + return otherSituations; | ||
112 | + } | ||
113 | + | ||
114 | + public void setOtherSituations(String otherSituations) { | ||
115 | + this.otherSituations = otherSituations == null ? null : otherSituations.trim(); | ||
116 | + } | ||
117 | + | ||
118 | + public Integer getUserId() { | ||
119 | + return userId; | ||
120 | + } | ||
121 | + | ||
122 | + public void setUserId(Integer userId) { | ||
123 | + this.userId = userId; | ||
124 | + } | ||
125 | + | ||
126 | + public String getRealname() { | ||
127 | + return realname; | ||
128 | + } | ||
129 | + | ||
130 | + public void setRealname(String realname) { | ||
131 | + this.realname = realname == null ? null : realname.trim(); | ||
132 | + } | ||
133 | + | ||
134 | + public Date getOptTime() { | ||
135 | + return optTime; | ||
136 | + } | ||
137 | + | ||
138 | + public void setOptTime(Date optTime) { | ||
139 | + this.optTime = optTime; | ||
140 | + } | ||
141 | +} |
src/main/java/com/tianbo/warehouse/model/T_ETL_MESSAGE.java
100644 → 100755
src/main/java/com/tianbo/warehouse/model/USERS.java
100644 → 100755
@@ -39,7 +39,7 @@ public class USERS implements UserDetails { | @@ -39,7 +39,7 @@ public class USERS implements UserDetails { | ||
39 | 39 | ||
40 | private Boolean state; | 40 | private Boolean state; |
41 | 41 | ||
42 | - @Length(min = 11, max = 11, message = "mobilephone 长度必须为11位") | 42 | +// @Length(min = 11, max = 11, message = "mobilephone 长度必须为11位") |
43 | private String mobilephone; | 43 | private String mobilephone; |
44 | 44 | ||
45 | private Date creattime; | 45 | private Date creattime; |
@@ -49,7 +49,7 @@ public class USERS implements UserDetails { | @@ -49,7 +49,7 @@ public class USERS implements UserDetails { | ||
49 | private String userface; | 49 | private String userface; |
50 | 50 | ||
51 | private String realname; | 51 | private String realname; |
52 | - @Pattern(regexp="[a-za-z0-9._%+-]+@[a-za-z0-9.-]+\\.[a-za-z]{2,4}", message="邮件格式错误") | 52 | +// @Pattern(regexp="[a-za-z0-9._%+-]+@[a-za-z0-9.-]+\\.[a-za-z]{2,4}", message="邮件格式错误") |
53 | private String email; | 53 | private String email; |
54 | 54 | ||
55 | private Integer age; | 55 | private Integer age; |
src/main/java/com/tianbo/warehouse/model/UserRole.java
100644 → 100755
1 | +package com.tianbo.warehouse.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class WaterStationsPatrol { | ||
6 | + private String id; | ||
7 | + | ||
8 | + private String checkprojectcontrolrommwatersupplysystem; | ||
9 | + | ||
10 | + private String checkprojectcontrolrommsecuritysystem; | ||
11 | + | ||
12 | + private String checkprojectcontrolrommrunningrecord; | ||
13 | + | ||
14 | + private String checkprojectcontrolrommdocumentholder; | ||
15 | + | ||
16 | + private String checkprojectcontrolrommground; | ||
17 | + | ||
18 | + private String checkprojectcontrolrommresponsibleperson; | ||
19 | + | ||
20 | + private String checkprojectcontrolrommnote; | ||
21 | + | ||
22 | + private String checkprojectfrequencyconversionshow; | ||
23 | + | ||
24 | + private String checkprojectfrequencyconversionclose; | ||
25 | + | ||
26 | + private String checkprojectfrequencyconversionsanitation; | ||
27 | + | ||
28 | + private String checkprojectfrequencyconversionresponsibleperson; | ||
29 | + | ||
30 | + private String checkprojectfrequencyconversionnote; | ||
31 | + | ||
32 | + private String checkprojectmeterbetweenturbidityinstrumentpowersupply; | ||
33 | + | ||
34 | + private String checkprojectmeterbetweenturbidityinstrumentshow; | ||
35 | + | ||
36 | + private String checkprojectmeterbetweenturbidityinstrumentappearance; | ||
37 | + | ||
38 | + private String checkprojectmeterbetweenturbidityinstrumentrange; | ||
39 | + | ||
40 | + private String checkprojectmeterbetweenturbidityinstrumentdetection; | ||
41 | + | ||
42 | + private String checkprojectmeterbetweenturbidityinstrumentresponsibleperson; | ||
43 | + | ||
44 | + private String checkprojectmeterbetweenturbidityinstrumentnote; | ||
45 | + | ||
46 | + private String checkprojectmeterbetweenflowmeterpowersupply; | ||
47 | + | ||
48 | + private String checkprojectmeterbetweenflowmetershow; | ||
49 | + | ||
50 | + private String checkprojectmeterbetweenflowmeterappearance; | ||
51 | + | ||
52 | + private String checkprojectmeterbetweenflowmeterresponsibleperson; | ||
53 | + | ||
54 | + private String checkprojectmeterbetweenflowmeternote; | ||
55 | + | ||
56 | + private String residualchlorineinstrumentpipeline; | ||
57 | + | ||
58 | + private String residualchlorineinstrumentpowersupply; | ||
59 | + | ||
60 | + private String residualchlorineinstrumentshow; | ||
61 | + | ||
62 | + private String residualchlorineinstrumentappearance; | ||
63 | + | ||
64 | + private String residualchlorineinstrumentpipelinmakewater; | ||
65 | + | ||
66 | + private String residualchlorineinstrumentequipment; | ||
67 | + | ||
68 | + private String residualchlorineinstrumentgroundsanitation; | ||
69 | + | ||
70 | + private String residualchlorineinstrumentresponsibleperson; | ||
71 | + | ||
72 | + private String residualchlorineinstrumentnote; | ||
73 | + | ||
74 | + private String boosterpumproomwaterpump; | ||
75 | + | ||
76 | + private String boosterpumproombearing; | ||
77 | + | ||
78 | + private String boosterpumproomthevalue; | ||
79 | + | ||
80 | + private String boosterpumproompumpbody; | ||
81 | + | ||
82 | + private String boosterpumproomnameplate; | ||
83 | + | ||
84 | + private String boosterpumproompacking; | ||
85 | + | ||
86 | + private String boosterpumproomshow; | ||
87 | + | ||
88 | + private String boosterpumproomfan; | ||
89 | + | ||
90 | + private String boosterpumproomdrainage; | ||
91 | + | ||
92 | + private String boosterpumproomsanitation; | ||
93 | + | ||
94 | + private String boosterpumproomresponsibleperson; | ||
95 | + | ||
96 | + private String boosterpumproomnote; | ||
97 | + | ||
98 | + private String clearwaterreserviorsstairs; | ||
99 | + | ||
100 | + private String clearwaterreserviorsvent; | ||
101 | + | ||
102 | + private String clearwaterreserviorspoolroof; | ||
103 | + | ||
104 | + private String clearwaterreserviorssanitation; | ||
105 | + | ||
106 | + private String clearwaterreserviorspumpbody; | ||
107 | + | ||
108 | + private String clearwaterreserviorsresponsibleperson; | ||
109 | + | ||
110 | + private String clearwaterreserviorsnote; | ||
111 | + | ||
112 | + private String betweenchlorineequipment; | ||
113 | + | ||
114 | + private String betweenchlorinepipe; | ||
115 | + | ||
116 | + private String betweenchlorinedosingpump; | ||
117 | + | ||
118 | + private String betweenchlorinetraffic; | ||
119 | + | ||
120 | + private String betweenchlorinefan; | ||
121 | + | ||
122 | + private String betweenchlorinesanitation; | ||
123 | + | ||
124 | + private String betweenchlorineresponsibleperson; | ||
125 | + | ||
126 | + private String betweenchlorinenote; | ||
127 | + | ||
128 | + private String groundenvironmentwelllids; | ||
129 | + | ||
130 | + private String groundenvironmentdrainagen; | ||
131 | + | ||
132 | + private String groundenvironmentwatersupply; | ||
133 | + | ||
134 | + private String groundenvironmentcable; | ||
135 | + | ||
136 | + private String groundenvironmentroad; | ||
137 | + | ||
138 | + private String groundenvironmentresponsibleperson; | ||
139 | + | ||
140 | + private String groundenvironmentnote; | ||
141 | + | ||
142 | + private String groundsecurityillegal; | ||
143 | + | ||
144 | + private String groundsecurityfire; | ||
145 | + | ||
146 | + private String groundsecurityrats; | ||
147 | + | ||
148 | + private String groundsecuritysuspiciouspersonnel; | ||
149 | + | ||
150 | + private String groundsecurityresponsibleperson; | ||
151 | + | ||
152 | + private String groundsecuritynote; | ||
153 | + | ||
154 | + private String securitytoolemergency; | ||
155 | + | ||
156 | + private String securitytoolfloodcontroland; | ||
157 | + | ||
158 | + private String securitytoolprotective; | ||
159 | + | ||
160 | + private String securitytoolmainteance; | ||
161 | + | ||
162 | + private String securitytoolresponsibleperson; | ||
163 | + | ||
164 | + private String securitytoolnote; | ||
165 | + | ||
166 | + private Integer userid; | ||
167 | + | ||
168 | + private Date creattime; | ||
169 | + | ||
170 | + private String reamke1; | ||
171 | + | ||
172 | + private String reamke2; | ||
173 | + | ||
174 | + private String reamke3; | ||
175 | + | ||
176 | + public String getId() { | ||
177 | + return id; | ||
178 | + } | ||
179 | + | ||
180 | + public void setId(String id) { | ||
181 | + this.id = id == null ? null : id.trim(); | ||
182 | + } | ||
183 | + | ||
184 | + public String getCheckprojectcontrolrommwatersupplysystem() { | ||
185 | + return checkprojectcontrolrommwatersupplysystem; | ||
186 | + } | ||
187 | + | ||
188 | + public void setCheckprojectcontrolrommwatersupplysystem(String checkprojectcontrolrommwatersupplysystem) { | ||
189 | + this.checkprojectcontrolrommwatersupplysystem = checkprojectcontrolrommwatersupplysystem == null ? null : checkprojectcontrolrommwatersupplysystem.trim(); | ||
190 | + } | ||
191 | + | ||
192 | + public String getCheckprojectcontrolrommsecuritysystem() { | ||
193 | + return checkprojectcontrolrommsecuritysystem; | ||
194 | + } | ||
195 | + | ||
196 | + public void setCheckprojectcontrolrommsecuritysystem(String checkprojectcontrolrommsecuritysystem) { | ||
197 | + this.checkprojectcontrolrommsecuritysystem = checkprojectcontrolrommsecuritysystem == null ? null : checkprojectcontrolrommsecuritysystem.trim(); | ||
198 | + } | ||
199 | + | ||
200 | + public String getCheckprojectcontrolrommrunningrecord() { | ||
201 | + return checkprojectcontrolrommrunningrecord; | ||
202 | + } | ||
203 | + | ||
204 | + public void setCheckprojectcontrolrommrunningrecord(String checkprojectcontrolrommrunningrecord) { | ||
205 | + this.checkprojectcontrolrommrunningrecord = checkprojectcontrolrommrunningrecord == null ? null : checkprojectcontrolrommrunningrecord.trim(); | ||
206 | + } | ||
207 | + | ||
208 | + public String getCheckprojectcontrolrommdocumentholder() { | ||
209 | + return checkprojectcontrolrommdocumentholder; | ||
210 | + } | ||
211 | + | ||
212 | + public void setCheckprojectcontrolrommdocumentholder(String checkprojectcontrolrommdocumentholder) { | ||
213 | + this.checkprojectcontrolrommdocumentholder = checkprojectcontrolrommdocumentholder == null ? null : checkprojectcontrolrommdocumentholder.trim(); | ||
214 | + } | ||
215 | + | ||
216 | + public String getCheckprojectcontrolrommground() { | ||
217 | + return checkprojectcontrolrommground; | ||
218 | + } | ||
219 | + | ||
220 | + public void setCheckprojectcontrolrommground(String checkprojectcontrolrommground) { | ||
221 | + this.checkprojectcontrolrommground = checkprojectcontrolrommground == null ? null : checkprojectcontrolrommground.trim(); | ||
222 | + } | ||
223 | + | ||
224 | + public String getCheckprojectcontrolrommresponsibleperson() { | ||
225 | + return checkprojectcontrolrommresponsibleperson; | ||
226 | + } | ||
227 | + | ||
228 | + public void setCheckprojectcontrolrommresponsibleperson(String checkprojectcontrolrommresponsibleperson) { | ||
229 | + this.checkprojectcontrolrommresponsibleperson = checkprojectcontrolrommresponsibleperson == null ? null : checkprojectcontrolrommresponsibleperson.trim(); | ||
230 | + } | ||
231 | + | ||
232 | + public String getCheckprojectcontrolrommnote() { | ||
233 | + return checkprojectcontrolrommnote; | ||
234 | + } | ||
235 | + | ||
236 | + public void setCheckprojectcontrolrommnote(String checkprojectcontrolrommnote) { | ||
237 | + this.checkprojectcontrolrommnote = checkprojectcontrolrommnote == null ? null : checkprojectcontrolrommnote.trim(); | ||
238 | + } | ||
239 | + | ||
240 | + public String getCheckprojectfrequencyconversionshow() { | ||
241 | + return checkprojectfrequencyconversionshow; | ||
242 | + } | ||
243 | + | ||
244 | + public void setCheckprojectfrequencyconversionshow(String checkprojectfrequencyconversionshow) { | ||
245 | + this.checkprojectfrequencyconversionshow = checkprojectfrequencyconversionshow == null ? null : checkprojectfrequencyconversionshow.trim(); | ||
246 | + } | ||
247 | + | ||
248 | + public String getCheckprojectfrequencyconversionclose() { | ||
249 | + return checkprojectfrequencyconversionclose; | ||
250 | + } | ||
251 | + | ||
252 | + public void setCheckprojectfrequencyconversionclose(String checkprojectfrequencyconversionclose) { | ||
253 | + this.checkprojectfrequencyconversionclose = checkprojectfrequencyconversionclose == null ? null : checkprojectfrequencyconversionclose.trim(); | ||
254 | + } | ||
255 | + | ||
256 | + public String getCheckprojectfrequencyconversionsanitation() { | ||
257 | + return checkprojectfrequencyconversionsanitation; | ||
258 | + } | ||
259 | + | ||
260 | + public void setCheckprojectfrequencyconversionsanitation(String checkprojectfrequencyconversionsanitation) { | ||
261 | + this.checkprojectfrequencyconversionsanitation = checkprojectfrequencyconversionsanitation == null ? null : checkprojectfrequencyconversionsanitation.trim(); | ||
262 | + } | ||
263 | + | ||
264 | + public String getCheckprojectfrequencyconversionresponsibleperson() { | ||
265 | + return checkprojectfrequencyconversionresponsibleperson; | ||
266 | + } | ||
267 | + | ||
268 | + public void setCheckprojectfrequencyconversionresponsibleperson(String checkprojectfrequencyconversionresponsibleperson) { | ||
269 | + this.checkprojectfrequencyconversionresponsibleperson = checkprojectfrequencyconversionresponsibleperson == null ? null : checkprojectfrequencyconversionresponsibleperson.trim(); | ||
270 | + } | ||
271 | + | ||
272 | + public String getCheckprojectfrequencyconversionnote() { | ||
273 | + return checkprojectfrequencyconversionnote; | ||
274 | + } | ||
275 | + | ||
276 | + public void setCheckprojectfrequencyconversionnote(String checkprojectfrequencyconversionnote) { | ||
277 | + this.checkprojectfrequencyconversionnote = checkprojectfrequencyconversionnote == null ? null : checkprojectfrequencyconversionnote.trim(); | ||
278 | + } | ||
279 | + | ||
280 | + public String getCheckprojectmeterbetweenturbidityinstrumentpowersupply() { | ||
281 | + return checkprojectmeterbetweenturbidityinstrumentpowersupply; | ||
282 | + } | ||
283 | + | ||
284 | + public void setCheckprojectmeterbetweenturbidityinstrumentpowersupply(String checkprojectmeterbetweenturbidityinstrumentpowersupply) { | ||
285 | + this.checkprojectmeterbetweenturbidityinstrumentpowersupply = checkprojectmeterbetweenturbidityinstrumentpowersupply == null ? null : checkprojectmeterbetweenturbidityinstrumentpowersupply.trim(); | ||
286 | + } | ||
287 | + | ||
288 | + public String getCheckprojectmeterbetweenturbidityinstrumentshow() { | ||
289 | + return checkprojectmeterbetweenturbidityinstrumentshow; | ||
290 | + } | ||
291 | + | ||
292 | + public void setCheckprojectmeterbetweenturbidityinstrumentshow(String checkprojectmeterbetweenturbidityinstrumentshow) { | ||
293 | + this.checkprojectmeterbetweenturbidityinstrumentshow = checkprojectmeterbetweenturbidityinstrumentshow == null ? null : checkprojectmeterbetweenturbidityinstrumentshow.trim(); | ||
294 | + } | ||
295 | + | ||
296 | + public String getCheckprojectmeterbetweenturbidityinstrumentappearance() { | ||
297 | + return checkprojectmeterbetweenturbidityinstrumentappearance; | ||
298 | + } | ||
299 | + | ||
300 | + public void setCheckprojectmeterbetweenturbidityinstrumentappearance(String checkprojectmeterbetweenturbidityinstrumentappearance) { | ||
301 | + this.checkprojectmeterbetweenturbidityinstrumentappearance = checkprojectmeterbetweenturbidityinstrumentappearance == null ? null : checkprojectmeterbetweenturbidityinstrumentappearance.trim(); | ||
302 | + } | ||
303 | + | ||
304 | + public String getCheckprojectmeterbetweenturbidityinstrumentrange() { | ||
305 | + return checkprojectmeterbetweenturbidityinstrumentrange; | ||
306 | + } | ||
307 | + | ||
308 | + public void setCheckprojectmeterbetweenturbidityinstrumentrange(String checkprojectmeterbetweenturbidityinstrumentrange) { | ||
309 | + this.checkprojectmeterbetweenturbidityinstrumentrange = checkprojectmeterbetweenturbidityinstrumentrange == null ? null : checkprojectmeterbetweenturbidityinstrumentrange.trim(); | ||
310 | + } | ||
311 | + | ||
312 | + public String getCheckprojectmeterbetweenturbidityinstrumentdetection() { | ||
313 | + return checkprojectmeterbetweenturbidityinstrumentdetection; | ||
314 | + } | ||
315 | + | ||
316 | + public void setCheckprojectmeterbetweenturbidityinstrumentdetection(String checkprojectmeterbetweenturbidityinstrumentdetection) { | ||
317 | + this.checkprojectmeterbetweenturbidityinstrumentdetection = checkprojectmeterbetweenturbidityinstrumentdetection == null ? null : checkprojectmeterbetweenturbidityinstrumentdetection.trim(); | ||
318 | + } | ||
319 | + | ||
320 | + public String getCheckprojectmeterbetweenturbidityinstrumentresponsibleperson() { | ||
321 | + return checkprojectmeterbetweenturbidityinstrumentresponsibleperson; | ||
322 | + } | ||
323 | + | ||
324 | + public void setCheckprojectmeterbetweenturbidityinstrumentresponsibleperson(String checkprojectmeterbetweenturbidityinstrumentresponsibleperson) { | ||
325 | + this.checkprojectmeterbetweenturbidityinstrumentresponsibleperson = checkprojectmeterbetweenturbidityinstrumentresponsibleperson == null ? null : checkprojectmeterbetweenturbidityinstrumentresponsibleperson.trim(); | ||
326 | + } | ||
327 | + | ||
328 | + public String getCheckprojectmeterbetweenturbidityinstrumentnote() { | ||
329 | + return checkprojectmeterbetweenturbidityinstrumentnote; | ||
330 | + } | ||
331 | + | ||
332 | + public void setCheckprojectmeterbetweenturbidityinstrumentnote(String checkprojectmeterbetweenturbidityinstrumentnote) { | ||
333 | + this.checkprojectmeterbetweenturbidityinstrumentnote = checkprojectmeterbetweenturbidityinstrumentnote == null ? null : checkprojectmeterbetweenturbidityinstrumentnote.trim(); | ||
334 | + } | ||
335 | + | ||
336 | + public String getCheckprojectmeterbetweenflowmeterpowersupply() { | ||
337 | + return checkprojectmeterbetweenflowmeterpowersupply; | ||
338 | + } | ||
339 | + | ||
340 | + public void setCheckprojectmeterbetweenflowmeterpowersupply(String checkprojectmeterbetweenflowmeterpowersupply) { | ||
341 | + this.checkprojectmeterbetweenflowmeterpowersupply = checkprojectmeterbetweenflowmeterpowersupply == null ? null : checkprojectmeterbetweenflowmeterpowersupply.trim(); | ||
342 | + } | ||
343 | + | ||
344 | + public String getCheckprojectmeterbetweenflowmetershow() { | ||
345 | + return checkprojectmeterbetweenflowmetershow; | ||
346 | + } | ||
347 | + | ||
348 | + public void setCheckprojectmeterbetweenflowmetershow(String checkprojectmeterbetweenflowmetershow) { | ||
349 | + this.checkprojectmeterbetweenflowmetershow = checkprojectmeterbetweenflowmetershow == null ? null : checkprojectmeterbetweenflowmetershow.trim(); | ||
350 | + } | ||
351 | + | ||
352 | + public String getCheckprojectmeterbetweenflowmeterappearance() { | ||
353 | + return checkprojectmeterbetweenflowmeterappearance; | ||
354 | + } | ||
355 | + | ||
356 | + public void setCheckprojectmeterbetweenflowmeterappearance(String checkprojectmeterbetweenflowmeterappearance) { | ||
357 | + this.checkprojectmeterbetweenflowmeterappearance = checkprojectmeterbetweenflowmeterappearance == null ? null : checkprojectmeterbetweenflowmeterappearance.trim(); | ||
358 | + } | ||
359 | + | ||
360 | + public String getCheckprojectmeterbetweenflowmeterresponsibleperson() { | ||
361 | + return checkprojectmeterbetweenflowmeterresponsibleperson; | ||
362 | + } | ||
363 | + | ||
364 | + public void setCheckprojectmeterbetweenflowmeterresponsibleperson(String checkprojectmeterbetweenflowmeterresponsibleperson) { | ||
365 | + this.checkprojectmeterbetweenflowmeterresponsibleperson = checkprojectmeterbetweenflowmeterresponsibleperson == null ? null : checkprojectmeterbetweenflowmeterresponsibleperson.trim(); | ||
366 | + } | ||
367 | + | ||
368 | + public String getCheckprojectmeterbetweenflowmeternote() { | ||
369 | + return checkprojectmeterbetweenflowmeternote; | ||
370 | + } | ||
371 | + | ||
372 | + public void setCheckprojectmeterbetweenflowmeternote(String checkprojectmeterbetweenflowmeternote) { | ||
373 | + this.checkprojectmeterbetweenflowmeternote = checkprojectmeterbetweenflowmeternote == null ? null : checkprojectmeterbetweenflowmeternote.trim(); | ||
374 | + } | ||
375 | + | ||
376 | + public String getResidualchlorineinstrumentpipeline() { | ||
377 | + return residualchlorineinstrumentpipeline; | ||
378 | + } | ||
379 | + | ||
380 | + public void setResidualchlorineinstrumentpipeline(String residualchlorineinstrumentpipeline) { | ||
381 | + this.residualchlorineinstrumentpipeline = residualchlorineinstrumentpipeline == null ? null : residualchlorineinstrumentpipeline.trim(); | ||
382 | + } | ||
383 | + | ||
384 | + public String getResidualchlorineinstrumentpowersupply() { | ||
385 | + return residualchlorineinstrumentpowersupply; | ||
386 | + } | ||
387 | + | ||
388 | + public void setResidualchlorineinstrumentpowersupply(String residualchlorineinstrumentpowersupply) { | ||
389 | + this.residualchlorineinstrumentpowersupply = residualchlorineinstrumentpowersupply == null ? null : residualchlorineinstrumentpowersupply.trim(); | ||
390 | + } | ||
391 | + | ||
392 | + public String getResidualchlorineinstrumentshow() { | ||
393 | + return residualchlorineinstrumentshow; | ||
394 | + } | ||
395 | + | ||
396 | + public void setResidualchlorineinstrumentshow(String residualchlorineinstrumentshow) { | ||
397 | + this.residualchlorineinstrumentshow = residualchlorineinstrumentshow == null ? null : residualchlorineinstrumentshow.trim(); | ||
398 | + } | ||
399 | + | ||
400 | + public String getResidualchlorineinstrumentappearance() { | ||
401 | + return residualchlorineinstrumentappearance; | ||
402 | + } | ||
403 | + | ||
404 | + public void setResidualchlorineinstrumentappearance(String residualchlorineinstrumentappearance) { | ||
405 | + this.residualchlorineinstrumentappearance = residualchlorineinstrumentappearance == null ? null : residualchlorineinstrumentappearance.trim(); | ||
406 | + } | ||
407 | + | ||
408 | + public String getResidualchlorineinstrumentpipelinmakewater() { | ||
409 | + return residualchlorineinstrumentpipelinmakewater; | ||
410 | + } | ||
411 | + | ||
412 | + public void setResidualchlorineinstrumentpipelinmakewater(String residualchlorineinstrumentpipelinmakewater) { | ||
413 | + this.residualchlorineinstrumentpipelinmakewater = residualchlorineinstrumentpipelinmakewater == null ? null : residualchlorineinstrumentpipelinmakewater.trim(); | ||
414 | + } | ||
415 | + | ||
416 | + public String getResidualchlorineinstrumentequipment() { | ||
417 | + return residualchlorineinstrumentequipment; | ||
418 | + } | ||
419 | + | ||
420 | + public void setResidualchlorineinstrumentequipment(String residualchlorineinstrumentequipment) { | ||
421 | + this.residualchlorineinstrumentequipment = residualchlorineinstrumentequipment == null ? null : residualchlorineinstrumentequipment.trim(); | ||
422 | + } | ||
423 | + | ||
424 | + public String getResidualchlorineinstrumentgroundsanitation() { | ||
425 | + return residualchlorineinstrumentgroundsanitation; | ||
426 | + } | ||
427 | + | ||
428 | + public void setResidualchlorineinstrumentgroundsanitation(String residualchlorineinstrumentgroundsanitation) { | ||
429 | + this.residualchlorineinstrumentgroundsanitation = residualchlorineinstrumentgroundsanitation == null ? null : residualchlorineinstrumentgroundsanitation.trim(); | ||
430 | + } | ||
431 | + | ||
432 | + public String getResidualchlorineinstrumentresponsibleperson() { | ||
433 | + return residualchlorineinstrumentresponsibleperson; | ||
434 | + } | ||
435 | + | ||
436 | + public void setResidualchlorineinstrumentresponsibleperson(String residualchlorineinstrumentresponsibleperson) { | ||
437 | + this.residualchlorineinstrumentresponsibleperson = residualchlorineinstrumentresponsibleperson == null ? null : residualchlorineinstrumentresponsibleperson.trim(); | ||
438 | + } | ||
439 | + | ||
440 | + public String getResidualchlorineinstrumentnote() { | ||
441 | + return residualchlorineinstrumentnote; | ||
442 | + } | ||
443 | + | ||
444 | + public void setResidualchlorineinstrumentnote(String residualchlorineinstrumentnote) { | ||
445 | + this.residualchlorineinstrumentnote = residualchlorineinstrumentnote == null ? null : residualchlorineinstrumentnote.trim(); | ||
446 | + } | ||
447 | + | ||
448 | + public String getBoosterpumproomwaterpump() { | ||
449 | + return boosterpumproomwaterpump; | ||
450 | + } | ||
451 | + | ||
452 | + public void setBoosterpumproomwaterpump(String boosterpumproomwaterpump) { | ||
453 | + this.boosterpumproomwaterpump = boosterpumproomwaterpump == null ? null : boosterpumproomwaterpump.trim(); | ||
454 | + } | ||
455 | + | ||
456 | + public String getBoosterpumproombearing() { | ||
457 | + return boosterpumproombearing; | ||
458 | + } | ||
459 | + | ||
460 | + public void setBoosterpumproombearing(String boosterpumproombearing) { | ||
461 | + this.boosterpumproombearing = boosterpumproombearing == null ? null : boosterpumproombearing.trim(); | ||
462 | + } | ||
463 | + | ||
464 | + public String getBoosterpumproomthevalue() { | ||
465 | + return boosterpumproomthevalue; | ||
466 | + } | ||
467 | + | ||
468 | + public void setBoosterpumproomthevalue(String boosterpumproomthevalue) { | ||
469 | + this.boosterpumproomthevalue = boosterpumproomthevalue == null ? null : boosterpumproomthevalue.trim(); | ||
470 | + } | ||
471 | + | ||
472 | + public String getBoosterpumproompumpbody() { | ||
473 | + return boosterpumproompumpbody; | ||
474 | + } | ||
475 | + | ||
476 | + public void setBoosterpumproompumpbody(String boosterpumproompumpbody) { | ||
477 | + this.boosterpumproompumpbody = boosterpumproompumpbody == null ? null : boosterpumproompumpbody.trim(); | ||
478 | + } | ||
479 | + | ||
480 | + public String getBoosterpumproomnameplate() { | ||
481 | + return boosterpumproomnameplate; | ||
482 | + } | ||
483 | + | ||
484 | + public void setBoosterpumproomnameplate(String boosterpumproomnameplate) { | ||
485 | + this.boosterpumproomnameplate = boosterpumproomnameplate == null ? null : boosterpumproomnameplate.trim(); | ||
486 | + } | ||
487 | + | ||
488 | + public String getBoosterpumproompacking() { | ||
489 | + return boosterpumproompacking; | ||
490 | + } | ||
491 | + | ||
492 | + public void setBoosterpumproompacking(String boosterpumproompacking) { | ||
493 | + this.boosterpumproompacking = boosterpumproompacking == null ? null : boosterpumproompacking.trim(); | ||
494 | + } | ||
495 | + | ||
496 | + public String getBoosterpumproomshow() { | ||
497 | + return boosterpumproomshow; | ||
498 | + } | ||
499 | + | ||
500 | + public void setBoosterpumproomshow(String boosterpumproomshow) { | ||
501 | + this.boosterpumproomshow = boosterpumproomshow == null ? null : boosterpumproomshow.trim(); | ||
502 | + } | ||
503 | + | ||
504 | + public String getBoosterpumproomfan() { | ||
505 | + return boosterpumproomfan; | ||
506 | + } | ||
507 | + | ||
508 | + public void setBoosterpumproomfan(String boosterpumproomfan) { | ||
509 | + this.boosterpumproomfan = boosterpumproomfan == null ? null : boosterpumproomfan.trim(); | ||
510 | + } | ||
511 | + | ||
512 | + public String getBoosterpumproomdrainage() { | ||
513 | + return boosterpumproomdrainage; | ||
514 | + } | ||
515 | + | ||
516 | + public void setBoosterpumproomdrainage(String boosterpumproomdrainage) { | ||
517 | + this.boosterpumproomdrainage = boosterpumproomdrainage == null ? null : boosterpumproomdrainage.trim(); | ||
518 | + } | ||
519 | + | ||
520 | + public String getBoosterpumproomsanitation() { | ||
521 | + return boosterpumproomsanitation; | ||
522 | + } | ||
523 | + | ||
524 | + public void setBoosterpumproomsanitation(String boosterpumproomsanitation) { | ||
525 | + this.boosterpumproomsanitation = boosterpumproomsanitation == null ? null : boosterpumproomsanitation.trim(); | ||
526 | + } | ||
527 | + | ||
528 | + public String getBoosterpumproomresponsibleperson() { | ||
529 | + return boosterpumproomresponsibleperson; | ||
530 | + } | ||
531 | + | ||
532 | + public void setBoosterpumproomresponsibleperson(String boosterpumproomresponsibleperson) { | ||
533 | + this.boosterpumproomresponsibleperson = boosterpumproomresponsibleperson == null ? null : boosterpumproomresponsibleperson.trim(); | ||
534 | + } | ||
535 | + | ||
536 | + public String getBoosterpumproomnote() { | ||
537 | + return boosterpumproomnote; | ||
538 | + } | ||
539 | + | ||
540 | + public void setBoosterpumproomnote(String boosterpumproomnote) { | ||
541 | + this.boosterpumproomnote = boosterpumproomnote == null ? null : boosterpumproomnote.trim(); | ||
542 | + } | ||
543 | + | ||
544 | + public String getClearwaterreserviorsstairs() { | ||
545 | + return clearwaterreserviorsstairs; | ||
546 | + } | ||
547 | + | ||
548 | + public void setClearwaterreserviorsstairs(String clearwaterreserviorsstairs) { | ||
549 | + this.clearwaterreserviorsstairs = clearwaterreserviorsstairs == null ? null : clearwaterreserviorsstairs.trim(); | ||
550 | + } | ||
551 | + | ||
552 | + public String getClearwaterreserviorsvent() { | ||
553 | + return clearwaterreserviorsvent; | ||
554 | + } | ||
555 | + | ||
556 | + public void setClearwaterreserviorsvent(String clearwaterreserviorsvent) { | ||
557 | + this.clearwaterreserviorsvent = clearwaterreserviorsvent == null ? null : clearwaterreserviorsvent.trim(); | ||
558 | + } | ||
559 | + | ||
560 | + public String getClearwaterreserviorspoolroof() { | ||
561 | + return clearwaterreserviorspoolroof; | ||
562 | + } | ||
563 | + | ||
564 | + public void setClearwaterreserviorspoolroof(String clearwaterreserviorspoolroof) { | ||
565 | + this.clearwaterreserviorspoolroof = clearwaterreserviorspoolroof == null ? null : clearwaterreserviorspoolroof.trim(); | ||
566 | + } | ||
567 | + | ||
568 | + public String getClearwaterreserviorssanitation() { | ||
569 | + return clearwaterreserviorssanitation; | ||
570 | + } | ||
571 | + | ||
572 | + public void setClearwaterreserviorssanitation(String clearwaterreserviorssanitation) { | ||
573 | + this.clearwaterreserviorssanitation = clearwaterreserviorssanitation == null ? null : clearwaterreserviorssanitation.trim(); | ||
574 | + } | ||
575 | + | ||
576 | + public String getClearwaterreserviorspumpbody() { | ||
577 | + return clearwaterreserviorspumpbody; | ||
578 | + } | ||
579 | + | ||
580 | + public void setClearwaterreserviorspumpbody(String clearwaterreserviorspumpbody) { | ||
581 | + this.clearwaterreserviorspumpbody = clearwaterreserviorspumpbody == null ? null : clearwaterreserviorspumpbody.trim(); | ||
582 | + } | ||
583 | + | ||
584 | + public String getClearwaterreserviorsresponsibleperson() { | ||
585 | + return clearwaterreserviorsresponsibleperson; | ||
586 | + } | ||
587 | + | ||
588 | + public void setClearwaterreserviorsresponsibleperson(String clearwaterreserviorsresponsibleperson) { | ||
589 | + this.clearwaterreserviorsresponsibleperson = clearwaterreserviorsresponsibleperson == null ? null : clearwaterreserviorsresponsibleperson.trim(); | ||
590 | + } | ||
591 | + | ||
592 | + public String getClearwaterreserviorsnote() { | ||
593 | + return clearwaterreserviorsnote; | ||
594 | + } | ||
595 | + | ||
596 | + public void setClearwaterreserviorsnote(String clearwaterreserviorsnote) { | ||
597 | + this.clearwaterreserviorsnote = clearwaterreserviorsnote == null ? null : clearwaterreserviorsnote.trim(); | ||
598 | + } | ||
599 | + | ||
600 | + public String getBetweenchlorineequipment() { | ||
601 | + return betweenchlorineequipment; | ||
602 | + } | ||
603 | + | ||
604 | + public void setBetweenchlorineequipment(String betweenchlorineequipment) { | ||
605 | + this.betweenchlorineequipment = betweenchlorineequipment == null ? null : betweenchlorineequipment.trim(); | ||
606 | + } | ||
607 | + | ||
608 | + public String getBetweenchlorinepipe() { | ||
609 | + return betweenchlorinepipe; | ||
610 | + } | ||
611 | + | ||
612 | + public void setBetweenchlorinepipe(String betweenchlorinepipe) { | ||
613 | + this.betweenchlorinepipe = betweenchlorinepipe == null ? null : betweenchlorinepipe.trim(); | ||
614 | + } | ||
615 | + | ||
616 | + public String getBetweenchlorinedosingpump() { | ||
617 | + return betweenchlorinedosingpump; | ||
618 | + } | ||
619 | + | ||
620 | + public void setBetweenchlorinedosingpump(String betweenchlorinedosingpump) { | ||
621 | + this.betweenchlorinedosingpump = betweenchlorinedosingpump == null ? null : betweenchlorinedosingpump.trim(); | ||
622 | + } | ||
623 | + | ||
624 | + public String getBetweenchlorinetraffic() { | ||
625 | + return betweenchlorinetraffic; | ||
626 | + } | ||
627 | + | ||
628 | + public void setBetweenchlorinetraffic(String betweenchlorinetraffic) { | ||
629 | + this.betweenchlorinetraffic = betweenchlorinetraffic == null ? null : betweenchlorinetraffic.trim(); | ||
630 | + } | ||
631 | + | ||
632 | + public String getBetweenchlorinefan() { | ||
633 | + return betweenchlorinefan; | ||
634 | + } | ||
635 | + | ||
636 | + public void setBetweenchlorinefan(String betweenchlorinefan) { | ||
637 | + this.betweenchlorinefan = betweenchlorinefan == null ? null : betweenchlorinefan.trim(); | ||
638 | + } | ||
639 | + | ||
640 | + public String getBetweenchlorinesanitation() { | ||
641 | + return betweenchlorinesanitation; | ||
642 | + } | ||
643 | + | ||
644 | + public void setBetweenchlorinesanitation(String betweenchlorinesanitation) { | ||
645 | + this.betweenchlorinesanitation = betweenchlorinesanitation == null ? null : betweenchlorinesanitation.trim(); | ||
646 | + } | ||
647 | + | ||
648 | + public String getBetweenchlorineresponsibleperson() { | ||
649 | + return betweenchlorineresponsibleperson; | ||
650 | + } | ||
651 | + | ||
652 | + public void setBetweenchlorineresponsibleperson(String betweenchlorineresponsibleperson) { | ||
653 | + this.betweenchlorineresponsibleperson = betweenchlorineresponsibleperson == null ? null : betweenchlorineresponsibleperson.trim(); | ||
654 | + } | ||
655 | + | ||
656 | + public String getBetweenchlorinenote() { | ||
657 | + return betweenchlorinenote; | ||
658 | + } | ||
659 | + | ||
660 | + public void setBetweenchlorinenote(String betweenchlorinenote) { | ||
661 | + this.betweenchlorinenote = betweenchlorinenote == null ? null : betweenchlorinenote.trim(); | ||
662 | + } | ||
663 | + | ||
664 | + public String getGroundenvironmentwelllids() { | ||
665 | + return groundenvironmentwelllids; | ||
666 | + } | ||
667 | + | ||
668 | + public void setGroundenvironmentwelllids(String groundenvironmentwelllids) { | ||
669 | + this.groundenvironmentwelllids = groundenvironmentwelllids == null ? null : groundenvironmentwelllids.trim(); | ||
670 | + } | ||
671 | + | ||
672 | + public String getGroundenvironmentdrainagen() { | ||
673 | + return groundenvironmentdrainagen; | ||
674 | + } | ||
675 | + | ||
676 | + public void setGroundenvironmentdrainagen(String groundenvironmentdrainagen) { | ||
677 | + this.groundenvironmentdrainagen = groundenvironmentdrainagen == null ? null : groundenvironmentdrainagen.trim(); | ||
678 | + } | ||
679 | + | ||
680 | + public String getGroundenvironmentwatersupply() { | ||
681 | + return groundenvironmentwatersupply; | ||
682 | + } | ||
683 | + | ||
684 | + public void setGroundenvironmentwatersupply(String groundenvironmentwatersupply) { | ||
685 | + this.groundenvironmentwatersupply = groundenvironmentwatersupply == null ? null : groundenvironmentwatersupply.trim(); | ||
686 | + } | ||
687 | + | ||
688 | + public String getGroundenvironmentcable() { | ||
689 | + return groundenvironmentcable; | ||
690 | + } | ||
691 | + | ||
692 | + public void setGroundenvironmentcable(String groundenvironmentcable) { | ||
693 | + this.groundenvironmentcable = groundenvironmentcable == null ? null : groundenvironmentcable.trim(); | ||
694 | + } | ||
695 | + | ||
696 | + public String getGroundenvironmentroad() { | ||
697 | + return groundenvironmentroad; | ||
698 | + } | ||
699 | + | ||
700 | + public void setGroundenvironmentroad(String groundenvironmentroad) { | ||
701 | + this.groundenvironmentroad = groundenvironmentroad == null ? null : groundenvironmentroad.trim(); | ||
702 | + } | ||
703 | + | ||
704 | + public String getGroundenvironmentresponsibleperson() { | ||
705 | + return groundenvironmentresponsibleperson; | ||
706 | + } | ||
707 | + | ||
708 | + public void setGroundenvironmentresponsibleperson(String groundenvironmentresponsibleperson) { | ||
709 | + this.groundenvironmentresponsibleperson = groundenvironmentresponsibleperson == null ? null : groundenvironmentresponsibleperson.trim(); | ||
710 | + } | ||
711 | + | ||
712 | + public String getGroundenvironmentnote() { | ||
713 | + return groundenvironmentnote; | ||
714 | + } | ||
715 | + | ||
716 | + public void setGroundenvironmentnote(String groundenvironmentnote) { | ||
717 | + this.groundenvironmentnote = groundenvironmentnote == null ? null : groundenvironmentnote.trim(); | ||
718 | + } | ||
719 | + | ||
720 | + public String getGroundsecurityillegal() { | ||
721 | + return groundsecurityillegal; | ||
722 | + } | ||
723 | + | ||
724 | + public void setGroundsecurityillegal(String groundsecurityillegal) { | ||
725 | + this.groundsecurityillegal = groundsecurityillegal == null ? null : groundsecurityillegal.trim(); | ||
726 | + } | ||
727 | + | ||
728 | + public String getGroundsecurityfire() { | ||
729 | + return groundsecurityfire; | ||
730 | + } | ||
731 | + | ||
732 | + public void setGroundsecurityfire(String groundsecurityfire) { | ||
733 | + this.groundsecurityfire = groundsecurityfire == null ? null : groundsecurityfire.trim(); | ||
734 | + } | ||
735 | + | ||
736 | + public String getGroundsecurityrats() { | ||
737 | + return groundsecurityrats; | ||
738 | + } | ||
739 | + | ||
740 | + public void setGroundsecurityrats(String groundsecurityrats) { | ||
741 | + this.groundsecurityrats = groundsecurityrats == null ? null : groundsecurityrats.trim(); | ||
742 | + } | ||
743 | + | ||
744 | + public String getGroundsecuritysuspiciouspersonnel() { | ||
745 | + return groundsecuritysuspiciouspersonnel; | ||
746 | + } | ||
747 | + | ||
748 | + public void setGroundsecuritysuspiciouspersonnel(String groundsecuritysuspiciouspersonnel) { | ||
749 | + this.groundsecuritysuspiciouspersonnel = groundsecuritysuspiciouspersonnel == null ? null : groundsecuritysuspiciouspersonnel.trim(); | ||
750 | + } | ||
751 | + | ||
752 | + public String getGroundsecurityresponsibleperson() { | ||
753 | + return groundsecurityresponsibleperson; | ||
754 | + } | ||
755 | + | ||
756 | + public void setGroundsecurityresponsibleperson(String groundsecurityresponsibleperson) { | ||
757 | + this.groundsecurityresponsibleperson = groundsecurityresponsibleperson == null ? null : groundsecurityresponsibleperson.trim(); | ||
758 | + } | ||
759 | + | ||
760 | + public String getGroundsecuritynote() { | ||
761 | + return groundsecuritynote; | ||
762 | + } | ||
763 | + | ||
764 | + public void setGroundsecuritynote(String groundsecuritynote) { | ||
765 | + this.groundsecuritynote = groundsecuritynote == null ? null : groundsecuritynote.trim(); | ||
766 | + } | ||
767 | + | ||
768 | + public String getSecuritytoolemergency() { | ||
769 | + return securitytoolemergency; | ||
770 | + } | ||
771 | + | ||
772 | + public void setSecuritytoolemergency(String securitytoolemergency) { | ||
773 | + this.securitytoolemergency = securitytoolemergency == null ? null : securitytoolemergency.trim(); | ||
774 | + } | ||
775 | + | ||
776 | + public String getSecuritytoolfloodcontroland() { | ||
777 | + return securitytoolfloodcontroland; | ||
778 | + } | ||
779 | + | ||
780 | + public void setSecuritytoolfloodcontroland(String securitytoolfloodcontroland) { | ||
781 | + this.securitytoolfloodcontroland = securitytoolfloodcontroland == null ? null : securitytoolfloodcontroland.trim(); | ||
782 | + } | ||
783 | + | ||
784 | + public String getSecuritytoolprotective() { | ||
785 | + return securitytoolprotective; | ||
786 | + } | ||
787 | + | ||
788 | + public void setSecuritytoolprotective(String securitytoolprotective) { | ||
789 | + this.securitytoolprotective = securitytoolprotective == null ? null : securitytoolprotective.trim(); | ||
790 | + } | ||
791 | + | ||
792 | + public String getSecuritytoolmainteance() { | ||
793 | + return securitytoolmainteance; | ||
794 | + } | ||
795 | + | ||
796 | + public void setSecuritytoolmainteance(String securitytoolmainteance) { | ||
797 | + this.securitytoolmainteance = securitytoolmainteance == null ? null : securitytoolmainteance.trim(); | ||
798 | + } | ||
799 | + | ||
800 | + public String getSecuritytoolresponsibleperson() { | ||
801 | + return securitytoolresponsibleperson; | ||
802 | + } | ||
803 | + | ||
804 | + public void setSecuritytoolresponsibleperson(String securitytoolresponsibleperson) { | ||
805 | + this.securitytoolresponsibleperson = securitytoolresponsibleperson == null ? null : securitytoolresponsibleperson.trim(); | ||
806 | + } | ||
807 | + | ||
808 | + public String getSecuritytoolnote() { | ||
809 | + return securitytoolnote; | ||
810 | + } | ||
811 | + | ||
812 | + public void setSecuritytoolnote(String securitytoolnote) { | ||
813 | + this.securitytoolnote = securitytoolnote == null ? null : securitytoolnote.trim(); | ||
814 | + } | ||
815 | + | ||
816 | + public Integer getUserid() { | ||
817 | + return userid; | ||
818 | + } | ||
819 | + | ||
820 | + public void setUserid(Integer userid) { | ||
821 | + this.userid = userid; | ||
822 | + } | ||
823 | + | ||
824 | + public Date getCreattime() { | ||
825 | + return creattime; | ||
826 | + } | ||
827 | + | ||
828 | + public void setCreattime(Date creattime) { | ||
829 | + this.creattime = creattime; | ||
830 | + } | ||
831 | + | ||
832 | + public String getReamke1() { | ||
833 | + return reamke1; | ||
834 | + } | ||
835 | + | ||
836 | + public void setReamke1(String reamke1) { | ||
837 | + this.reamke1 = reamke1 == null ? null : reamke1.trim(); | ||
838 | + } | ||
839 | + | ||
840 | + public String getReamke2() { | ||
841 | + return reamke2; | ||
842 | + } | ||
843 | + | ||
844 | + public void setReamke2(String reamke2) { | ||
845 | + this.reamke2 = reamke2 == null ? null : reamke2.trim(); | ||
846 | + } | ||
847 | + | ||
848 | + public String getReamke3() { | ||
849 | + return reamke3; | ||
850 | + } | ||
851 | + | ||
852 | + public void setReamke3(String reamke3) { | ||
853 | + this.reamke3 = reamke3 == null ? null : reamke3.trim(); | ||
854 | + } | ||
855 | +} |
src/main/java/com/tianbo/warehouse/security/MyInvocationSecurityMetadataSourceService.java
100644 → 100755
@@ -34,7 +34,7 @@ public class MyInvocationSecurityMetadataSourceService implements FilterInvocati | @@ -34,7 +34,7 @@ public class MyInvocationSecurityMetadataSourceService implements FilterInvocati | ||
34 | map = new HashMap<>(); | 34 | map = new HashMap<>(); |
35 | Collection<ConfigAttribute> array; | 35 | Collection<ConfigAttribute> array; |
36 | ConfigAttribute cfg; | 36 | ConfigAttribute cfg; |
37 | - List<PERMISSION> permissions = permissionMapper.findAll(); | 37 | + List<PERMISSION> permissions = permissionMapper.findAll(""); |
38 | for(PERMISSION permission : permissions) { | 38 | for(PERMISSION permission : permissions) { |
39 | array = new ArrayList<>(); | 39 | array = new ArrayList<>(); |
40 | 40 | ||
@@ -74,7 +74,7 @@ public class MyInvocationSecurityMetadataSourceService implements FilterInvocati | @@ -74,7 +74,7 @@ public class MyInvocationSecurityMetadataSourceService implements FilterInvocati | ||
74 | public Collection<ConfigAttribute> loadResourceDefine(){ | 74 | public Collection<ConfigAttribute> loadResourceDefine(){ |
75 | Collection<ConfigAttribute> array; | 75 | Collection<ConfigAttribute> array; |
76 | ConfigAttribute cfg; | 76 | ConfigAttribute cfg; |
77 | - List<PERMISSION> permissions = permissionMapper.findAll(); | 77 | + List<PERMISSION> permissions = permissionMapper.findAll(""); |
78 | for(PERMISSION permission : permissions) { | 78 | for(PERMISSION permission : permissions) { |
79 | array = new ArrayList<>(); | 79 | array = new ArrayList<>(); |
80 | 80 |
@@ -78,7 +78,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { | @@ -78,7 +78,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { | ||
78 | //跨域配置 | 78 | //跨域配置 |
79 | .requestMatchers(CorsUtils::isPreFlightRequest).permitAll() | 79 | .requestMatchers(CorsUtils::isPreFlightRequest).permitAll() |
80 | //管理页面只允许管理员角色访问 | 80 | //管理页面只允许管理员角色访问 |
81 | - .antMatchers("/admin/**","/role/**","/user/**").authenticated() | 81 | + .antMatchers("/admin/**","/ROLE/**","/user/**").authenticated() |
82 | //任何请求,登录后可以访问 | 82 | //任何请求,登录后可以访问 |
83 | //其余的不需要验证 | 83 | //其余的不需要验证 |
84 | .anyRequest().permitAll() | 84 | .anyRequest().permitAll() |
src/main/java/com/tianbo/warehouse/security/filter/JwtAuthenticationTokenFilter.java
100644 → 100755
src/main/java/com/tianbo/warehouse/security/handel/MyAuthenticationAccessDeniedHandler.java
100644 → 100755
src/main/java/com/tianbo/warehouse/security/handel/MyAuthenticationSuccessHandler.java
100644 → 100755
1 | package com.tianbo.warehouse.security.handel; | 1 | package com.tianbo.warehouse.security.handel; |
2 | 2 | ||
3 | +import com.alibaba.fastjson.JSON; | ||
3 | import com.fasterxml.jackson.databind.ObjectMapper; | 4 | import com.fasterxml.jackson.databind.ObjectMapper; |
4 | import com.tianbo.warehouse.bean.AuthSuccessResponse; | 5 | import com.tianbo.warehouse.bean.AuthSuccessResponse; |
5 | import com.tianbo.warehouse.model.USERS; | 6 | import com.tianbo.warehouse.model.USERS; |
7 | +import com.tianbo.warehouse.security.config.SecurityProperties; | ||
6 | import com.tianbo.warehouse.security.filter.JwtTokenUtil; | 8 | import com.tianbo.warehouse.security.filter.JwtTokenUtil; |
7 | import com.tianbo.warehouse.security.model.LoginType; | 9 | import com.tianbo.warehouse.security.model.LoginType; |
8 | import com.tianbo.warehouse.service.PermissionService; | 10 | import com.tianbo.warehouse.service.PermissionService; |
11 | +import com.tianbo.warehouse.util.RedisUtils; | ||
9 | import org.apache.commons.logging.Log; | 12 | import org.apache.commons.logging.Log; |
10 | import org.apache.commons.logging.LogFactory; | 13 | import org.apache.commons.logging.LogFactory; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 14 | import org.springframework.beans.factory.annotation.Autowired; |
12 | -import com.tianbo.warehouse.security.config.SecurityProperties; | ||
13 | import org.springframework.beans.factory.annotation.Value; | 15 | import org.springframework.beans.factory.annotation.Value; |
14 | import org.springframework.security.core.Authentication; | 16 | import org.springframework.security.core.Authentication; |
15 | import org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler; | 17 | import org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler; |
@@ -45,6 +47,8 @@ public class MyAuthenticationSuccessHandler extends SavedRequestAwareAuthenticat | @@ -45,6 +47,8 @@ public class MyAuthenticationSuccessHandler extends SavedRequestAwareAuthenticat | ||
45 | @Autowired | 47 | @Autowired |
46 | private SecurityProperties securityProperties; | 48 | private SecurityProperties securityProperties; |
47 | 49 | ||
50 | + @Autowired | ||
51 | + RedisUtils redisUtils; | ||
48 | @Override | 52 | @Override |
49 | public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws ServletException, IOException { | 53 | public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws ServletException, IOException { |
50 | logger.info("登录成功"); | 54 | logger.info("登录成功"); |
@@ -60,12 +64,16 @@ public class MyAuthenticationSuccessHandler extends SavedRequestAwareAuthenticat | @@ -60,12 +64,16 @@ public class MyAuthenticationSuccessHandler extends SavedRequestAwareAuthenticat | ||
60 | USERS loginedUser = new USERS(); | 64 | USERS loginedUser = new USERS(); |
61 | loginedUser.setUsername(user.getUsername()); | 65 | loginedUser.setUsername(user.getUsername()); |
62 | loginedUser.setUserface(user.getUserface()); | 66 | loginedUser.setUserface(user.getUserface()); |
67 | + loginedUser.setUserId(user.getUserId()); | ||
68 | + loginedUser.setRealname(user.getRealname()); | ||
63 | 69 | ||
64 | 70 | ||
65 | //设置用户的TOKEN的有效时间,时间配置在配置文件中设置 | 71 | //设置用户的TOKEN的有效时间,时间配置在配置文件中设置 |
66 | String jwtToken = JwtTokenUtil.generateToken(loginedUser.getUsername(), jwtMaxAlive); | 72 | String jwtToken = JwtTokenUtil.generateToken(loginedUser.getUsername(), jwtMaxAlive); |
67 | loginedUser.setToken(jwtToken); | 73 | loginedUser.setToken(jwtToken); |
68 | - | 74 | + //这里将登录成功的[user]对象数据写入redis缓存,KEY为token value为user的JSON对象 |
75 | + String json = JSON.toJSONString(user); | ||
76 | + redisUtils.set(jwtToken, json,3600*24*7); | ||
69 | Map<String,Object> menuMap = permissionService.getUserMenus(user.getUserId()); | 77 | Map<String,Object> menuMap = permissionService.getUserMenus(user.getUserId()); |
70 | //返回用户信息和用户可访问的目录列表 | 78 | //返回用户信息和用户可访问的目录列表 |
71 | response.getWriter().write(objectMapper.writeValueAsString(new AuthSuccessResponse(loginedUser,menuMap))); | 79 | response.getWriter().write(objectMapper.writeValueAsString(new AuthSuccessResponse(loginedUser,menuMap))); |
src/main/java/com/tianbo/warehouse/security/model/LoginType.java
100644 → 100755
1 | +package com.tianbo.warehouse.service; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.warehouse.model.Company; | ||
5 | + | ||
6 | +public interface CompanyService { | ||
7 | + | ||
8 | + PageInfo<Company> findAll(int pageNum, int pageSize, String company); | ||
9 | + | ||
10 | + int insertSelective(Company company); | ||
11 | + | ||
12 | + int updateByPrimaryKeySelective(Company company); | ||
13 | + | ||
14 | + int deleteByPrimaryKey(String companyId); | ||
15 | + | ||
16 | +} |
1 | +package com.tianbo.warehouse.service; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.warehouse.model.Department; | ||
5 | + | ||
6 | +public interface DepartmentService { | ||
7 | + | ||
8 | + PageInfo<Department> findAll(int pageNum, int pageSize, String departmentName); | ||
9 | + | ||
10 | + int insertSelective(Department department); | ||
11 | + | ||
12 | + int updateByPrimaryKeySelective(Department department); | ||
13 | + | ||
14 | + int deleteByPrimaryKey(String departmentId); | ||
15 | + | ||
16 | +} |
1 | +package com.tianbo.warehouse.service; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.warehouse.model.Group_company; | ||
5 | + | ||
6 | +public interface GroupCompanyService { | ||
7 | + | ||
8 | + PageInfo<Group_company> findAll(int pageNum, int pageSize, String groupName); | ||
9 | + | ||
10 | + int insertSelective(Group_company group_company); | ||
11 | + | ||
12 | + int updateByPrimaryKeySelective(Group_company group_company); | ||
13 | + | ||
14 | + int deleteByPrimaryKey(String departmentId); | ||
15 | + | ||
16 | +} |
src/main/java/com/tianbo/warehouse/service/LogService.java
100644 → 100755
@@ -8,5 +8,5 @@ public interface LogService { | @@ -8,5 +8,5 @@ public interface LogService { | ||
8 | 8 | ||
9 | int insertSelective(LOGWithBLOBs record); | 9 | int insertSelective(LOGWithBLOBs record); |
10 | 10 | ||
11 | - PageInfo<LOGWithBLOBs> selectAll(int pageNum, int pageSize); | 11 | + PageInfo<LOGWithBLOBs> selectAll(int pageNum, int pageSize, String username, String modelnamecn); |
12 | } | 12 | } |
@@ -8,7 +8,7 @@ import java.util.Map; | @@ -8,7 +8,7 @@ import java.util.Map; | ||
8 | 8 | ||
9 | public interface PermissionService { | 9 | public interface PermissionService { |
10 | 10 | ||
11 | - PageInfo<PERMISSION> findAll(int pageNum, int pageSize); | 11 | + PageInfo<PERMISSION> findAll(int pageNum, int pageSize, String name); |
12 | 12 | ||
13 | int insertSelective(PERMISSION record); | 13 | int insertSelective(PERMISSION record); |
14 | 14 | ||
@@ -18,4 +18,9 @@ public interface PermissionService { | @@ -18,4 +18,9 @@ public interface PermissionService { | ||
18 | * @return | 18 | * @return |
19 | */ | 19 | */ |
20 | Map<String,Object> getUserMenus(Integer userId); | 20 | Map<String,Object> getUserMenus(Integer userId); |
21 | + | ||
22 | + | ||
23 | + int updateByPrimaryKeySelective(PERMISSION permission); | ||
24 | + | ||
25 | + int deleteByPrimaryKey(String companyId); | ||
21 | } | 26 | } |
src/main/java/com/tianbo/warehouse/service/RoleService.java
100644 → 100755
@@ -5,9 +5,13 @@ import com.tianbo.warehouse.model.ROLE; | @@ -5,9 +5,13 @@ import com.tianbo.warehouse.model.ROLE; | ||
5 | import com.tianbo.warehouse.model.RolePermission; | 5 | import com.tianbo.warehouse.model.RolePermission; |
6 | 6 | ||
7 | public interface RoleService { | 7 | public interface RoleService { |
8 | - PageInfo<ROLE> findAll(int pageNum, int pageSize); | 8 | + PageInfo<ROLE> findAll(int pageNum, int pageSize, String roleName); |
9 | 9 | ||
10 | int insertSelective(ROLE record); | 10 | int insertSelective(ROLE record); |
11 | 11 | ||
12 | int setRolePermissoin(RolePermission record); | 12 | int setRolePermissoin(RolePermission record); |
13 | + | ||
14 | + int updateByPrimaryKeySelective(ROLE role); | ||
15 | + | ||
16 | + int deleteByPrimaryKey(Integer departmentId); | ||
13 | } | 17 | } |
-
请 注册 或 登录 后发表评论