Merge branch 'HQPT_USER' of 118.31.66.166:zp260/imf_cloud_wearhouse
正在显示
157 个修改的文件
包含
7115 行增加
和
493 行删除
| @@ -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 | } |
src/main/java/com/tianbo/warehouse/service/UserService.java
100644 → 100755
| @@ -9,7 +9,7 @@ import java.util.List; | @@ -9,7 +9,7 @@ import java.util.List; | ||
| 9 | public interface UserService { | 9 | public interface UserService { |
| 10 | USERS loadByUsername(String username); | 10 | USERS loadByUsername(String username); |
| 11 | 11 | ||
| 12 | - PageInfo<USERS> selectAllUser(int pageNum, int pageSize,USERS users); | 12 | + PageInfo<USERS> selectAllUser(int pageNum, int pageSize,String username, String realName); |
| 13 | 13 | ||
| 14 | int updateByPrimaryKeySelective(USERS record); | 14 | int updateByPrimaryKeySelective(USERS record); |
| 15 | 15 |
| 1 | +package com.tianbo.warehouse.service.imp; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.Page; | ||
| 4 | +import com.github.pagehelper.PageHelper; | ||
| 5 | +import com.github.pagehelper.PageInfo; | ||
| 6 | +import com.tianbo.warehouse.dao.CompanyMapper; | ||
| 7 | +import com.tianbo.warehouse.dao.Group_companyMapper; | ||
| 8 | +import com.tianbo.warehouse.model.Company; | ||
| 9 | +import com.tianbo.warehouse.model.Group_company; | ||
| 10 | +import com.tianbo.warehouse.service.CompanyService; | ||
| 11 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 12 | +import org.springframework.stereotype.Service; | ||
| 13 | + | ||
| 14 | +import java.util.ArrayList; | ||
| 15 | +import java.util.Date; | ||
| 16 | +import java.util.List; | ||
| 17 | +import java.util.UUID; | ||
| 18 | + | ||
| 19 | +@Service | ||
| 20 | +public class CompanyServiceImp implements CompanyService { | ||
| 21 | + | ||
| 22 | + @Autowired | ||
| 23 | + CompanyMapper companyMapper; | ||
| 24 | + | ||
| 25 | + @Autowired | ||
| 26 | + Group_companyMapper group_companyMapper; | ||
| 27 | + | ||
| 28 | + @Override | ||
| 29 | + public PageInfo<Company> findAll(int pageNum, int pageSize, String companyName) { | ||
| 30 | + Page<Company> page = PageHelper.startPage(pageNum,pageSize); | ||
| 31 | + List<Company> list = companyMapper.findAll(companyName); | ||
| 32 | + | ||
| 33 | + for (Company company: list){ | ||
| 34 | + Group_company group_company = group_companyMapper.selectByPrimaryKey(company.getGroupId()); | ||
| 35 | + if (group_company == null){ | ||
| 36 | + group_company.setGroupName("无"); | ||
| 37 | + }else { | ||
| 38 | + company.setGroupName(group_company.getGroupName()); | ||
| 39 | + } | ||
| 40 | + } | ||
| 41 | + PageInfo<Company> result = new PageInfo<>(list); | ||
| 42 | + return result; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + @Override | ||
| 46 | + public int insertSelective(Company company) { | ||
| 47 | + company.setCompanyId(UUID.randomUUID().toString()); | ||
| 48 | + company.setCreatTime(new Date()); | ||
| 49 | + return companyMapper.insertSelective(company); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + @Override | ||
| 53 | + public int updateByPrimaryKeySelective(Company company) { | ||
| 54 | + company.setCreatTime(new Date()); | ||
| 55 | + return companyMapper.updateByPrimaryKeySelective(company); | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + @Override | ||
| 59 | + public int deleteByPrimaryKey(String companyId) { | ||
| 60 | + if (companyId.contains(",")){ | ||
| 61 | + try { | ||
| 62 | + String[] split = companyId.split(","); | ||
| 63 | + for (int i=0; i<split.length; i++){ | ||
| 64 | + companyMapper.deleteByPrimaryKey(split[i]); | ||
| 65 | + } | ||
| 66 | + return 1; | ||
| 67 | + }catch (Exception e){ | ||
| 68 | + e.printStackTrace(); | ||
| 69 | + return 0; | ||
| 70 | + } | ||
| 71 | + }else { | ||
| 72 | + | ||
| 73 | + return companyMapper.deleteByPrimaryKey(companyId); | ||
| 74 | + } | ||
| 75 | + } | ||
| 76 | +} |
| 1 | +package com.tianbo.warehouse.service.imp; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.Page; | ||
| 4 | +import com.github.pagehelper.PageHelper; | ||
| 5 | +import com.github.pagehelper.PageInfo; | ||
| 6 | +import com.tianbo.warehouse.dao.CompanyMapper; | ||
| 7 | +import com.tianbo.warehouse.dao.DepartmentMapper; | ||
| 8 | +import com.tianbo.warehouse.model.Company; | ||
| 9 | +import com.tianbo.warehouse.model.Department; | ||
| 10 | +import com.tianbo.warehouse.service.DepartmentService; | ||
| 11 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 12 | +import org.springframework.stereotype.Service; | ||
| 13 | + | ||
| 14 | +import java.util.ArrayList; | ||
| 15 | +import java.util.Date; | ||
| 16 | +import java.util.List; | ||
| 17 | +import java.util.UUID; | ||
| 18 | + | ||
| 19 | +@Service | ||
| 20 | +public class DepartmentServiceImp implements DepartmentService { | ||
| 21 | + | ||
| 22 | + @Autowired | ||
| 23 | + DepartmentMapper departmentMapper; | ||
| 24 | + | ||
| 25 | + @Autowired | ||
| 26 | + CompanyMapper companyMapper; | ||
| 27 | + | ||
| 28 | + @Override | ||
| 29 | + public PageInfo<Department> findAll(int pageNum, int pageSize, String departmentName) { | ||
| 30 | + Page<Department> page = PageHelper.startPage(pageNum,pageSize); | ||
| 31 | + List<Department> list = departmentMapper.findAll(departmentName); | ||
| 32 | + | ||
| 33 | + for (Department department: list){ | ||
| 34 | + Company company = companyMapper.selectByPrimaryKey(department.getCompanyId()); | ||
| 35 | + if (company == null){ | ||
| 36 | + department.setCompanyName("无"); | ||
| 37 | + }else { | ||
| 38 | + department.setCompanyName(company.getCompanyName()); | ||
| 39 | + } | ||
| 40 | + } | ||
| 41 | + PageInfo<Department> result = new PageInfo<>(list); | ||
| 42 | + return result; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + @Override | ||
| 46 | + public int insertSelective(Department department) { | ||
| 47 | + department.setDepartmentId(UUID.randomUUID().toString()); | ||
| 48 | + department.setCreatTime(new Date()); | ||
| 49 | + return departmentMapper.insertSelective(department); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + @Override | ||
| 53 | + public int updateByPrimaryKeySelective(Department department) { | ||
| 54 | + department.setCreatTime(new Date()); | ||
| 55 | + return departmentMapper.updateByPrimaryKeySelective(department); | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + @Override | ||
| 59 | + public int deleteByPrimaryKey(String departmentId) { | ||
| 60 | + if (departmentId.contains(",")){ | ||
| 61 | + try { | ||
| 62 | + System.out.println(); | ||
| 63 | + String[] split = departmentId.split(","); | ||
| 64 | + for (int i=0; i<split.length; i++){ | ||
| 65 | + departmentMapper.deleteByPrimaryKey(split[i]); | ||
| 66 | + } | ||
| 67 | + return 1; | ||
| 68 | + }catch (Exception e){ | ||
| 69 | + e.printStackTrace(); | ||
| 70 | + return 0; | ||
| 71 | + } | ||
| 72 | + }else { | ||
| 73 | + return departmentMapper.deleteByPrimaryKey(departmentId); | ||
| 74 | + } | ||
| 75 | + } | ||
| 76 | +} |
| 1 | +package com.tianbo.warehouse.service.imp; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.Page; | ||
| 4 | +import com.github.pagehelper.PageHelper; | ||
| 5 | +import com.github.pagehelper.PageInfo; | ||
| 6 | +import com.tianbo.warehouse.dao.DepartmentMapper; | ||
| 7 | +import com.tianbo.warehouse.dao.Group_companyMapper; | ||
| 8 | +import com.tianbo.warehouse.model.Department; | ||
| 9 | +import com.tianbo.warehouse.model.Group_company; | ||
| 10 | +import com.tianbo.warehouse.service.DepartmentService; | ||
| 11 | +import com.tianbo.warehouse.service.GroupCompanyService; | ||
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 13 | +import org.springframework.stereotype.Service; | ||
| 14 | + | ||
| 15 | +import java.util.Date; | ||
| 16 | +import java.util.List; | ||
| 17 | +import java.util.UUID; | ||
| 18 | + | ||
| 19 | +@Service | ||
| 20 | +public class GroupCompanyServiceImp implements GroupCompanyService { | ||
| 21 | + | ||
| 22 | + @Autowired | ||
| 23 | + Group_companyMapper group_companyMapper; | ||
| 24 | + | ||
| 25 | + @Override | ||
| 26 | + public PageInfo<Group_company> findAll(int pageNum, int pageSize, String groupName) { | ||
| 27 | + Page<Group_company> page = PageHelper.startPage(pageNum,pageSize); | ||
| 28 | + List<Group_company> list = group_companyMapper.findAll(groupName); | ||
| 29 | + PageInfo<Group_company> result = new PageInfo<>(list); | ||
| 30 | + return result; | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + @Override | ||
| 34 | + public int insertSelective(Group_company group_company) { | ||
| 35 | + group_company.setGroupId(UUID.randomUUID().toString()); | ||
| 36 | + group_company.setCreatTime(new Date()); | ||
| 37 | + return group_companyMapper.insertSelective(group_company); | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + @Override | ||
| 41 | + public int updateByPrimaryKeySelective(Group_company group_company) { | ||
| 42 | + group_company.setCreatTime(new Date()); | ||
| 43 | + return group_companyMapper.updateByPrimaryKeySelective(group_company); | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + @Override | ||
| 47 | + public int deleteByPrimaryKey(String groupId) { | ||
| 48 | + if (groupId.contains(",")){ | ||
| 49 | + try { | ||
| 50 | + System.out.println(""); | ||
| 51 | + String[] split = groupId.split(","); | ||
| 52 | + for (int i=0; i<split.length; i++){ | ||
| 53 | + group_companyMapper.deleteByPrimaryKey(split[i]); | ||
| 54 | + } | ||
| 55 | + return 1; | ||
| 56 | + }catch (Exception e){ | ||
| 57 | + e.printStackTrace(); | ||
| 58 | + return 0; | ||
| 59 | + } | ||
| 60 | + }else { | ||
| 61 | + return group_companyMapper.deleteByPrimaryKey(groupId); | ||
| 62 | + } | ||
| 63 | + } | ||
| 64 | +} |
| @@ -24,9 +24,9 @@ public class LogServiceImp implements LogService{ | @@ -24,9 +24,9 @@ public class LogServiceImp implements LogService{ | ||
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | @Override | 26 | @Override |
| 27 | - public PageInfo<LOGWithBLOBs> selectAll(int pageNum,int pageSize){ | 27 | + public PageInfo<LOGWithBLOBs> selectAll(int pageNum,int pageSize, String username, String modelnamecn){ |
| 28 | Page<LOGWithBLOBs> page = PageHelper.startPage(pageNum,pageSize); | 28 | Page<LOGWithBLOBs> page = PageHelper.startPage(pageNum,pageSize); |
| 29 | - List<LOGWithBLOBs> list = logMapper.selectAll(); | 29 | + List<LOGWithBLOBs> list = logMapper.selectAll(username, modelnamecn); |
| 30 | PageInfo<LOGWithBLOBs> result = new PageInfo<LOGWithBLOBs>(list); | 30 | PageInfo<LOGWithBLOBs> result = new PageInfo<LOGWithBLOBs>(list); |
| 31 | return result; | 31 | return result; |
| 32 | } | 32 | } |
| @@ -19,9 +19,9 @@ public class PermissionServiceImp implements PermissionService{ | @@ -19,9 +19,9 @@ public class PermissionServiceImp implements PermissionService{ | ||
| 19 | PERMISSIONMapper permissionMapper; | 19 | PERMISSIONMapper permissionMapper; |
| 20 | 20 | ||
| 21 | @Override | 21 | @Override |
| 22 | - public PageInfo<PERMISSION> findAll(int pageNum, int pageSize){ | 22 | + public PageInfo<PERMISSION> findAll(int pageNum, int pageSize, String name){ |
| 23 | Page<PERMISSION> page = PageHelper.startPage(pageNum,pageSize); | 23 | Page<PERMISSION> page = PageHelper.startPage(pageNum,pageSize); |
| 24 | - List<PERMISSION> list = permissionMapper.findAll(); | 24 | + List<PERMISSION> list = permissionMapper.findAll(name); |
| 25 | PageInfo<PERMISSION> result = new PageInfo<>(list); | 25 | PageInfo<PERMISSION> result = new PageInfo<>(list); |
| 26 | return result; | 26 | return result; |
| 27 | } | 27 | } |
| @@ -94,4 +94,31 @@ public class PermissionServiceImp implements PermissionService{ | @@ -94,4 +94,31 @@ public class PermissionServiceImp implements PermissionService{ | ||
| 94 | } | 94 | } |
| 95 | return childList; | 95 | return childList; |
| 96 | } | 96 | } |
| 97 | + | ||
| 98 | + | ||
| 99 | + @Override | ||
| 100 | + public int updateByPrimaryKeySelective(PERMISSION permission) { | ||
| 101 | + return permissionMapper.updateByPrimaryKeySelective(permission); | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + @Override | ||
| 105 | + public int deleteByPrimaryKey(String permissionId) { | ||
| 106 | + if (permissionId.contains(",")){ | ||
| 107 | + try { | ||
| 108 | + String[] split = permissionId.split(","); | ||
| 109 | + for (int i=0; i<split.length; i++){ | ||
| 110 | + permissionMapper.deleteByPrimaryKey(Integer.valueOf(split[i])); | ||
| 111 | + } | ||
| 112 | + System.out.println(); | ||
| 113 | + return 1; | ||
| 114 | + }catch (Exception e){ | ||
| 115 | + e.printStackTrace(); | ||
| 116 | + return 0; | ||
| 117 | + } | ||
| 118 | + }else { | ||
| 119 | + | ||
| 120 | + return permissionMapper.deleteByPrimaryKey(Integer.valueOf(permissionId)); | ||
| 121 | + } | ||
| 122 | + } | ||
| 123 | + | ||
| 97 | } | 124 | } |
| @@ -3,15 +3,20 @@ package com.tianbo.warehouse.service.imp; | @@ -3,15 +3,20 @@ package com.tianbo.warehouse.service.imp; | ||
| 3 | import com.github.pagehelper.Page; | 3 | import com.github.pagehelper.Page; |
| 4 | import com.github.pagehelper.PageHelper; | 4 | import com.github.pagehelper.PageHelper; |
| 5 | import com.github.pagehelper.PageInfo; | 5 | import com.github.pagehelper.PageInfo; |
| 6 | +import com.tianbo.warehouse.dao.DepartmentMapper; | ||
| 6 | import com.tianbo.warehouse.dao.ROLEMapper; | 7 | import com.tianbo.warehouse.dao.ROLEMapper; |
| 7 | import com.tianbo.warehouse.dao.RolePermissionMapper; | 8 | import com.tianbo.warehouse.dao.RolePermissionMapper; |
| 9 | +import com.tianbo.warehouse.model.Department; | ||
| 8 | import com.tianbo.warehouse.model.ROLE; | 10 | import com.tianbo.warehouse.model.ROLE; |
| 9 | import com.tianbo.warehouse.model.RolePermission; | 11 | import com.tianbo.warehouse.model.RolePermission; |
| 12 | +import com.tianbo.warehouse.service.DepartmentService; | ||
| 10 | import com.tianbo.warehouse.service.RoleService; | 13 | import com.tianbo.warehouse.service.RoleService; |
| 11 | import org.springframework.beans.factory.annotation.Autowired; | 14 | import org.springframework.beans.factory.annotation.Autowired; |
| 12 | import org.springframework.stereotype.Service; | 15 | import org.springframework.stereotype.Service; |
| 13 | import org.springframework.transaction.annotation.Transactional; | 16 | import org.springframework.transaction.annotation.Transactional; |
| 17 | +import org.springframework.util.StringUtils; | ||
| 14 | 18 | ||
| 19 | +import java.util.ArrayList; | ||
| 15 | import java.util.List; | 20 | import java.util.List; |
| 16 | 21 | ||
| 17 | @Service(value = "roleService") | 22 | @Service(value = "roleService") |
| @@ -23,11 +28,24 @@ public class RoleServiceImp implements RoleService{ | @@ -23,11 +28,24 @@ public class RoleServiceImp implements RoleService{ | ||
| 23 | @Autowired | 28 | @Autowired |
| 24 | private RolePermissionMapper rolePermissionMapper; | 29 | private RolePermissionMapper rolePermissionMapper; |
| 25 | 30 | ||
| 31 | + @Autowired | ||
| 32 | + DepartmentMapper departmentMapper; | ||
| 33 | + | ||
| 26 | @Override | 34 | @Override |
| 27 | - public PageInfo<ROLE> findAll(int pageNum, int pageSize){ | 35 | + public PageInfo<ROLE> findAll(int pageNum, int pageSize, String roleName){ |
| 28 | Page<ROLE> page = PageHelper.startPage(pageNum,pageSize); | 36 | Page<ROLE> page = PageHelper.startPage(pageNum,pageSize); |
| 29 | - List<ROLE> list = roleMapper.findAll(); | 37 | + List<ROLE> list = roleMapper.findAll(roleName); |
| 38 | + | ||
| 39 | + for (ROLE role: list){ | ||
| 40 | + Department department = departmentMapper.selectByPrimaryKey(role.getDepartmentId()); | ||
| 41 | + if (department == null){ | ||
| 42 | + role.setDepartmentName("无"); | ||
| 43 | + }else { | ||
| 44 | + role.setDepartmentName(department.getDepartmentName()); | ||
| 45 | + } | ||
| 46 | + } | ||
| 30 | PageInfo<ROLE> result = new PageInfo<ROLE>(list); | 47 | PageInfo<ROLE> result = new PageInfo<ROLE>(list); |
| 48 | + | ||
| 31 | return result; | 49 | return result; |
| 32 | } | 50 | } |
| 33 | 51 | ||
| @@ -53,4 +71,29 @@ public class RoleServiceImp implements RoleService{ | @@ -53,4 +71,29 @@ public class RoleServiceImp implements RoleService{ | ||
| 53 | return 0; | 71 | return 0; |
| 54 | } | 72 | } |
| 55 | } | 73 | } |
| 74 | + | ||
| 75 | + @Override | ||
| 76 | + public int updateByPrimaryKeySelective(ROLE company) { | ||
| 77 | + return roleMapper.updateByPrimaryKeySelective(company); | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | + @Override | ||
| 81 | + public int deleteByPrimaryKey(Integer roleId) { | ||
| 82 | + String s = roleId.toString(); | ||
| 83 | + if (s.contains(",")){ | ||
| 84 | + try { | ||
| 85 | + String[] split = s.split(","); | ||
| 86 | + for (int i=0; i<split.length; i++){ | ||
| 87 | + roleMapper.deleteByPrimaryKey(Integer.valueOf(split[i])); | ||
| 88 | + } | ||
| 89 | + return 1; | ||
| 90 | + }catch (Exception e){ | ||
| 91 | + e.printStackTrace(); | ||
| 92 | + return 0; | ||
| 93 | + } | ||
| 94 | + }else { | ||
| 95 | + return roleMapper.deleteByPrimaryKey(Integer.valueOf(roleId)); | ||
| 96 | + } | ||
| 97 | + } | ||
| 98 | + | ||
| 56 | } | 99 | } |
| @@ -56,8 +56,11 @@ public class UserServiceImpl implements UserService{ | @@ -56,8 +56,11 @@ public class UserServiceImpl implements UserService{ | ||
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | @Override | 58 | @Override |
| 59 | - public PageInfo<USERS> selectAllUser(int pageNum, int pageSize,USERS users){ | 59 | + public PageInfo<USERS> selectAllUser(int pageNum, int pageSize,String username, String realName){ |
| 60 | Page<USERS> page = PageHelper.startPage(pageNum,pageSize); | 60 | Page<USERS> page = PageHelper.startPage(pageNum,pageSize); |
| 61 | + USERS users = new USERS(); | ||
| 62 | + users.setUsername(username); | ||
| 63 | + users.setRealname(realName); | ||
| 61 | List<USERS> list = usersMapper.selectAllUser(users); | 64 | List<USERS> list = usersMapper.selectAllUser(users); |
| 62 | for (USERS user: list) { | 65 | for (USERS user: list) { |
| 63 | List<PERMISSION> permissionList = permissionMapper.findByUserId(user.getUserId()); | 66 | List<PERMISSION> permissionList = permissionMapper.findByUserId(user.getUserId()); |
| 1 | +package com.tianbo.warehouse.service.satff; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.PageInfo; | ||
| 4 | +import com.tianbo.warehouse.model.Company; | ||
| 5 | +import com.tianbo.warehouse.model.StaffApartmentComeCar; | ||
| 6 | + | ||
| 7 | +public interface ComeCarService { | ||
| 8 | + | ||
| 9 | + PageInfo<StaffApartmentComeCar> findAll(int pageNum, int pageSize, String company); | ||
| 10 | + | ||
| 11 | + int insertSelective(StaffApartmentComeCar staffApartmentComeCar); | ||
| 12 | + | ||
| 13 | + int updateByPrimaryKeySelective(StaffApartmentComeCar staffApartmentComeCar); | ||
| 14 | + | ||
| 15 | + int deleteByPrimaryKey(String id); | ||
| 16 | + | ||
| 17 | +} |
| 1 | +package com.tianbo.warehouse.service.satff.Imp; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.Page; | ||
| 4 | +import com.github.pagehelper.PageHelper; | ||
| 5 | +import com.github.pagehelper.PageInfo; | ||
| 6 | +import com.tianbo.warehouse.dao.CompanyMapper; | ||
| 7 | +import com.tianbo.warehouse.dao.Group_companyMapper; | ||
| 8 | +import com.tianbo.warehouse.dao.StaffApartmentComeCarMapper; | ||
| 9 | +import com.tianbo.warehouse.model.Company; | ||
| 10 | +import com.tianbo.warehouse.model.Group_company; | ||
| 11 | +import com.tianbo.warehouse.model.StaffApartmentComeCar; | ||
| 12 | +import com.tianbo.warehouse.service.CompanyService; | ||
| 13 | +import com.tianbo.warehouse.service.satff.ComeCarService; | ||
| 14 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 15 | +import org.springframework.stereotype.Service; | ||
| 16 | + | ||
| 17 | +import java.util.Date; | ||
| 18 | +import java.util.List; | ||
| 19 | +import java.util.UUID; | ||
| 20 | + | ||
| 21 | +@Service | ||
| 22 | +public class ComeCayServiceImp implements ComeCarService { | ||
| 23 | + | ||
| 24 | + @Autowired | ||
| 25 | + StaffApartmentComeCarMapper staffApartmentComeCarMapper; | ||
| 26 | + | ||
| 27 | + @Override | ||
| 28 | + public PageInfo<StaffApartmentComeCar> findAll(int pageNum, int pageSize, String companyName) { | ||
| 29 | + Page<StaffApartmentComeCar> page = PageHelper.startPage(pageNum,pageSize); | ||
| 30 | + List<StaffApartmentComeCar> list = staffApartmentComeCarMapper.findAll(companyName); | ||
| 31 | + | ||
| 32 | + PageInfo<StaffApartmentComeCar> result = new PageInfo<>(list); | ||
| 33 | + return result; | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + @Override | ||
| 37 | + public int insertSelective(StaffApartmentComeCar staffApartmentComeCar) { | ||
| 38 | + staffApartmentComeCar.setId(UUID.randomUUID().toString()); | ||
| 39 | + staffApartmentComeCar.setCreatetime(new Date()); | ||
| 40 | + return staffApartmentComeCarMapper.insertSelective(staffApartmentComeCar); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + @Override | ||
| 44 | + public int updateByPrimaryKeySelective(StaffApartmentComeCar staffApartmentComeCar) { | ||
| 45 | + staffApartmentComeCar.setCreatetime(new Date()); | ||
| 46 | + return staffApartmentComeCarMapper.updateByPrimaryKeySelective(staffApartmentComeCar); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @Override | ||
| 50 | + public int deleteByPrimaryKey(String companyId) { | ||
| 51 | + if (companyId.contains(",")){ | ||
| 52 | + try { | ||
| 53 | + String[] split = companyId.split(","); | ||
| 54 | + for (int i=0; i<split.length; i++){ | ||
| 55 | + staffApartmentComeCarMapper.deleteByPrimaryKey(split[i]); | ||
| 56 | + } | ||
| 57 | + return 1; | ||
| 58 | + }catch (Exception e){ | ||
| 59 | + e.printStackTrace(); | ||
| 60 | + return 0; | ||
| 61 | + } | ||
| 62 | + }else { | ||
| 63 | + | ||
| 64 | + return staffApartmentComeCarMapper.deleteByPrimaryKey(companyId); | ||
| 65 | + } | ||
| 66 | + } | ||
| 67 | +} |
| 1 | +package com.tianbo.warehouse.service.satff.Imp; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.Page; | ||
| 4 | +import com.github.pagehelper.PageHelper; | ||
| 5 | +import com.github.pagehelper.PageInfo; | ||
| 6 | +import com.tianbo.warehouse.dao.StaffApartmentSpareKeyMapper; | ||
| 7 | +import com.tianbo.warehouse.dao.StaffSecurityInspectionMapper; | ||
| 8 | +import com.tianbo.warehouse.model.StaffApartmentSpareKey; | ||
| 9 | +import com.tianbo.warehouse.model.StaffSecurityInspection; | ||
| 10 | +import com.tianbo.warehouse.service.satff.KeyService; | ||
| 11 | +import com.tianbo.warehouse.service.satff.StaffSecurityInspectionService; | ||
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 13 | +import org.springframework.stereotype.Service; | ||
| 14 | + | ||
| 15 | +import java.util.Date; | ||
| 16 | +import java.util.List; | ||
| 17 | +import java.util.UUID; | ||
| 18 | + | ||
| 19 | +@Service | ||
| 20 | +public class KeyServiceImp implements KeyService { | ||
| 21 | + | ||
| 22 | + @Autowired | ||
| 23 | + StaffApartmentSpareKeyMapper staffApartmentSpareKeyMapper; | ||
| 24 | + | ||
| 25 | + @Override | ||
| 26 | + public PageInfo<StaffApartmentSpareKey> findAll(int pageNum, int pageSize, String staffname) { | ||
| 27 | + Page<StaffApartmentSpareKey> page = PageHelper.startPage(pageNum,pageSize); | ||
| 28 | + List<StaffApartmentSpareKey> list = staffApartmentSpareKeyMapper.findAll(staffname); | ||
| 29 | + PageInfo<StaffApartmentSpareKey> result = new PageInfo<>(list); | ||
| 30 | + return result; | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + @Override | ||
| 34 | + public int insertSelective(StaffApartmentSpareKey staffApartmentSpareKey) { | ||
| 35 | + staffApartmentSpareKey.setId(UUID.randomUUID().toString()); | ||
| 36 | + staffApartmentSpareKey.setCreatetime(new Date()); | ||
| 37 | + return staffApartmentSpareKeyMapper.insertSelective(staffApartmentSpareKey); | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + @Override | ||
| 41 | + public int updateByPrimaryKeySelective(StaffApartmentSpareKey staffApartmentSpareKey) { | ||
| 42 | + staffApartmentSpareKey.setCreatetime(new Date()); | ||
| 43 | + return staffApartmentSpareKeyMapper.updateByPrimaryKeySelective(staffApartmentSpareKey); | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + @Override | ||
| 47 | + public int deleteByPrimaryKey(String securityInspectionId) { | ||
| 48 | + if (securityInspectionId.contains(",")){ | ||
| 49 | + try { | ||
| 50 | + String a = ""; | ||
| 51 | + String[] split = securityInspectionId.split(","); | ||
| 52 | + for (int i=0; i<split.length; i++){ | ||
| 53 | + staffApartmentSpareKeyMapper.deleteByPrimaryKey(split[i]); | ||
| 54 | + } | ||
| 55 | + System.out.println(); | ||
| 56 | + return 1; | ||
| 57 | + }catch (Exception e){ | ||
| 58 | + e.printStackTrace(); | ||
| 59 | + return 0; | ||
| 60 | + } | ||
| 61 | + }else { | ||
| 62 | + return staffApartmentSpareKeyMapper.deleteByPrimaryKey(securityInspectionId); | ||
| 63 | + } | ||
| 64 | + } | ||
| 65 | +} |
| 1 | +package com.tianbo.warehouse.service.satff.Imp; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.Page; | ||
| 4 | +import com.github.pagehelper.PageHelper; | ||
| 5 | +import com.github.pagehelper.PageInfo; | ||
| 6 | +import com.tianbo.warehouse.dao.StaffApartmentMaintainMapper; | ||
| 7 | +import com.tianbo.warehouse.dao.StaffApartmentSpareKeyMapper; | ||
| 8 | +import com.tianbo.warehouse.model.StaffApartmentMaintain; | ||
| 9 | +import com.tianbo.warehouse.model.StaffApartmentSpareKey; | ||
| 10 | +import com.tianbo.warehouse.service.satff.KeyService; | ||
| 11 | +import com.tianbo.warehouse.service.satff.MaintainService; | ||
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 13 | +import org.springframework.stereotype.Service; | ||
| 14 | + | ||
| 15 | +import java.util.Date; | ||
| 16 | +import java.util.List; | ||
| 17 | +import java.util.UUID; | ||
| 18 | + | ||
| 19 | +@Service | ||
| 20 | +public class MaintainServiceImp implements MaintainService { | ||
| 21 | + | ||
| 22 | + @Autowired | ||
| 23 | + StaffApartmentMaintainMapper staffApartmentMaintainMapper; | ||
| 24 | + | ||
| 25 | + @Override | ||
| 26 | + public PageInfo<StaffApartmentMaintain> findAll(int pageNum, int pageSize, String staffname) { | ||
| 27 | + Page<StaffApartmentMaintain> page = PageHelper.startPage(pageNum,pageSize); | ||
| 28 | + List<StaffApartmentMaintain> list = staffApartmentMaintainMapper.findAll(staffname); | ||
| 29 | + PageInfo<StaffApartmentMaintain> result = new PageInfo<>(list); | ||
| 30 | + return result; | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + @Override | ||
| 34 | + public int insertSelective(StaffApartmentMaintain staffApartmentMaintain) { | ||
| 35 | + staffApartmentMaintain.setId(UUID.randomUUID().toString()); | ||
| 36 | + staffApartmentMaintain.setCreatetime(new Date()); | ||
| 37 | + return staffApartmentMaintainMapper.insertSelective(staffApartmentMaintain); | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + @Override | ||
| 41 | + public int updateByPrimaryKeySelective(StaffApartmentMaintain staffApartmentMaintain) { | ||
| 42 | + staffApartmentMaintain.setCreatetime(new Date()); | ||
| 43 | + return staffApartmentMaintainMapper.updateByPrimaryKeySelective(staffApartmentMaintain); | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + @Override | ||
| 47 | + public int deleteByPrimaryKey(String securityInspectionId) { | ||
| 48 | + if (securityInspectionId.contains(",")){ | ||
| 49 | + try { | ||
| 50 | + String a = ""; | ||
| 51 | + String[] split = securityInspectionId.split(","); | ||
| 52 | + for (int i=0; i<split.length; i++){ | ||
| 53 | + staffApartmentMaintainMapper.deleteByPrimaryKey(split[i]); | ||
| 54 | + } | ||
| 55 | + System.out.println(); | ||
| 56 | + return 1; | ||
| 57 | + }catch (Exception e){ | ||
| 58 | + e.printStackTrace(); | ||
| 59 | + return 0; | ||
| 60 | + } | ||
| 61 | + }else { | ||
| 62 | + return staffApartmentMaintainMapper.deleteByPrimaryKey(securityInspectionId); | ||
| 63 | + } | ||
| 64 | + } | ||
| 65 | +} |
| 1 | +package com.tianbo.warehouse.service.satff.Imp; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.Page; | ||
| 4 | +import com.github.pagehelper.PageHelper; | ||
| 5 | +import com.github.pagehelper.PageInfo; | ||
| 6 | +import com.tianbo.warehouse.dao.StaffApartmentOndutyMapper; | ||
| 7 | +import com.tianbo.warehouse.model.StaffApartmentOnduty; | ||
| 8 | +import com.tianbo.warehouse.service.satff.OnDutyService; | ||
| 9 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 10 | +import org.springframework.stereotype.Service; | ||
| 11 | + | ||
| 12 | +import java.util.Date; | ||
| 13 | +import java.util.List; | ||
| 14 | +import java.util.UUID; | ||
| 15 | + | ||
| 16 | +@Service | ||
| 17 | +public class OnDutyServiceImp implements OnDutyService { | ||
| 18 | + | ||
| 19 | + @Autowired | ||
| 20 | + StaffApartmentOndutyMapper staffApartmentOndutyMapper; | ||
| 21 | + | ||
| 22 | + @Override | ||
| 23 | + public PageInfo<StaffApartmentOnduty> findAll(int pageNum, int pageSize, String name) { | ||
| 24 | + Page<StaffApartmentOnduty> page = PageHelper.startPage(pageNum,pageSize); | ||
| 25 | + List<StaffApartmentOnduty> list = staffApartmentOndutyMapper.findAll(name); | ||
| 26 | + | ||
| 27 | + | ||
| 28 | + PageInfo<StaffApartmentOnduty> result = new PageInfo<>(list); | ||
| 29 | + return result; | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + @Override | ||
| 33 | + public int insertSelective(StaffApartmentOnduty staffApartmentOnduty) { | ||
| 34 | + staffApartmentOnduty.setId(UUID.randomUUID().toString()); | ||
| 35 | + staffApartmentOnduty.setCreatime(new Date()); | ||
| 36 | + return staffApartmentOndutyMapper.insertSelective(staffApartmentOnduty); | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + @Override | ||
| 40 | + public int updateByPrimaryKeySelective(StaffApartmentOnduty staffApartmentOnduty) { | ||
| 41 | + staffApartmentOnduty.setCreatime(new Date()); | ||
| 42 | + return staffApartmentOndutyMapper.updateByPrimaryKeySelective(staffApartmentOnduty); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + @Override | ||
| 46 | + public int deleteByPrimaryKey(String companyId) { | ||
| 47 | + if (companyId.contains(",")){ | ||
| 48 | + try { | ||
| 49 | + String[] split = companyId.split(","); | ||
| 50 | + for (int i=0; i<split.length; i++){ | ||
| 51 | + staffApartmentOndutyMapper.deleteByPrimaryKey(split[i]); | ||
| 52 | + } | ||
| 53 | + return 1; | ||
| 54 | + }catch (Exception e){ | ||
| 55 | + e.printStackTrace(); | ||
| 56 | + return 0; | ||
| 57 | + } | ||
| 58 | + }else { | ||
| 59 | + | ||
| 60 | + return staffApartmentOndutyMapper.deleteByPrimaryKey(companyId); | ||
| 61 | + } | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | +} |
src/main/java/com/tianbo/warehouse/service/satff/Imp/StaffSecurityInspectionServiceImp.java
0 → 100755
| 1 | +package com.tianbo.warehouse.service.satff.Imp; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.Page; | ||
| 4 | +import com.github.pagehelper.PageHelper; | ||
| 5 | +import com.github.pagehelper.PageInfo; | ||
| 6 | +import com.tianbo.warehouse.dao.CompanyMapper; | ||
| 7 | +import com.tianbo.warehouse.dao.Group_companyMapper; | ||
| 8 | +import com.tianbo.warehouse.dao.StaffSecurityInspectionMapper; | ||
| 9 | +import com.tianbo.warehouse.model.Company; | ||
| 10 | +import com.tianbo.warehouse.model.Group_company; | ||
| 11 | +import com.tianbo.warehouse.model.StaffSecurityInspection; | ||
| 12 | +import com.tianbo.warehouse.service.CompanyService; | ||
| 13 | +import com.tianbo.warehouse.service.satff.StaffSecurityInspectionService; | ||
| 14 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 15 | +import org.springframework.stereotype.Service; | ||
| 16 | + | ||
| 17 | +import java.util.Date; | ||
| 18 | +import java.util.List; | ||
| 19 | +import java.util.UUID; | ||
| 20 | + | ||
| 21 | +@Service | ||
| 22 | +public class StaffSecurityInspectionServiceImp implements StaffSecurityInspectionService { | ||
| 23 | + | ||
| 24 | + @Autowired | ||
| 25 | + StaffSecurityInspectionMapper staffSecurityInspectionMapper; | ||
| 26 | + | ||
| 27 | + @Override | ||
| 28 | + public PageInfo<StaffSecurityInspection> findAll(int pageNum, int pageSize, String securityInspectionName) { | ||
| 29 | + Page<StaffSecurityInspection> page = PageHelper.startPage(pageNum,pageSize); | ||
| 30 | + List<StaffSecurityInspection> list = staffSecurityInspectionMapper.findAll(securityInspectionName); | ||
| 31 | + PageInfo<StaffSecurityInspection> result = new PageInfo<>(list); | ||
| 32 | + return result; | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + @Override | ||
| 36 | + public int insertSelective(StaffSecurityInspection staffSecurityInspection) { | ||
| 37 | + staffSecurityInspection.setSecurityInspectionId(UUID.randomUUID().toString()); | ||
| 38 | + staffSecurityInspection.setOptTime(new Date()); | ||
| 39 | + staffSecurityInspection.setRealname(staffSecurityInspection.getSecurityInspectionName()); | ||
| 40 | + return staffSecurityInspectionMapper.insertSelective(staffSecurityInspection); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + @Override | ||
| 44 | + public int updateByPrimaryKeySelective(StaffSecurityInspection staffSecurityInspection) { | ||
| 45 | + staffSecurityInspection.setOptTime(new Date()); | ||
| 46 | + return staffSecurityInspectionMapper.updateByPrimaryKeySelective(staffSecurityInspection); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @Override | ||
| 50 | + public int deleteByPrimaryKey(String securityInspectionId) { | ||
| 51 | + if (securityInspectionId.contains(",")){ | ||
| 52 | + try { | ||
| 53 | + String a = ""; | ||
| 54 | + String[] split = securityInspectionId.split(","); | ||
| 55 | + for (int i=0; i<split.length; i++){ | ||
| 56 | + staffSecurityInspectionMapper.deleteByPrimaryKey(split[i]); | ||
| 57 | + } | ||
| 58 | + return 1; | ||
| 59 | + }catch (Exception e){ | ||
| 60 | + e.printStackTrace(); | ||
| 61 | + return 0; | ||
| 62 | + } | ||
| 63 | + }else { | ||
| 64 | + return staffSecurityInspectionMapper.deleteByPrimaryKey(securityInspectionId); | ||
| 65 | + } | ||
| 66 | + } | ||
| 67 | +} |
| 1 | +package com.tianbo.warehouse.service.satff; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.PageInfo; | ||
| 4 | +import com.tianbo.warehouse.model.StaffApartmentSpareKey; | ||
| 5 | + | ||
| 6 | +public interface KeyService { | ||
| 7 | + | ||
| 8 | + PageInfo<StaffApartmentSpareKey> findAll(int pageNum, int pageSize, String staffname); | ||
| 9 | + | ||
| 10 | + int insertSelective(StaffApartmentSpareKey staffApartmentSpareKey); | ||
| 11 | + | ||
| 12 | + int updateByPrimaryKeySelective(StaffApartmentSpareKey staffApartmentSpareKey); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(String id); | ||
| 15 | + | ||
| 16 | +} |
| 1 | +package com.tianbo.warehouse.service.satff; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.PageInfo; | ||
| 4 | +import com.tianbo.warehouse.model.StaffApartmentMaintain; | ||
| 5 | +import com.tianbo.warehouse.model.StaffApartmentSpareKey; | ||
| 6 | + | ||
| 7 | +public interface MaintainService { | ||
| 8 | + | ||
| 9 | + PageInfo<StaffApartmentMaintain> findAll(int pageNum, int pageSize, String staffname); | ||
| 10 | + | ||
| 11 | + int insertSelective(StaffApartmentMaintain staffApartmentMaintain); | ||
| 12 | + | ||
| 13 | + int updateByPrimaryKeySelective(StaffApartmentMaintain staffApartmentMaintain); | ||
| 14 | + | ||
| 15 | + int deleteByPrimaryKey(String id); | ||
| 16 | + | ||
| 17 | + | ||
| 18 | +} |
| 1 | +package com.tianbo.warehouse.service.satff; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.PageInfo; | ||
| 4 | +import com.tianbo.warehouse.model.Company; | ||
| 5 | +import com.tianbo.warehouse.model.StaffApartmentOnduty; | ||
| 6 | + | ||
| 7 | +import java.util.List; | ||
| 8 | + | ||
| 9 | +public interface OnDutyService { | ||
| 10 | + | ||
| 11 | + PageInfo<StaffApartmentOnduty> findAll(int pageNum, int pageSize, String name); | ||
| 12 | + | ||
| 13 | + int insertSelective(StaffApartmentOnduty company); | ||
| 14 | + | ||
| 15 | + int updateByPrimaryKeySelective(StaffApartmentOnduty company); | ||
| 16 | + | ||
| 17 | + int deleteByPrimaryKey(String companyId); | ||
| 18 | + | ||
| 19 | +} |
| 1 | +package com.tianbo.warehouse.service.satff; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.PageInfo; | ||
| 4 | +import com.tianbo.warehouse.model.Company; | ||
| 5 | +import com.tianbo.warehouse.model.StaffSecurityInspection; | ||
| 6 | + | ||
| 7 | +public interface StaffSecurityInspectionService { | ||
| 8 | + | ||
| 9 | + PageInfo<StaffSecurityInspection> findAll(int pageNum, int pageSize, String securityInspectionName); | ||
| 10 | + | ||
| 11 | + int insertSelective(StaffSecurityInspection staffSecurityInspection); | ||
| 12 | + | ||
| 13 | + int updateByPrimaryKeySelective(StaffSecurityInspection company); | ||
| 14 | + | ||
| 15 | + int deleteByPrimaryKey(String securityInspectionId); | ||
| 16 | + | ||
| 17 | +} |
| 1 | +package com.tianbo.warehouse.service.water; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.PageInfo; | ||
| 4 | +import com.tianbo.warehouse.model.StaffApartmentComeCar; | ||
| 5 | +import com.tianbo.warehouse.model.WaterStationsPatrol; | ||
| 6 | + | ||
| 7 | +public interface WaterStationsPatrolService { | ||
| 8 | + | ||
| 9 | + PageInfo<WaterStationsPatrol> findAll(int pageNum, int pageSize); | ||
| 10 | + | ||
| 11 | + int insertSelective(WaterStationsPatrol staffApartmentComeCar); | ||
| 12 | + | ||
| 13 | + int updateByPrimaryKeySelective(WaterStationsPatrol staffApartmentComeCar); | ||
| 14 | + | ||
| 15 | + int deleteByPrimaryKey(String id); | ||
| 16 | + | ||
| 17 | +} |
| 1 | +package com.tianbo.warehouse.service.water.imp; | ||
| 2 | + | ||
| 3 | +import com.github.pagehelper.Page; | ||
| 4 | +import com.github.pagehelper.PageHelper; | ||
| 5 | +import com.github.pagehelper.PageInfo; | ||
| 6 | +import com.tianbo.warehouse.dao.StaffApartmentComeCarMapper; | ||
| 7 | +import com.tianbo.warehouse.dao.WaterStationsPatrolMapper; | ||
| 8 | +import com.tianbo.warehouse.model.StaffApartmentComeCar; | ||
| 9 | +import com.tianbo.warehouse.model.WaterStationsPatrol; | ||
| 10 | +import com.tianbo.warehouse.service.satff.ComeCarService; | ||
| 11 | +import com.tianbo.warehouse.service.water.WaterStationsPatrolService; | ||
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 13 | +import org.springframework.stereotype.Service; | ||
| 14 | + | ||
| 15 | +import java.util.Date; | ||
| 16 | +import java.util.List; | ||
| 17 | +import java.util.UUID; | ||
| 18 | + | ||
| 19 | +@Service | ||
| 20 | +public class WaterStationsPatrolServiceImp implements WaterStationsPatrolService { | ||
| 21 | + | ||
| 22 | + @Autowired | ||
| 23 | + WaterStationsPatrolMapper waterStationsPatrolMapper; | ||
| 24 | + | ||
| 25 | + @Override | ||
| 26 | + public PageInfo<WaterStationsPatrol> findAll(int pageNum, int pageSize) { | ||
| 27 | + Page<WaterStationsPatrol> page = PageHelper.startPage(pageNum,pageSize); | ||
| 28 | + List<WaterStationsPatrol> list = waterStationsPatrolMapper.findAll(); | ||
| 29 | + | ||
| 30 | + PageInfo<WaterStationsPatrol> result = new PageInfo<>(list); | ||
| 31 | + return result; | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | + @Override | ||
| 35 | + public int insertSelective(WaterStationsPatrol staffApartmentComeCar) { | ||
| 36 | + staffApartmentComeCar.setId(UUID.randomUUID().toString()); | ||
| 37 | + staffApartmentComeCar.setCreattime(new Date()); | ||
| 38 | + return waterStationsPatrolMapper.insertSelective(staffApartmentComeCar); | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @Override | ||
| 42 | + public int updateByPrimaryKeySelective(WaterStationsPatrol staffApartmentComeCar) { | ||
| 43 | + staffApartmentComeCar.setCreattime(new Date()); | ||
| 44 | + return waterStationsPatrolMapper.updateByPrimaryKeySelective(staffApartmentComeCar); | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + @Override | ||
| 48 | + public int deleteByPrimaryKey(String companyId) { | ||
| 49 | + if (companyId.contains(",")){ | ||
| 50 | + try { | ||
| 51 | + String[] split = companyId.split(","); | ||
| 52 | + for (int i=0; i<split.length; i++){ | ||
| 53 | + waterStationsPatrolMapper.deleteByPrimaryKey(split[i]); | ||
| 54 | + } | ||
| 55 | + return 1; | ||
| 56 | + }catch (Exception e){ | ||
| 57 | + e.printStackTrace(); | ||
| 58 | + return 0; | ||
| 59 | + } | ||
| 60 | + }else { | ||
| 61 | + | ||
| 62 | + return waterStationsPatrolMapper.deleteByPrimaryKey(companyId); | ||
| 63 | + } | ||
| 64 | + } | ||
| 65 | +} |
src/main/java/com/tianbo/warehouse/util/Date/DateUtil.java
100644 → 100755
src/main/java/com/tianbo/warehouse/util/Helper.java
100644 → 100755
src/main/java/com/tianbo/warehouse/util/IO/FileTool.java
100644 → 100755
src/main/java/com/tianbo/warehouse/util/IO/StreamUtil.java
100644 → 100755
| 1 | +package com.tianbo.warehouse.util; | ||
| 2 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 3 | +import org.springframework.data.redis.core.BoundListOperations; | ||
| 4 | +import org.springframework.data.redis.core.StringRedisTemplate; | ||
| 5 | +import org.springframework.stereotype.Component; | ||
| 6 | +import org.springframework.util.CollectionUtils; | ||
| 7 | + | ||
| 8 | +import java.util.List; | ||
| 9 | +import java.util.Map; | ||
| 10 | +import java.util.Set; | ||
| 11 | +import java.util.concurrent.TimeUnit; | ||
| 12 | + | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * redisTemplate封装 | ||
| 16 | + * | ||
| 17 | + * @author yinxp@dist.com.cn | ||
| 18 | + */ | ||
| 19 | +@Component | ||
| 20 | +public class RedisUtils { | ||
| 21 | + | ||
| 22 | + @Autowired | ||
| 23 | + private StringRedisTemplate redisTemplate; | ||
| 24 | + | ||
| 25 | + public RedisUtils(StringRedisTemplate redisTemplate) { | ||
| 26 | + this.redisTemplate = redisTemplate; | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + /** | ||
| 30 | + * 指定缓存失效时间 | ||
| 31 | + * @param key 键 | ||
| 32 | + * @param time 时间(秒) | ||
| 33 | + * @return | ||
| 34 | + */ | ||
| 35 | + public boolean expire(String key,long time){ | ||
| 36 | + try { | ||
| 37 | + if(time>0){ | ||
| 38 | + redisTemplate.expire(key, time, TimeUnit.SECONDS); | ||
| 39 | + } | ||
| 40 | + return true; | ||
| 41 | + } catch (Exception e) { | ||
| 42 | + e.printStackTrace(); | ||
| 43 | + return false; | ||
| 44 | + } | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + /** | ||
| 48 | + * 根据key 获取过期时间 | ||
| 49 | + * @param key 键 不能为null | ||
| 50 | + * @return 时间(秒) 返回0代表为永久有效 | ||
| 51 | + */ | ||
| 52 | + public long getExpire(String key){ | ||
| 53 | + return redisTemplate.getExpire(key,TimeUnit.SECONDS); | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + /** | ||
| 57 | + * 判断key是否存在 | ||
| 58 | + * @param key 键 | ||
| 59 | + * @return true 存在 false不存在 | ||
| 60 | + */ | ||
| 61 | + public boolean hasKey(String key){ | ||
| 62 | + try { | ||
| 63 | + return redisTemplate.hasKey(key); | ||
| 64 | + } catch (Exception e) { | ||
| 65 | + e.printStackTrace(); | ||
| 66 | + return false; | ||
| 67 | + } | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + /** | ||
| 71 | + * 删除缓存 | ||
| 72 | + * @param key 可以传一个值 或多个 | ||
| 73 | + */ | ||
| 74 | + @SuppressWarnings("unchecked") | ||
| 75 | + public void del(String ... key){ | ||
| 76 | + if(key!=null&&key.length>0){ | ||
| 77 | + if(key.length==1){ | ||
| 78 | + redisTemplate.delete(key[0]); | ||
| 79 | + }else{ | ||
| 80 | + redisTemplate.delete(CollectionUtils.arrayToList(key)); | ||
| 81 | + } | ||
| 82 | + } | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + //============================String============================= | ||
| 86 | + /** | ||
| 87 | + * 普通缓存获取 | ||
| 88 | + * @param key 键 | ||
| 89 | + * @return 值 | ||
| 90 | + */ | ||
| 91 | + public String get(String key){ | ||
| 92 | + return key==null?null:redisTemplate.opsForValue().get(key); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + /** | ||
| 96 | + * 普通缓存放入 | ||
| 97 | + * @param key 键 | ||
| 98 | + * @param value 值 | ||
| 99 | + * @return true成功 false失败 | ||
| 100 | + */ | ||
| 101 | + public boolean set(String key,String value) { | ||
| 102 | + try { | ||
| 103 | + redisTemplate.opsForValue().set(key, value); | ||
| 104 | + return true; | ||
| 105 | + } catch (Exception e) { | ||
| 106 | + e.printStackTrace(); | ||
| 107 | + return false; | ||
| 108 | + } | ||
| 109 | + } | ||
| 110 | + | ||
| 111 | + /** | ||
| 112 | + * 普通缓存放入并设置时间 | ||
| 113 | + * @param key 键 | ||
| 114 | + * @param value 值 | ||
| 115 | + * @param time 时间(秒) time要大于0 如果time小于等于0 将设置无限期 | ||
| 116 | + * @return true成功 false 失败 | ||
| 117 | + */ | ||
| 118 | + public boolean set(String key,String value,long time){ | ||
| 119 | + try { | ||
| 120 | + if(time>0){ | ||
| 121 | + redisTemplate.opsForValue().set(key, value, time, TimeUnit.SECONDS); | ||
| 122 | + }else{ | ||
| 123 | + set(key, value); | ||
| 124 | + } | ||
| 125 | + return true; | ||
| 126 | + } catch (Exception e) { | ||
| 127 | + e.printStackTrace(); | ||
| 128 | + return false; | ||
| 129 | + } | ||
| 130 | + } | ||
| 131 | + | ||
| 132 | + /** | ||
| 133 | + * 递增 | ||
| 134 | + * @param key 键 | ||
| 135 | + * @param delta 要增加几(大于0) | ||
| 136 | + * @return | ||
| 137 | + */ | ||
| 138 | + public long incr(String key, long delta){ | ||
| 139 | + if(delta<0){ | ||
| 140 | + throw new RuntimeException("递增因子必须大于0"); | ||
| 141 | + } | ||
| 142 | + return redisTemplate.opsForValue().increment(key, delta); | ||
| 143 | + } | ||
| 144 | + | ||
| 145 | + /** | ||
| 146 | + * 递减 | ||
| 147 | + * @param key 键 | ||
| 148 | + * @param delta 要减少几(小于0) | ||
| 149 | + * @return | ||
| 150 | + */ | ||
| 151 | + public long decr(String key, long delta){ | ||
| 152 | + if(delta<0){ | ||
| 153 | + throw new RuntimeException("递减因子必须大于0"); | ||
| 154 | + } | ||
| 155 | + return redisTemplate.opsForValue().increment(key, -delta); | ||
| 156 | + } | ||
| 157 | + | ||
| 158 | + //================================Map================================= | ||
| 159 | + /** | ||
| 160 | + * HashGet | ||
| 161 | + * @param key 键 不能为null | ||
| 162 | + * @param item 项 不能为null | ||
| 163 | + * @return 值 | ||
| 164 | + */ | ||
| 165 | + public Object hget(String key,String item){ | ||
| 166 | + return redisTemplate.opsForHash().get(key, item); | ||
| 167 | + } | ||
| 168 | + | ||
| 169 | + /** | ||
| 170 | + * 获取hashKey对应的所有键值 | ||
| 171 | + * @param key 键 | ||
| 172 | + * @return 对应的多个键值 | ||
| 173 | + */ | ||
| 174 | + public Map<Object,Object> hmget(String key){ | ||
| 175 | + return redisTemplate.opsForHash().entries(key); | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + /** | ||
| 179 | + * HashSet | ||
| 180 | + * @param key 键 | ||
| 181 | + * @param map 对应多个键值 | ||
| 182 | + * @return true 成功 false 失败 | ||
| 183 | + */ | ||
| 184 | + public boolean hmset(String key, Map<String,String> map){ | ||
| 185 | + try { | ||
| 186 | + redisTemplate.opsForHash().putAll(key, map); | ||
| 187 | + return true; | ||
| 188 | + } catch (Exception e) { | ||
| 189 | + e.printStackTrace(); | ||
| 190 | + return false; | ||
| 191 | + } | ||
| 192 | + } | ||
| 193 | + | ||
| 194 | + /** | ||
| 195 | + * HashSet 并设置时间 | ||
| 196 | + * @param key 键 | ||
| 197 | + * @param map 对应多个键值 | ||
| 198 | + * @param time 时间(秒) | ||
| 199 | + * @return true成功 false失败 | ||
| 200 | + */ | ||
| 201 | + public boolean hmset(String key, Map<String,String> map, long time){ | ||
| 202 | + try { | ||
| 203 | + redisTemplate.opsForHash().putAll(key, map); | ||
| 204 | + if(time>0){ | ||
| 205 | + expire(key, time); | ||
| 206 | + } | ||
| 207 | + return true; | ||
| 208 | + } catch (Exception e) { | ||
| 209 | + e.printStackTrace(); | ||
| 210 | + return false; | ||
| 211 | + } | ||
| 212 | + } | ||
| 213 | + | ||
| 214 | + /** | ||
| 215 | + * 向一张hash表中放入数据,如果不存在将创建 | ||
| 216 | + * @param key 键 | ||
| 217 | + * @param item 项 | ||
| 218 | + * @param value 值 | ||
| 219 | + * @return true 成功 false失败 | ||
| 220 | + */ | ||
| 221 | + public boolean hset(String key,String item,String value) { | ||
| 222 | + try { | ||
| 223 | + redisTemplate.opsForHash().put(key, item, value); | ||
| 224 | + return true; | ||
| 225 | + } catch (Exception e) { | ||
| 226 | + e.printStackTrace(); | ||
| 227 | + return false; | ||
| 228 | + } | ||
| 229 | + } | ||
| 230 | + | ||
| 231 | + /** | ||
| 232 | + * 向一张hash表中放入数据,如果不存在将创建 | ||
| 233 | + * @param key 键 | ||
| 234 | + * @param item 项 | ||
| 235 | + * @param value 值 | ||
| 236 | + * @param time 时间(秒) 注意:如果已存在的hash表有时间,这里将会替换原有的时间 | ||
| 237 | + * @return true 成功 false失败 | ||
| 238 | + */ | ||
| 239 | + public boolean hset(String key,String item,String value,long time) { | ||
| 240 | + try { | ||
| 241 | + redisTemplate.opsForHash().put(key, item, value); | ||
| 242 | + if(time>0){ | ||
| 243 | + expire(key, time); | ||
| 244 | + } | ||
| 245 | + return true; | ||
| 246 | + } catch (Exception e) { | ||
| 247 | + e.printStackTrace(); | ||
| 248 | + return false; | ||
| 249 | + } | ||
| 250 | + } | ||
| 251 | + | ||
| 252 | + /** | ||
| 253 | + * 删除hash表中的值 | ||
| 254 | + * @param key 键 不能为null | ||
| 255 | + * @param item 项 可以使多个 不能为null | ||
| 256 | + */ | ||
| 257 | + public void hdel(String key, String... item){ | ||
| 258 | + redisTemplate.opsForHash().delete(key,item); | ||
| 259 | + } | ||
| 260 | + | ||
| 261 | + /** | ||
| 262 | + * 判断hash表中是否有该项的值 | ||
| 263 | + * @param key 键 不能为null | ||
| 264 | + * @param item 项 不能为null | ||
| 265 | + * @return true 存在 false不存在 | ||
| 266 | + */ | ||
| 267 | + public boolean hHasKey(String key, String item){ | ||
| 268 | + return redisTemplate.opsForHash().hasKey(key, item); | ||
| 269 | + } | ||
| 270 | + | ||
| 271 | + /** | ||
| 272 | + * hash递增 如果不存在,就会创建一个 并把新增后的值返回 | ||
| 273 | + * @param key 键 | ||
| 274 | + * @param item 项 | ||
| 275 | + * @param by 要增加几(大于0) | ||
| 276 | + * @return | ||
| 277 | + */ | ||
| 278 | + public double hincr(String key, String item,double by){ | ||
| 279 | + return redisTemplate.opsForHash().increment(key, item, by); | ||
| 280 | + } | ||
| 281 | + | ||
| 282 | + /** | ||
| 283 | + * hash递减 | ||
| 284 | + * @param key 键 | ||
| 285 | + * @param item 项 | ||
| 286 | + * @param by 要减少记(小于0) | ||
| 287 | + * @return | ||
| 288 | + */ | ||
| 289 | + public double hdecr(String key, String item,double by){ | ||
| 290 | + return redisTemplate.opsForHash().increment(key, item,-by); | ||
| 291 | + } | ||
| 292 | + | ||
| 293 | + //============================set============================= | ||
| 294 | + /** | ||
| 295 | + * 根据key获取Set中的所有值 | ||
| 296 | + * @param key 键 | ||
| 297 | + * @return | ||
| 298 | + */ | ||
| 299 | + public Set<String> sGet(String key){ | ||
| 300 | + try { | ||
| 301 | + return redisTemplate.opsForSet().members(key); | ||
| 302 | + } catch (Exception e) { | ||
| 303 | + e.printStackTrace(); | ||
| 304 | + return null; | ||
| 305 | + } | ||
| 306 | + } | ||
| 307 | + | ||
| 308 | + /** | ||
| 309 | + * 根据value从一个set中查询,是否存在 | ||
| 310 | + * @param key 键 | ||
| 311 | + * @param value 值 | ||
| 312 | + * @return true 存在 false不存在 | ||
| 313 | + */ | ||
| 314 | + public boolean sHasKey(String key,String value){ | ||
| 315 | + try { | ||
| 316 | + return redisTemplate.opsForSet().isMember(key, value); | ||
| 317 | + } catch (Exception e) { | ||
| 318 | + e.printStackTrace(); | ||
| 319 | + return false; | ||
| 320 | + } | ||
| 321 | + } | ||
| 322 | + | ||
| 323 | + /** | ||
| 324 | + * 将数据放入set缓存 | ||
| 325 | + * @param key 键 | ||
| 326 | + * @param values 值 可以是多个 | ||
| 327 | + * @return 成功个数 | ||
| 328 | + */ | ||
| 329 | + public long sSet(String key, String...values) { | ||
| 330 | + try { | ||
| 331 | + return redisTemplate.opsForSet().add(key, values); | ||
| 332 | + } catch (Exception e) { | ||
| 333 | + e.printStackTrace(); | ||
| 334 | + return 0; | ||
| 335 | + } | ||
| 336 | + } | ||
| 337 | + | ||
| 338 | + /** | ||
| 339 | + * 将set数据放入缓存 | ||
| 340 | + * @param key 键 | ||
| 341 | + * @param time 时间(秒) | ||
| 342 | + * @param values 值 可以是多个 | ||
| 343 | + * @return 成功个数 | ||
| 344 | + */ | ||
| 345 | + public long sSetAndTime(String key,long time,String...values) { | ||
| 346 | + try { | ||
| 347 | + Long count = redisTemplate.opsForSet().add(key, values); | ||
| 348 | + if(time>0) { | ||
| 349 | + expire(key, time); | ||
| 350 | + } | ||
| 351 | + return count; | ||
| 352 | + } catch (Exception e) { | ||
| 353 | + e.printStackTrace(); | ||
| 354 | + return 0; | ||
| 355 | + } | ||
| 356 | + } | ||
| 357 | + | ||
| 358 | + /** | ||
| 359 | + * 获取set缓存的长度 | ||
| 360 | + * @param key 键 | ||
| 361 | + * @return | ||
| 362 | + */ | ||
| 363 | + public long sGetSetSize(String key){ | ||
| 364 | + try { | ||
| 365 | + return redisTemplate.opsForSet().size(key); | ||
| 366 | + } catch (Exception e) { | ||
| 367 | + e.printStackTrace(); | ||
| 368 | + return 0; | ||
| 369 | + } | ||
| 370 | + } | ||
| 371 | + | ||
| 372 | + /** | ||
| 373 | + * 移除值为value的 | ||
| 374 | + * @param key 键 | ||
| 375 | + * @param values 值 可以是多个 | ||
| 376 | + * @return 移除的个数 | ||
| 377 | + */ | ||
| 378 | + public long setRemove(String key, String ...values) { | ||
| 379 | + try { | ||
| 380 | + Long count = redisTemplate.opsForSet().remove(key, values); | ||
| 381 | + return count; | ||
| 382 | + } catch (Exception e) { | ||
| 383 | + e.printStackTrace(); | ||
| 384 | + return 0; | ||
| 385 | + } | ||
| 386 | + } | ||
| 387 | + //===============================list================================= | ||
| 388 | + | ||
| 389 | + /** | ||
| 390 | + * 获取list缓存的内容 | ||
| 391 | + * @param key 键 | ||
| 392 | + * @param start 开始 | ||
| 393 | + * @param end 结束 0 到 -1代表所有值 | ||
| 394 | + * @return | ||
| 395 | + */ | ||
| 396 | + public List<String> lGet(String key, long start, long end){ | ||
| 397 | + try { | ||
| 398 | + return redisTemplate.opsForList().range(key, start, end); | ||
| 399 | + } catch (Exception e) { | ||
| 400 | + e.printStackTrace(); | ||
| 401 | + return null; | ||
| 402 | + } | ||
| 403 | + } | ||
| 404 | + | ||
| 405 | + /** | ||
| 406 | + * 获取list缓存的长度 | ||
| 407 | + * @param key 键 | ||
| 408 | + * @return | ||
| 409 | + */ | ||
| 410 | + public long lGetListSize(String key){ | ||
| 411 | + try { | ||
| 412 | + return redisTemplate.opsForList().size(key); | ||
| 413 | + } catch (Exception e) { | ||
| 414 | + e.printStackTrace(); | ||
| 415 | + return 0; | ||
| 416 | + } | ||
| 417 | + } | ||
| 418 | + | ||
| 419 | + /** | ||
| 420 | + * 通过索引 获取list中的值 | ||
| 421 | + * @param key 键 | ||
| 422 | + * @param index 索引 index>=0时, 0 表头,1 第二个元素,依次类推;index<0时,-1,表尾,-2倒数第二个元素,依次类推 | ||
| 423 | + * @return | ||
| 424 | + */ | ||
| 425 | + public String lGetIndex(String key,long index){ | ||
| 426 | + try { | ||
| 427 | + return redisTemplate.opsForList().index(key, index); | ||
| 428 | + } catch (Exception e) { | ||
| 429 | + e.printStackTrace(); | ||
| 430 | + return null; | ||
| 431 | + } | ||
| 432 | + } | ||
| 433 | + | ||
| 434 | + /** | ||
| 435 | + * 将list放入缓存 | ||
| 436 | + * @param key 键 | ||
| 437 | + * @param value 值 | ||
| 438 | + * @return | ||
| 439 | + */ | ||
| 440 | + public boolean lSet(String key, String value) { | ||
| 441 | + try { | ||
| 442 | + redisTemplate.opsForList().rightPush(key, value); | ||
| 443 | + return true; | ||
| 444 | + } catch (Exception e) { | ||
| 445 | + e.printStackTrace(); | ||
| 446 | + return false; | ||
| 447 | + } | ||
| 448 | + } | ||
| 449 | + | ||
| 450 | + /** | ||
| 451 | + * 将list放入缓存 | ||
| 452 | + * @param key 键 | ||
| 453 | + * @param value 值 | ||
| 454 | + * @param time 时间(秒) | ||
| 455 | + * @return | ||
| 456 | + */ | ||
| 457 | + public boolean lSet(String key, String value, long time) { | ||
| 458 | + try { | ||
| 459 | + redisTemplate.opsForList().rightPush(key, value); | ||
| 460 | + if (time > 0) { | ||
| 461 | + expire(key, time); | ||
| 462 | + } | ||
| 463 | + return true; | ||
| 464 | + } catch (Exception e) { | ||
| 465 | + e.printStackTrace(); | ||
| 466 | + return false; | ||
| 467 | + } | ||
| 468 | + } | ||
| 469 | + | ||
| 470 | + /** | ||
| 471 | + * 将list放入缓存 | ||
| 472 | + * @param key 键 | ||
| 473 | + * @param value 值 | ||
| 474 | + * @return | ||
| 475 | + */ | ||
| 476 | + public boolean lSet(String key, List<String> value) { | ||
| 477 | + try { | ||
| 478 | + redisTemplate.opsForList().rightPushAll(key, value); | ||
| 479 | + return true; | ||
| 480 | + } catch (Exception e) { | ||
| 481 | + e.printStackTrace(); | ||
| 482 | + return false; | ||
| 483 | + } | ||
| 484 | + } | ||
| 485 | + | ||
| 486 | + /** | ||
| 487 | + * 将list放入缓存 | ||
| 488 | + * @param key 键 | ||
| 489 | + * @param value 值 | ||
| 490 | + * @param time 时间(秒) | ||
| 491 | + * @return | ||
| 492 | + */ | ||
| 493 | + public boolean lSet(String key, List<String> value, long time) { | ||
| 494 | + try { | ||
| 495 | + redisTemplate.opsForList().rightPushAll(key, value); | ||
| 496 | + if (time > 0) { | ||
| 497 | + expire(key, time); | ||
| 498 | + } | ||
| 499 | + return true; | ||
| 500 | + } catch (Exception e) { | ||
| 501 | + e.printStackTrace(); | ||
| 502 | + return false; | ||
| 503 | + } | ||
| 504 | + } | ||
| 505 | + | ||
| 506 | + /** | ||
| 507 | + * 根据索引修改list中的某条数据 | ||
| 508 | + * @param key 键 | ||
| 509 | + * @param index 索引 | ||
| 510 | + * @param value 值 | ||
| 511 | + * @return | ||
| 512 | + */ | ||
| 513 | + public boolean lUpdateIndex(String key, long index,String value) { | ||
| 514 | + try { | ||
| 515 | + redisTemplate.opsForList().set(key, index, value); | ||
| 516 | + return true; | ||
| 517 | + } catch (Exception e) { | ||
| 518 | + e.printStackTrace(); | ||
| 519 | + return false; | ||
| 520 | + } | ||
| 521 | + } | ||
| 522 | + | ||
| 523 | + /** | ||
| 524 | + * 移除N个值为value | ||
| 525 | + * @param key 键 | ||
| 526 | + * @param count 移除多少个 | ||
| 527 | + * @param value 值 | ||
| 528 | + * @return 移除的个数 | ||
| 529 | + */ | ||
| 530 | + public long lRemove(String key,long count,String value) { | ||
| 531 | + try { | ||
| 532 | + Long remove = redisTemplate.opsForList().remove(key, count, value); | ||
| 533 | + return remove; | ||
| 534 | + } catch (Exception e) { | ||
| 535 | + e.printStackTrace(); | ||
| 536 | + return 0; | ||
| 537 | + } | ||
| 538 | + } | ||
| 539 | + | ||
| 540 | + /** | ||
| 541 | + * 模糊查询获取key值 | ||
| 542 | + * @param pattern | ||
| 543 | + * @return | ||
| 544 | + */ | ||
| 545 | + public Set keys(String pattern){ | ||
| 546 | + return redisTemplate.keys(pattern); | ||
| 547 | + } | ||
| 548 | + | ||
| 549 | + /** | ||
| 550 | + * 使用Redis的消息队列 | ||
| 551 | + * @param channel | ||
| 552 | + * @param message 消息内容 | ||
| 553 | + */ | ||
| 554 | + public void convertAndSend(String channel, String message){ | ||
| 555 | + redisTemplate.convertAndSend(channel,message); | ||
| 556 | + } | ||
| 557 | + | ||
| 558 | + | ||
| 559 | + //=========BoundListOperations 用法 start============ | ||
| 560 | + | ||
| 561 | + /** | ||
| 562 | + *将数据添加到Redis的list中(从右边添加) | ||
| 563 | + * @param listKey | ||
| 564 | + * @param expireEnum 有效期的枚举类 | ||
| 565 | + * @param values 待添加的数据 | ||
| 566 | + */ | ||
| 567 | +// public void addToListRight(String listKey, Status.ExpireEnum expireEnum, String... values) { | ||
| 568 | +// //绑定操作 | ||
| 569 | +// BoundListOperations<String, String> boundValueOperations = redisTemplate.boundListOps(listKey); | ||
| 570 | +// //插入数据 | ||
| 571 | +// boundValueOperations.rightPushAll(values); | ||
| 572 | +// //设置过期时间 | ||
| 573 | +// boundValueOperations.expire(expireEnum.getTime(),expireEnum.getTimeUnit()); | ||
| 574 | +// } | ||
| 575 | + /** | ||
| 576 | + * 根据起始结束序号遍历Redis中的list | ||
| 577 | + * @param listKey | ||
| 578 | + * @param start 起始序号 | ||
| 579 | + * @param end 结束序号 | ||
| 580 | + * @return | ||
| 581 | + */ | ||
| 582 | + public List<String> rangeList(String listKey, long start, long end) { | ||
| 583 | + //绑定操作 | ||
| 584 | + BoundListOperations<String, String> boundValueOperations = redisTemplate.boundListOps(listKey); | ||
| 585 | + //查询数据 | ||
| 586 | + return boundValueOperations.range(start, end); | ||
| 587 | + } | ||
| 588 | + /** | ||
| 589 | + * 弹出右边的值 --- 并且移除这个值 | ||
| 590 | + * @param listKey | ||
| 591 | + */ | ||
| 592 | + public String rifhtPop(String listKey){ | ||
| 593 | + //绑定操作 | ||
| 594 | + BoundListOperations<String, String> boundValueOperations = redisTemplate.boundListOps(listKey); | ||
| 595 | + return boundValueOperations.rightPop(); | ||
| 596 | + } | ||
| 597 | + | ||
| 598 | + //=========BoundListOperations 用法 End============ | ||
| 599 | + | ||
| 600 | +} |
src/main/java/com/tianbo/warehouse/util/XML/MakeImfMeta.java
100644 → 100755
src/main/java/com/tianbo/warehouse/util/XML/XML2ENTITY.java
100644 → 100755
src/main/java/com/tianbo/warehouse/util/XML/XMLXPath.java
100644 → 100755
src/main/java/com/tianbo/warehouse/validate/CheckUserExist.java
100644 → 100755
src/main/resources/generator/generatorConfig.xml
100644 → 100755
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> | 4 | "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> |
| 5 | <generatorConfiguration> | 5 | <generatorConfiguration> |
| 6 | <!-- 数据库驱动:选择你的本地硬盘上面的数据库驱动包--> | 6 | <!-- 数据库驱动:选择你的本地硬盘上面的数据库驱动包--> |
| 7 | - <classPathEntry location="/Users/mrz/Downloads/mybatis-generator-core-1.3.2/lib/mysql-connector-java-5.1.25-bin.jar"/> | 7 | + <classPathEntry location="/Users/shenhailong/.m2/repository/mysql/mysql-connector-java/5.1.30/mysql-connector-java-5.1.30.jar"/> |
| 8 | <!--<classPathEntry location="/Users/mrz/Documents/maven/ojdbc6.jar"/>--> | 8 | <!--<classPathEntry location="/Users/mrz/Documents/maven/ojdbc6.jar"/>--> |
| 9 | <context id="DB2Tables" targetRuntime="MyBatis3"> | 9 | <context id="DB2Tables" targetRuntime="MyBatis3"> |
| 10 | <commentGenerator> | 10 | <commentGenerator> |
| @@ -14,9 +14,9 @@ | @@ -14,9 +14,9 @@ | ||
| 14 | </commentGenerator> | 14 | </commentGenerator> |
| 15 | <!--数据库链接URL,用户名、密码 --> | 15 | <!--数据库链接URL,用户名、密码 --> |
| 16 | <jdbcConnection driverClass="com.mysql.jdbc.Driver" | 16 | <jdbcConnection driverClass="com.mysql.jdbc.Driver" |
| 17 | - connectionURL="jdbc:mysql://127.0.0.1:3307/statistics" | ||
| 18 | - userId="root" | ||
| 19 | - password=""> | 17 | + connectionURL="jdbc:mysql://118.31.66.166:3306/HQPT_USER" |
| 18 | + userId="110" | ||
| 19 | + password="QAHqCJf2kFYCLirM"> | ||
| 20 | </jdbcConnection> | 20 | </jdbcConnection> |
| 21 | <!--<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"--> | 21 | <!--<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"--> |
| 22 | <!--connectionURL="jdbc:oracle:thin:@10.50.3.68:1521:CGODW"--> | 22 | <!--connectionURL="jdbc:oracle:thin:@10.50.3.68:1521:CGODW"--> |
| @@ -45,6 +45,6 @@ | @@ -45,6 +45,6 @@ | ||
| 45 | <property name="enableSubPackages" value="true"/> | 45 | <property name="enableSubPackages" value="true"/> |
| 46 | </javaClientGenerator> | 46 | </javaClientGenerator> |
| 47 | <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> | 47 | <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> |
| 48 | - <table tableName="attachment" domainObjectName="Attachment" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> | 48 | + <table tableName="staff_aparment_come_car" domainObjectName="StaffApartmentComeCar" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> |
| 49 | </context> | 49 | </context> |
| 50 | </generatorConfiguration> | 50 | </generatorConfiguration> |
src/main/resources/mapping/AttachmentMapper.xml
100644 → 100755
src/main/resources/mapping/CompanyMapper.xml
0 → 100755
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.CompanyMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.Company" > | ||
| 5 | + <id column="company_id" property="companyId" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="company_name" property="companyName" jdbcType="VARCHAR" /> | ||
| 7 | + <result column="group_id" property="groupId" jdbcType="VARCHAR" /> | ||
| 8 | + <result column="creat_time" property="creatTime" jdbcType="TIMESTAMP" /> | ||
| 9 | + <result column="company_status" property="companyStatus" jdbcType="VARCHAR" /> | ||
| 10 | + </resultMap> | ||
| 11 | + <sql id="Base_Column_List" > | ||
| 12 | + company_id, company_name, group_id, creat_time, company_status | ||
| 13 | + </sql> | ||
| 14 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 15 | + select | ||
| 16 | + <include refid="Base_Column_List" /> | ||
| 17 | + from company | ||
| 18 | + where company_id = #{companyId,jdbcType=VARCHAR} | ||
| 19 | + </select> | ||
| 20 | + | ||
| 21 | + <select id="findAll" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 22 | + select | ||
| 23 | + <include refid="Base_Column_List" /> | ||
| 24 | + from company | ||
| 25 | + <if test="companyName != '' and companyName != null"> | ||
| 26 | + where company_name = #{companyName,jdbcType=VARCHAR} | ||
| 27 | + </if> | ||
| 28 | + ORDER BY company_id | ||
| 29 | + </select> | ||
| 30 | + | ||
| 31 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
| 32 | + delete from company | ||
| 33 | + where company_id = #{companyId,jdbcType=VARCHAR} | ||
| 34 | + </delete> | ||
| 35 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.Company" > | ||
| 36 | + insert into company (company_id, company_name, group_id, | ||
| 37 | + creat_time, company_status) | ||
| 38 | + values (#{companyId,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{groupId,jdbcType=VARCHAR}, | ||
| 39 | + #{creatTime,jdbcType=TIMESTAMP}, #{companyStatus,jdbcType=VARCHAR}) | ||
| 40 | + </insert> | ||
| 41 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.Company" > | ||
| 42 | + insert into company | ||
| 43 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 44 | + <if test="companyId != null" > | ||
| 45 | + company_id, | ||
| 46 | + </if> | ||
| 47 | + <if test="companyName != null" > | ||
| 48 | + company_name, | ||
| 49 | + </if> | ||
| 50 | + <if test="groupId != null" > | ||
| 51 | + group_id, | ||
| 52 | + </if> | ||
| 53 | + <if test="creatTime != null" > | ||
| 54 | + creat_time, | ||
| 55 | + </if> | ||
| 56 | + <if test="companyStatus != null" > | ||
| 57 | + company_status, | ||
| 58 | + </if> | ||
| 59 | + </trim> | ||
| 60 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 61 | + <if test="companyId != null" > | ||
| 62 | + #{companyId,jdbcType=VARCHAR}, | ||
| 63 | + </if> | ||
| 64 | + <if test="companyName != null" > | ||
| 65 | + #{companyName,jdbcType=VARCHAR}, | ||
| 66 | + </if> | ||
| 67 | + <if test="groupId != null" > | ||
| 68 | + #{groupId,jdbcType=VARCHAR}, | ||
| 69 | + </if> | ||
| 70 | + <if test="creatTime != null" > | ||
| 71 | + #{creatTime,jdbcType=TIMESTAMP}, | ||
| 72 | + </if> | ||
| 73 | + <if test="companyStatus != null" > | ||
| 74 | + #{companyStatus,jdbcType=VARCHAR}, | ||
| 75 | + </if> | ||
| 76 | + </trim> | ||
| 77 | + </insert> | ||
| 78 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.Company" > | ||
| 79 | + update company | ||
| 80 | + <set > | ||
| 81 | + <if test="companyName != null" > | ||
| 82 | + company_name = #{companyName,jdbcType=VARCHAR}, | ||
| 83 | + </if> | ||
| 84 | + <if test="groupId != null" > | ||
| 85 | + group_id = #{groupId,jdbcType=VARCHAR}, | ||
| 86 | + </if> | ||
| 87 | + <if test="creatTime != null" > | ||
| 88 | + creat_time = #{creatTime,jdbcType=TIMESTAMP}, | ||
| 89 | + </if> | ||
| 90 | + <if test="companyStatus != null" > | ||
| 91 | + company_status = #{companyStatus,jdbcType=VARCHAR}, | ||
| 92 | + </if> | ||
| 93 | + </set> | ||
| 94 | + where company_id = #{companyId,jdbcType=VARCHAR} | ||
| 95 | + </update> | ||
| 96 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.Company" > | ||
| 97 | + update company | ||
| 98 | + set company_name = #{companyName,jdbcType=VARCHAR}, | ||
| 99 | + group_id = #{groupId,jdbcType=VARCHAR}, | ||
| 100 | + creat_time = #{creatTime,jdbcType=TIMESTAMP}, | ||
| 101 | + company_status = #{companyStatus,jdbcType=VARCHAR} | ||
| 102 | + where company_id = #{companyId,jdbcType=VARCHAR} | ||
| 103 | + </update> | ||
| 104 | + | ||
| 105 | +</mapper> |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.DepartmentMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.Department" > | ||
| 5 | + <id column="department_id" property="departmentId" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="department_name" property="departmentName" jdbcType="VARCHAR" /> | ||
| 7 | + <result column="creat_time" property="creatTime" jdbcType="DATE" /> | ||
| 8 | + <result column="company_id" property="companyId" jdbcType="VARCHAR" /> | ||
| 9 | + </resultMap> | ||
| 10 | + <sql id="Base_Column_List" > | ||
| 11 | + department_id, department_name, creat_time, company_id | ||
| 12 | + </sql> | ||
| 13 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 14 | + select | ||
| 15 | + <include refid="Base_Column_List" /> | ||
| 16 | + from department | ||
| 17 | + where department_id = #{departmentId,jdbcType=VARCHAR} | ||
| 18 | + </select> | ||
| 19 | + | ||
| 20 | + <select id="findAll" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 21 | + select | ||
| 22 | + <include refid="Base_Column_List" /> | ||
| 23 | + from department | ||
| 24 | + <if test="departmentName != '' and departmentName != null" > | ||
| 25 | + where department_name = #{departmentName, jdbcType=VARCHAR} | ||
| 26 | + </if> | ||
| 27 | + ORDER BY department_id | ||
| 28 | + </select> | ||
| 29 | + | ||
| 30 | + <select id="count" parameterType="string" resultType="int"> | ||
| 31 | + select count(*) from department where department_id = #{value} | ||
| 32 | + </select> | ||
| 33 | + | ||
| 34 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
| 35 | + delete from department | ||
| 36 | + where department_id = #{departmentId,jdbcType=VARCHAR} | ||
| 37 | + </delete> | ||
| 38 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.Department" > | ||
| 39 | + insert into department (department_id, department_name, creat_time, | ||
| 40 | + company_id) | ||
| 41 | + values (#{departmentId,jdbcType=VARCHAR}, #{departmentName,jdbcType=VARCHAR}, #{creatTime,jdbcType=DATE}, | ||
| 42 | + #{companyId,jdbcType=VARCHAR}) | ||
| 43 | + </insert> | ||
| 44 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.Department" > | ||
| 45 | + insert into department | ||
| 46 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 47 | + <if test="departmentId != null" > | ||
| 48 | + department_id, | ||
| 49 | + </if> | ||
| 50 | + <if test="departmentName != null" > | ||
| 51 | + department_name, | ||
| 52 | + </if> | ||
| 53 | + <if test="creatTime != null" > | ||
| 54 | + creat_time, | ||
| 55 | + </if> | ||
| 56 | + <if test="companyId != null" > | ||
| 57 | + company_id, | ||
| 58 | + </if> | ||
| 59 | + </trim> | ||
| 60 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 61 | + <if test="departmentId != null" > | ||
| 62 | + #{departmentId,jdbcType=VARCHAR}, | ||
| 63 | + </if> | ||
| 64 | + <if test="departmentName != null" > | ||
| 65 | + #{departmentName,jdbcType=VARCHAR}, | ||
| 66 | + </if> | ||
| 67 | + <if test="creatTime != null" > | ||
| 68 | + #{creatTime,jdbcType=DATE}, | ||
| 69 | + </if> | ||
| 70 | + <if test="companyId != null" > | ||
| 71 | + #{companyId,jdbcType=VARCHAR}, | ||
| 72 | + </if> | ||
| 73 | + </trim> | ||
| 74 | + </insert> | ||
| 75 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.Department" > | ||
| 76 | + update department | ||
| 77 | + <set > | ||
| 78 | + <if test="departmentName != null" > | ||
| 79 | + department_name = #{departmentName,jdbcType=VARCHAR}, | ||
| 80 | + </if> | ||
| 81 | + <if test="creatTime != null" > | ||
| 82 | + creat_time = #{creatTime,jdbcType=DATE}, | ||
| 83 | + </if> | ||
| 84 | + <if test="companyId != null" > | ||
| 85 | + company_id = #{companyId,jdbcType=VARCHAR}, | ||
| 86 | + </if> | ||
| 87 | + </set> | ||
| 88 | + where department_id = #{departmentId,jdbcType=VARCHAR} | ||
| 89 | + </update> | ||
| 90 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.Department" > | ||
| 91 | + update department | ||
| 92 | + set department_name = #{departmentName,jdbcType=VARCHAR}, | ||
| 93 | + creat_time = #{creatTime,jdbcType=DATE}, | ||
| 94 | + company_id = #{companyId,jdbcType=VARCHAR} | ||
| 95 | + where department_id = #{departmentId,jdbcType=VARCHAR} | ||
| 96 | + </update> | ||
| 97 | +</mapper> |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.Group_companyMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.Group_company" > | ||
| 5 | + <id column="group_id" property="groupId" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="group_name" property="groupName" jdbcType="VARCHAR" /> | ||
| 7 | + <result column="creat_time" property="creatTime" jdbcType="TIMESTAMP" /> | ||
| 8 | + </resultMap> | ||
| 9 | + <sql id="Base_Column_List" > | ||
| 10 | + group_id, group_name, creat_time | ||
| 11 | + </sql> | ||
| 12 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 13 | + select | ||
| 14 | + <include refid="Base_Column_List" /> | ||
| 15 | + from group_company | ||
| 16 | + where group_id = #{groupId,jdbcType=VARCHAR} | ||
| 17 | + </select> | ||
| 18 | + | ||
| 19 | + <select id="findAll" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 20 | + select | ||
| 21 | + <include refid="Base_Column_List" /> | ||
| 22 | + from group_company | ||
| 23 | + <if test="groupName != ''" > | ||
| 24 | + where group_name = #{groupName, jdbcType=VARCHAR} | ||
| 25 | + </if> | ||
| 26 | + ORDER BY group_id | ||
| 27 | + </select> | ||
| 28 | + | ||
| 29 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
| 30 | + delete from group_company | ||
| 31 | + where group_id = #{groupId,jdbcType=VARCHAR} | ||
| 32 | + </delete> | ||
| 33 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.Group_company" > | ||
| 34 | + insert into group_company (group_id, group_name, creat_time | ||
| 35 | + ) | ||
| 36 | + values (#{groupId,jdbcType=VARCHAR}, #{groupName,jdbcType=VARCHAR}, #{creatTime,jdbcType=TIMESTAMP} | ||
| 37 | + ) | ||
| 38 | + </insert> | ||
| 39 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.Group_company" > | ||
| 40 | + insert into group_company | ||
| 41 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 42 | + <if test="groupId != null" > | ||
| 43 | + group_id, | ||
| 44 | + </if> | ||
| 45 | + <if test="groupName != null" > | ||
| 46 | + group_name, | ||
| 47 | + </if> | ||
| 48 | + <if test="creatTime != null" > | ||
| 49 | + creat_time, | ||
| 50 | + </if> | ||
| 51 | + </trim> | ||
| 52 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 53 | + <if test="groupId != null" > | ||
| 54 | + #{groupId,jdbcType=VARCHAR}, | ||
| 55 | + </if> | ||
| 56 | + <if test="groupName != null" > | ||
| 57 | + #{groupName,jdbcType=VARCHAR}, | ||
| 58 | + </if> | ||
| 59 | + <if test="creatTime != null" > | ||
| 60 | + #{creatTime,jdbcType=TIMESTAMP}, | ||
| 61 | + </if> | ||
| 62 | + </trim> | ||
| 63 | + </insert> | ||
| 64 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.Group_company" > | ||
| 65 | + update group_company | ||
| 66 | + <set > | ||
| 67 | + <if test="groupName != null" > | ||
| 68 | + group_name = #{groupName,jdbcType=VARCHAR}, | ||
| 69 | + </if> | ||
| 70 | + <if test="creatTime != null" > | ||
| 71 | + creat_time = #{creatTime,jdbcType=TIMESTAMP}, | ||
| 72 | + </if> | ||
| 73 | + </set> | ||
| 74 | + where group_id = #{groupId,jdbcType=VARCHAR} | ||
| 75 | + </update> | ||
| 76 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.Group_company" > | ||
| 77 | + update group_company | ||
| 78 | + set group_name = #{groupName,jdbcType=VARCHAR}, | ||
| 79 | + creat_time = #{creatTime,jdbcType=TIMESTAMP} | ||
| 80 | + where group_id = #{groupId,jdbcType=VARCHAR} | ||
| 81 | + </update> | ||
| 82 | +</mapper> |
src/main/resources/mapping/LOGMapper.xml
100644 → 100755
| @@ -35,6 +35,13 @@ | @@ -35,6 +35,13 @@ | ||
| 35 | , | 35 | , |
| 36 | <include refid="Blob_Column_List" /> | 36 | <include refid="Blob_Column_List" /> |
| 37 | from log | 37 | from log |
| 38 | + where 1=1 | ||
| 39 | + <if test="modelnamecn != ''"> | ||
| 40 | + and modelNameCN = #{modelnamecn, jdbcType=VARCHAR} | ||
| 41 | + </if> | ||
| 42 | + <if test="username != ''"> | ||
| 43 | + and userName = #{username, jdbcType=VARCHAR} | ||
| 44 | + </if> | ||
| 38 | </select> | 45 | </select> |
| 39 | <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | 46 | <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> |
| 40 | delete from log | 47 | delete from log |
src/main/resources/mapping/PERMISSIONMapper.xml
100644 → 100755
| @@ -28,15 +28,19 @@ | @@ -28,15 +28,19 @@ | ||
| 28 | <select id="findAll" resultMap="BaseResultMap" > | 28 | <select id="findAll" resultMap="BaseResultMap" > |
| 29 | select | 29 | select |
| 30 | <include refid="Base_Column_List" /> | 30 | <include refid="Base_Column_List" /> |
| 31 | - from permission ORDER BY ismenu,parent_id,permission_order | 31 | + from permission |
| 32 | + <if test="name != '' and name !=null" > | ||
| 33 | + where name = #{name, jdbcType=VARCHAR} | ||
| 34 | + </if> | ||
| 35 | + ORDER BY permission_order | ||
| 32 | </select> | 36 | </select> |
| 33 | <select id="getRolePermisson" resultMap="BaseResultMap" parameterType="java.lang.Integer"> | 37 | <select id="getRolePermisson" resultMap="BaseResultMap" parameterType="java.lang.Integer"> |
| 34 | SELECT P.* | 38 | SELECT P.* |
| 35 | FROM role R | 39 | FROM role R |
| 36 | LEFT JOIN role_permission RP ON R.role_id = RP.role_id | 40 | LEFT JOIN role_permission RP ON R.role_id = RP.role_id |
| 37 | LEFT JOIN permission P ON RP.permission_id = P.permission_id | 41 | LEFT JOIN permission P ON RP.permission_id = P.permission_id |
| 38 | - WHERE r.role_id=#{roleId,jdbcType=INTEGER} | ||
| 39 | - ORDER BY P.ismenu,P.name,p.permission_order DESC | 42 | + WHERE R.role_id=#{roleId,jdbcType=INTEGER} |
| 43 | + ORDER BY P.ismenu,P.name,P.permission_order DESC | ||
| 40 | </select> | 44 | </select> |
| 41 | <select id="getAllMenus" resultMap="BaseResultMap" > | 45 | <select id="getAllMenus" resultMap="BaseResultMap" > |
| 42 | SELECT | 46 | SELECT |
src/main/resources/mapping/ROLEMapper.xml
100644 → 100755
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 3 | -<mapper namespace="com.tianbo.warehouse.dao.ROLEMapper"> | ||
| 4 | - <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.ROLE"> | ||
| 5 | - <id column="role_id" jdbcType="INTEGER" property="roleId" /> | ||
| 6 | - <result column="role_name" jdbcType="VARCHAR" property="roleName" /> | ||
| 7 | - <result column="role_sign" jdbcType="VARCHAR" property="roleSign" /> | ||
| 8 | - <result column="description" jdbcType="VARCHAR" property="description" /> | ||
| 9 | - <collection property="permissions" ofType="PERMISSION" javaType="java.util.ArrayList" select="com.tianbo.warehouse.dao.PERMISSIONMapper.getRolePermisson" column="role_id"></collection> | 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.ROLEMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.ROLE" > | ||
| 5 | + <id column="role_id" property="roleId" jdbcType="INTEGER" /> | ||
| 6 | + <result column="role_name" property="roleName" jdbcType="VARCHAR" /> | ||
| 7 | + <result column="role_sign" property="roleSign" jdbcType="VARCHAR" /> | ||
| 8 | + <result column="description" property="description" jdbcType="VARCHAR" /> | ||
| 9 | + <result column="department_id" property="departmentId" jdbcType="VARCHAR" /> | ||
| 10 | + <collection property="permissions" ofType="com.tianbo.warehouse.model.PERMISSION" javaType="java.util.ArrayList" select="com.tianbo.warehouse.dao.PERMISSIONMapper.getRolePermisson" column="role_id"></collection> | ||
| 10 | </resultMap> | 11 | </resultMap> |
| 11 | - <sql id="Base_Column_List"> | ||
| 12 | - role_id, role_name, role_sign, description | 12 | + <sql id="Base_Column_List" > |
| 13 | + role_id, role_name, role_sign, description, department_id | ||
| 13 | </sql> | 14 | </sql> |
| 14 | - <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | 15 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > |
| 15 | select | 16 | select |
| 16 | <include refid="Base_Column_List" /> | 17 | <include refid="Base_Column_List" /> |
| 17 | from role | 18 | from role |
| 18 | where role_id = #{roleId,jdbcType=INTEGER} | 19 | where role_id = #{roleId,jdbcType=INTEGER} |
| 19 | </select> | 20 | </select> |
| 20 | - <select id="findAll" resultMap="BaseResultMap" > | 21 | + |
| 22 | + <select id="findAll" resultMap="BaseResultMap" parameterType="java.lang.String"> | ||
| 21 | SELECT | 23 | SELECT |
| 22 | <include refid="Base_Column_List" /> | 24 | <include refid="Base_Column_List" /> |
| 23 | FROM role | 25 | FROM role |
| 26 | + <if test="roleName != '' and roleName !=null" > | ||
| 27 | + where role_name = #{roleName, jdbcType=VARCHAR} | ||
| 28 | + </if> | ||
| 24 | </select> | 29 | </select> |
| 25 | <select id="findRolesByUserId" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | 30 | <select id="findRolesByUserId" parameterType="java.lang.Integer" resultMap="BaseResultMap"> |
| 26 | SELECT | 31 | SELECT |
| @@ -31,68 +36,78 @@ | @@ -31,68 +36,78 @@ | ||
| 31 | LEFT JOIN role R ON R.role_id= UR.role_id | 36 | LEFT JOIN role R ON R.role_id= UR.role_id |
| 32 | where U.user_id = #{userId,jdbcType=INTEGER} | 37 | where U.user_id = #{userId,jdbcType=INTEGER} |
| 33 | </select> | 38 | </select> |
| 34 | - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | 39 | + |
| 40 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" > | ||
| 35 | delete from role | 41 | delete from role |
| 36 | where role_id = #{roleId,jdbcType=INTEGER} | 42 | where role_id = #{roleId,jdbcType=INTEGER} |
| 37 | </delete> | 43 | </delete> |
| 38 | - <insert id="insert" parameterType="com.tianbo.warehouse.model.ROLE"> | 44 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.ROLE" > |
| 39 | insert into role (role_id, role_name, role_sign, | 45 | insert into role (role_id, role_name, role_sign, |
| 40 | - description) | 46 | + description, department_id) |
| 41 | values (#{roleId,jdbcType=INTEGER}, #{roleName,jdbcType=VARCHAR}, #{roleSign,jdbcType=VARCHAR}, | 47 | values (#{roleId,jdbcType=INTEGER}, #{roleName,jdbcType=VARCHAR}, #{roleSign,jdbcType=VARCHAR}, |
| 42 | - #{description,jdbcType=VARCHAR}) | 48 | + #{description,jdbcType=VARCHAR}, #{departmentId,jdbcType=VARCHAR}) |
| 43 | </insert> | 49 | </insert> |
| 44 | - | ||
| 45 | - <insert id="insertSelective" parameterType="Integer"> | 50 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.ROLE" > |
| 46 | insert into role | 51 | insert into role |
| 47 | - <trim prefix="(" suffix=")" suffixOverrides=","> | ||
| 48 | - <if test="roleId != null"> | 52 | + <trim prefix="(" suffix=")" suffixOverrides="," > |
| 53 | + <if test="roleId != null" > | ||
| 49 | role_id, | 54 | role_id, |
| 50 | </if> | 55 | </if> |
| 51 | - <if test="roleName != null"> | 56 | + <if test="roleName != null" > |
| 52 | role_name, | 57 | role_name, |
| 53 | </if> | 58 | </if> |
| 54 | - <if test="roleSign != null"> | 59 | + <if test="roleSign != null" > |
| 55 | role_sign, | 60 | role_sign, |
| 56 | </if> | 61 | </if> |
| 57 | - <if test="description != null"> | 62 | + <if test="description != null" > |
| 58 | description, | 63 | description, |
| 59 | </if> | 64 | </if> |
| 65 | + <if test="departmentId != null" > | ||
| 66 | + department_id, | ||
| 67 | + </if> | ||
| 60 | </trim> | 68 | </trim> |
| 61 | - <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
| 62 | - <if test="roleId != null"> | 69 | + <trim prefix="values (" suffix=")" suffixOverrides="," > |
| 70 | + <if test="roleId != null" > | ||
| 63 | #{roleId,jdbcType=INTEGER}, | 71 | #{roleId,jdbcType=INTEGER}, |
| 64 | </if> | 72 | </if> |
| 65 | - <if test="roleName != null"> | 73 | + <if test="roleName != null" > |
| 66 | #{roleName,jdbcType=VARCHAR}, | 74 | #{roleName,jdbcType=VARCHAR}, |
| 67 | </if> | 75 | </if> |
| 68 | - <if test="roleSign != null"> | 76 | + <if test="roleSign != null" > |
| 69 | #{roleSign,jdbcType=VARCHAR}, | 77 | #{roleSign,jdbcType=VARCHAR}, |
| 70 | </if> | 78 | </if> |
| 71 | - <if test="description != null"> | 79 | + <if test="description != null" > |
| 72 | #{description,jdbcType=VARCHAR}, | 80 | #{description,jdbcType=VARCHAR}, |
| 73 | </if> | 81 | </if> |
| 82 | + <if test="departmentId != null" > | ||
| 83 | + #{departmentId,jdbcType=VARCHAR}, | ||
| 84 | + </if> | ||
| 74 | </trim> | 85 | </trim> |
| 75 | </insert> | 86 | </insert> |
| 76 | - <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.ROLE"> | 87 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.ROLE" > |
| 77 | update role | 88 | update role |
| 78 | - <set> | ||
| 79 | - <if test="roleName != null"> | 89 | + <set > |
| 90 | + <if test="roleName != null" > | ||
| 80 | role_name = #{roleName,jdbcType=VARCHAR}, | 91 | role_name = #{roleName,jdbcType=VARCHAR}, |
| 81 | </if> | 92 | </if> |
| 82 | - <if test="roleSign != null"> | 93 | + <if test="roleSign != null" > |
| 83 | role_sign = #{roleSign,jdbcType=VARCHAR}, | 94 | role_sign = #{roleSign,jdbcType=VARCHAR}, |
| 84 | </if> | 95 | </if> |
| 85 | - <if test="description != null"> | 96 | + <if test="description != null" > |
| 86 | description = #{description,jdbcType=VARCHAR}, | 97 | description = #{description,jdbcType=VARCHAR}, |
| 87 | </if> | 98 | </if> |
| 99 | + <if test="departmentId != null" > | ||
| 100 | + department_id = #{departmentId,jdbcType=VARCHAR}, | ||
| 101 | + </if> | ||
| 88 | </set> | 102 | </set> |
| 89 | where role_id = #{roleId,jdbcType=INTEGER} | 103 | where role_id = #{roleId,jdbcType=INTEGER} |
| 90 | </update> | 104 | </update> |
| 91 | - <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.ROLE"> | 105 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.ROLE" > |
| 92 | update role | 106 | update role |
| 93 | set role_name = #{roleName,jdbcType=VARCHAR}, | 107 | set role_name = #{roleName,jdbcType=VARCHAR}, |
| 94 | role_sign = #{roleSign,jdbcType=VARCHAR}, | 108 | role_sign = #{roleSign,jdbcType=VARCHAR}, |
| 95 | - description = #{description,jdbcType=VARCHAR} | 109 | + description = #{description,jdbcType=VARCHAR}, |
| 110 | + department_id = #{departmentId,jdbcType=VARCHAR} | ||
| 96 | where role_id = #{roleId,jdbcType=INTEGER} | 111 | where role_id = #{roleId,jdbcType=INTEGER} |
| 97 | </update> | 112 | </update> |
| 98 | </mapper> | 113 | </mapper> |
src/main/resources/mapping/RolePermissionMapper.xml
100644 → 100755
| @@ -29,11 +29,13 @@ | @@ -29,11 +29,13 @@ | ||
| 29 | values (#{id,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER}, #{permissionId,jdbcType=INTEGER} | 29 | values (#{id,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER}, #{permissionId,jdbcType=INTEGER} |
| 30 | ) | 30 | ) |
| 31 | </insert> | 31 | </insert> |
| 32 | - <insert id="insertRolePerm" parameterType="RolePermission"> | 32 | + <insert id="insertRolePerm" parameterType="com.tianbo.warehouse.model.RolePermission"> |
| 33 | insert into role_permission(role_id, permission_id) | 33 | insert into role_permission(role_id, permission_id) |
| 34 | values | 34 | values |
| 35 | <foreach collection="permissionIds" item="rolePem" index="index" separator=","> | 35 | <foreach collection="permissionIds" item="rolePem" index="index" separator=","> |
| 36 | + <if test="rolePem !=null"> | ||
| 36 | (#{roleId,jdbcType=INTEGER},#{rolePem,jdbcType=INTEGER}) | 37 | (#{roleId,jdbcType=INTEGER},#{rolePem,jdbcType=INTEGER}) |
| 38 | + </if> | ||
| 37 | </foreach> | 39 | </foreach> |
| 38 | </insert> | 40 | </insert> |
| 39 | <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.RolePermission" > | 41 | <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.RolePermission" > |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.StaffApartmentComeCarMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.StaffApartmentComeCar" > | ||
| 5 | + <id column="id" property="id" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="dateTime" property="datetime" jdbcType="TIMESTAMP" /> | ||
| 7 | + <result column="comeToVisitDate" property="cometovisitdate" jdbcType="TIMESTAMP" /> | ||
| 8 | + <result column="leaveDate" property="leavedate" jdbcType="TIMESTAMP" /> | ||
| 9 | + <result column="comeToVisitName" property="cometovisitname" jdbcType="VARCHAR" /> | ||
| 10 | + <result column="carNumber" property="carnumber" jdbcType="VARCHAR" /> | ||
| 11 | + <result column="phone" property="phone" jdbcType="VARCHAR" /> | ||
| 12 | + <result column="comeMatter" property="comematter" jdbcType="VARCHAR" /> | ||
| 13 | + <result column="warchkeeper" property="warchkeeper" jdbcType="VARCHAR" /> | ||
| 14 | + <result column="remark1" property="remark1" jdbcType="VARCHAR" /> | ||
| 15 | + <result column="remark2" property="remark2" jdbcType="VARCHAR" /> | ||
| 16 | + <result column="remark3" property="remark3" jdbcType="VARCHAR" /> | ||
| 17 | + <result column="userId" property="userid" jdbcType="INTEGER" /> | ||
| 18 | + <result column="createTime" property="createtime" jdbcType="TIMESTAMP" /> | ||
| 19 | + </resultMap> | ||
| 20 | + <sql id="Base_Column_List" > | ||
| 21 | + id, dateTime, comeToVisitDate, leaveDate, comeToVisitName, carNumber, phone, comeMatter, | ||
| 22 | + warchkeeper, remark1, remark2, remark3, userId, createTime | ||
| 23 | + </sql> | ||
| 24 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 25 | + select | ||
| 26 | + <include refid="Base_Column_List" /> | ||
| 27 | + from staff_aparment_come_car | ||
| 28 | + where id = #{id,jdbcType=VARCHAR} | ||
| 29 | + </select> | ||
| 30 | + | ||
| 31 | + <select id="findAll" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 32 | + select | ||
| 33 | + <include refid="Base_Column_List" /> | ||
| 34 | + from staff_aparment_come_car | ||
| 35 | + <if test="comeToVisitName != null and comeToVisitName!=''" > | ||
| 36 | + where comeToVisitName = #{comeToVisitName, jdbcType=VARCHAR} | ||
| 37 | + </if> | ||
| 38 | + </select> | ||
| 39 | + | ||
| 40 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
| 41 | + delete from staff_aparment_come_car | ||
| 42 | + where id = #{id,jdbcType=VARCHAR} | ||
| 43 | + </delete> | ||
| 44 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.StaffApartmentComeCar" > | ||
| 45 | + insert into staff_aparment_come_car (id, dateTime, comeToVisitDate, | ||
| 46 | + leaveDate, comeToVisitName, carNumber, | ||
| 47 | + phone, comeMatter, warchkeeper, | ||
| 48 | + remark1, remark2, remark3, | ||
| 49 | + userId, createTime) | ||
| 50 | + values (#{id,jdbcType=VARCHAR}, #{datetime,jdbcType=TIMESTAMP}, #{cometovisitdate,jdbcType=TIMESTAMP}, | ||
| 51 | + #{leavedate,jdbcType=TIMESTAMP}, #{cometovisitname,jdbcType=VARCHAR}, #{carnumber,jdbcType=VARCHAR}, | ||
| 52 | + #{phone,jdbcType=VARCHAR}, #{comematter,jdbcType=VARCHAR}, #{warchkeeper,jdbcType=VARCHAR}, | ||
| 53 | + #{remark1,jdbcType=VARCHAR}, #{remark2,jdbcType=VARCHAR}, #{remark3,jdbcType=VARCHAR}, | ||
| 54 | + #{userid,jdbcType=INTEGER}, #{createtime,jdbcType=TIMESTAMP}) | ||
| 55 | + </insert> | ||
| 56 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.StaffApartmentComeCar" > | ||
| 57 | + insert into staff_aparment_come_car | ||
| 58 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 59 | + <if test="id != null" > | ||
| 60 | + id, | ||
| 61 | + </if> | ||
| 62 | + <if test="datetime != null" > | ||
| 63 | + dateTime, | ||
| 64 | + </if> | ||
| 65 | + <if test="cometovisitdate != null" > | ||
| 66 | + comeToVisitDate, | ||
| 67 | + </if> | ||
| 68 | + <if test="leavedate != null" > | ||
| 69 | + leaveDate, | ||
| 70 | + </if> | ||
| 71 | + <if test="cometovisitname != null" > | ||
| 72 | + comeToVisitName, | ||
| 73 | + </if> | ||
| 74 | + <if test="carnumber != null" > | ||
| 75 | + carNumber, | ||
| 76 | + </if> | ||
| 77 | + <if test="phone != null" > | ||
| 78 | + phone, | ||
| 79 | + </if> | ||
| 80 | + <if test="comematter != null" > | ||
| 81 | + comeMatter, | ||
| 82 | + </if> | ||
| 83 | + <if test="warchkeeper != null" > | ||
| 84 | + warchkeeper, | ||
| 85 | + </if> | ||
| 86 | + <if test="remark1 != null" > | ||
| 87 | + remark1, | ||
| 88 | + </if> | ||
| 89 | + <if test="remark2 != null" > | ||
| 90 | + remark2, | ||
| 91 | + </if> | ||
| 92 | + <if test="remark3 != null" > | ||
| 93 | + remark3, | ||
| 94 | + </if> | ||
| 95 | + <if test="userid != null" > | ||
| 96 | + userId, | ||
| 97 | + </if> | ||
| 98 | + <if test="createtime != null" > | ||
| 99 | + createTime, | ||
| 100 | + </if> | ||
| 101 | + </trim> | ||
| 102 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 103 | + <if test="id != null" > | ||
| 104 | + #{id,jdbcType=VARCHAR}, | ||
| 105 | + </if> | ||
| 106 | + <if test="datetime != null" > | ||
| 107 | + #{datetime,jdbcType=TIMESTAMP}, | ||
| 108 | + </if> | ||
| 109 | + <if test="cometovisitdate != null" > | ||
| 110 | + #{cometovisitdate,jdbcType=TIMESTAMP}, | ||
| 111 | + </if> | ||
| 112 | + <if test="leavedate != null" > | ||
| 113 | + #{leavedate,jdbcType=TIMESTAMP}, | ||
| 114 | + </if> | ||
| 115 | + <if test="cometovisitname != null" > | ||
| 116 | + #{cometovisitname,jdbcType=VARCHAR}, | ||
| 117 | + </if> | ||
| 118 | + <if test="carnumber != null" > | ||
| 119 | + #{carnumber,jdbcType=VARCHAR}, | ||
| 120 | + </if> | ||
| 121 | + <if test="phone != null" > | ||
| 122 | + #{phone,jdbcType=VARCHAR}, | ||
| 123 | + </if> | ||
| 124 | + <if test="comematter != null" > | ||
| 125 | + #{comematter,jdbcType=VARCHAR}, | ||
| 126 | + </if> | ||
| 127 | + <if test="warchkeeper != null" > | ||
| 128 | + #{warchkeeper,jdbcType=VARCHAR}, | ||
| 129 | + </if> | ||
| 130 | + <if test="remark1 != null" > | ||
| 131 | + #{remark1,jdbcType=VARCHAR}, | ||
| 132 | + </if> | ||
| 133 | + <if test="remark2 != null" > | ||
| 134 | + #{remark2,jdbcType=VARCHAR}, | ||
| 135 | + </if> | ||
| 136 | + <if test="remark3 != null" > | ||
| 137 | + #{remark3,jdbcType=VARCHAR}, | ||
| 138 | + </if> | ||
| 139 | + <if test="userid != null" > | ||
| 140 | + #{userid,jdbcType=INTEGER}, | ||
| 141 | + </if> | ||
| 142 | + <if test="createtime != null" > | ||
| 143 | + #{createtime,jdbcType=TIMESTAMP}, | ||
| 144 | + </if> | ||
| 145 | + </trim> | ||
| 146 | + </insert> | ||
| 147 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.StaffApartmentComeCar" > | ||
| 148 | + update staff_aparment_come_car | ||
| 149 | + <set > | ||
| 150 | + <if test="datetime != null" > | ||
| 151 | + dateTime = #{datetime,jdbcType=TIMESTAMP}, | ||
| 152 | + </if> | ||
| 153 | + <if test="cometovisitdate != null" > | ||
| 154 | + comeToVisitDate = #{cometovisitdate,jdbcType=TIMESTAMP}, | ||
| 155 | + </if> | ||
| 156 | + <if test="leavedate != null" > | ||
| 157 | + leaveDate = #{leavedate,jdbcType=TIMESTAMP}, | ||
| 158 | + </if> | ||
| 159 | + <if test="cometovisitname != null" > | ||
| 160 | + comeToVisitName = #{cometovisitname,jdbcType=VARCHAR}, | ||
| 161 | + </if> | ||
| 162 | + <if test="carnumber != null" > | ||
| 163 | + carNumber = #{carnumber,jdbcType=VARCHAR}, | ||
| 164 | + </if> | ||
| 165 | + <if test="phone != null" > | ||
| 166 | + phone = #{phone,jdbcType=VARCHAR}, | ||
| 167 | + </if> | ||
| 168 | + <if test="comematter != null" > | ||
| 169 | + comeMatter = #{comematter,jdbcType=VARCHAR}, | ||
| 170 | + </if> | ||
| 171 | + <if test="warchkeeper != null" > | ||
| 172 | + warchkeeper = #{warchkeeper,jdbcType=VARCHAR}, | ||
| 173 | + </if> | ||
| 174 | + <if test="remark1 != null" > | ||
| 175 | + remark1 = #{remark1,jdbcType=VARCHAR}, | ||
| 176 | + </if> | ||
| 177 | + <if test="remark2 != null" > | ||
| 178 | + remark2 = #{remark2,jdbcType=VARCHAR}, | ||
| 179 | + </if> | ||
| 180 | + <if test="remark3 != null" > | ||
| 181 | + remark3 = #{remark3,jdbcType=VARCHAR}, | ||
| 182 | + </if> | ||
| 183 | + <if test="userid != null" > | ||
| 184 | + userId = #{userid,jdbcType=INTEGER}, | ||
| 185 | + </if> | ||
| 186 | + <if test="createtime != null" > | ||
| 187 | + createTime = #{createtime,jdbcType=TIMESTAMP}, | ||
| 188 | + </if> | ||
| 189 | + </set> | ||
| 190 | + where id = #{id,jdbcType=VARCHAR} | ||
| 191 | + </update> | ||
| 192 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.StaffApartmentComeCar" > | ||
| 193 | + update staff_aparment_come_car | ||
| 194 | + set dateTime = #{datetime,jdbcType=TIMESTAMP}, | ||
| 195 | + comeToVisitDate = #{cometovisitdate,jdbcType=TIMESTAMP}, | ||
| 196 | + leaveDate = #{leavedate,jdbcType=TIMESTAMP}, | ||
| 197 | + comeToVisitName = #{cometovisitname,jdbcType=VARCHAR}, | ||
| 198 | + carNumber = #{carnumber,jdbcType=VARCHAR}, | ||
| 199 | + phone = #{phone,jdbcType=VARCHAR}, | ||
| 200 | + comeMatter = #{comematter,jdbcType=VARCHAR}, | ||
| 201 | + warchkeeper = #{warchkeeper,jdbcType=VARCHAR}, | ||
| 202 | + remark1 = #{remark1,jdbcType=VARCHAR}, | ||
| 203 | + remark2 = #{remark2,jdbcType=VARCHAR}, | ||
| 204 | + remark3 = #{remark3,jdbcType=VARCHAR}, | ||
| 205 | + userId = #{userid,jdbcType=INTEGER}, | ||
| 206 | + createTime = #{createtime,jdbcType=TIMESTAMP} | ||
| 207 | + where id = #{id,jdbcType=VARCHAR} | ||
| 208 | + </update> | ||
| 209 | +</mapper> |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.StaffApartmentMaintainMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.StaffApartmentMaintain" > | ||
| 5 | + <id column="id" property="id" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="repairsDate" property="repairsdate" jdbcType="TIMESTAMP" /> | ||
| 7 | + <result column="repairsContent" property="repairscontent" jdbcType="VARCHAR" /> | ||
| 8 | + <result column="reflectWay" property="reflectway" jdbcType="VARCHAR" /> | ||
| 9 | + <result column="repairsDept" property="repairsdept" jdbcType="VARCHAR" /> | ||
| 10 | + <result column="answerThePhoneName" property="answerthephonename" jdbcType="VARCHAR" /> | ||
| 11 | + <result column="repairsName" property="repairsname" jdbcType="VARCHAR" /> | ||
| 12 | + <result column="repairsPhone" property="repairsphone" jdbcType="VARCHAR" /> | ||
| 13 | + <result column="maintainDate" property="maintaindate" jdbcType="TIMESTAMP" /> | ||
| 14 | + <result column="maintainCase" property="maintaincase" jdbcType="VARCHAR" /> | ||
| 15 | + <result column="cooperateMaintainName" property="cooperatemaintainname" jdbcType="VARCHAR" /> | ||
| 16 | + <result column="meno" property="meno" jdbcType="INTEGER" /> | ||
| 17 | + <result column="remark1" property="remark1" jdbcType="VARCHAR" /> | ||
| 18 | + <result column="remark2" property="remark2" jdbcType="VARCHAR" /> | ||
| 19 | + <result column="remark3" property="remark3" jdbcType="VARCHAR" /> | ||
| 20 | + <result column="createBy" property="createby" jdbcType="INTEGER" /> | ||
| 21 | + <result column="createTime" property="createtime" jdbcType="TIMESTAMP" /> | ||
| 22 | + </resultMap> | ||
| 23 | + <sql id="Base_Column_List" > | ||
| 24 | + id, repairsDate, repairsContent, reflectWay, repairsDept, answerThePhoneName, repairsName, | ||
| 25 | + repairsPhone, maintainDate, maintainCase, cooperateMaintainName, meno, remark1, remark2, | ||
| 26 | + remark3, createBy, createTime | ||
| 27 | + </sql> | ||
| 28 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 29 | + select | ||
| 30 | + <include refid="Base_Column_List" /> | ||
| 31 | + from staff_apertment_maintain | ||
| 32 | + where id = #{id,jdbcType=VARCHAR} | ||
| 33 | + </select> | ||
| 34 | + | ||
| 35 | + <select id="findAll" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 36 | + select | ||
| 37 | + <include refid="Base_Column_List" /> | ||
| 38 | + from staff_apertment_maintain | ||
| 39 | + <if test="repairsname != null and repairsname!=''" > | ||
| 40 | + where repairsName = #{repairsname, jdbcType=VARCHAR} | ||
| 41 | + </if> | ||
| 42 | + </select> | ||
| 43 | + | ||
| 44 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
| 45 | + delete from staff_apertment_maintain | ||
| 46 | + where id = #{id,jdbcType=VARCHAR} | ||
| 47 | + </delete> | ||
| 48 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.StaffApartmentMaintain" > | ||
| 49 | + insert into staff_apertment_maintain (id, repairsDate, repairsContent, | ||
| 50 | + reflectWay, repairsDept, answerThePhoneName, | ||
| 51 | + repairsName, repairsPhone, maintainDate, | ||
| 52 | + maintainCase, cooperateMaintainName, meno, | ||
| 53 | + remark1, remark2, remark3, | ||
| 54 | + createBy, createTime) | ||
| 55 | + values (#{id,jdbcType=VARCHAR}, #{repairsdate,jdbcType=TIMESTAMP}, #{repairscontent,jdbcType=VARCHAR}, | ||
| 56 | + #{reflectway,jdbcType=VARCHAR}, #{repairsdept,jdbcType=VARCHAR}, #{answerthephonename,jdbcType=VARCHAR}, | ||
| 57 | + #{repairsname,jdbcType=VARCHAR}, #{repairsphone,jdbcType=VARCHAR}, #{maintaindate,jdbcType=TIMESTAMP}, | ||
| 58 | + #{maintaincase,jdbcType=VARCHAR}, #{cooperatemaintainname,jdbcType=VARCHAR}, #{meno,jdbcType=INTEGER}, | ||
| 59 | + #{remark1,jdbcType=VARCHAR}, #{remark2,jdbcType=VARCHAR}, #{remark3,jdbcType=VARCHAR}, | ||
| 60 | + #{createby,jdbcType=INTEGER}, #{createtime,jdbcType=TIMESTAMP}) | ||
| 61 | + </insert> | ||
| 62 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.StaffApartmentMaintain" > | ||
| 63 | + insert into staff_apertment_maintain | ||
| 64 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 65 | + <if test="id != null" > | ||
| 66 | + id, | ||
| 67 | + </if> | ||
| 68 | + <if test="repairsdate != null" > | ||
| 69 | + repairsDate, | ||
| 70 | + </if> | ||
| 71 | + <if test="repairscontent != null" > | ||
| 72 | + repairsContent, | ||
| 73 | + </if> | ||
| 74 | + <if test="reflectway != null" > | ||
| 75 | + reflectWay, | ||
| 76 | + </if> | ||
| 77 | + <if test="repairsdept != null" > | ||
| 78 | + repairsDept, | ||
| 79 | + </if> | ||
| 80 | + <if test="answerthephonename != null" > | ||
| 81 | + answerThePhoneName, | ||
| 82 | + </if> | ||
| 83 | + <if test="repairsname != null" > | ||
| 84 | + repairsName, | ||
| 85 | + </if> | ||
| 86 | + <if test="repairsphone != null" > | ||
| 87 | + repairsPhone, | ||
| 88 | + </if> | ||
| 89 | + <if test="maintaindate != null" > | ||
| 90 | + maintainDate, | ||
| 91 | + </if> | ||
| 92 | + <if test="maintaincase != null" > | ||
| 93 | + maintainCase, | ||
| 94 | + </if> | ||
| 95 | + <if test="cooperatemaintainname != null" > | ||
| 96 | + cooperateMaintainName, | ||
| 97 | + </if> | ||
| 98 | + <if test="meno != null" > | ||
| 99 | + meno, | ||
| 100 | + </if> | ||
| 101 | + <if test="remark1 != null" > | ||
| 102 | + remark1, | ||
| 103 | + </if> | ||
| 104 | + <if test="remark2 != null" > | ||
| 105 | + remark2, | ||
| 106 | + </if> | ||
| 107 | + <if test="remark3 != null" > | ||
| 108 | + remark3, | ||
| 109 | + </if> | ||
| 110 | + <if test="createby != null" > | ||
| 111 | + createBy, | ||
| 112 | + </if> | ||
| 113 | + <if test="createtime != null" > | ||
| 114 | + createTime, | ||
| 115 | + </if> | ||
| 116 | + </trim> | ||
| 117 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 118 | + <if test="id != null" > | ||
| 119 | + #{id,jdbcType=VARCHAR}, | ||
| 120 | + </if> | ||
| 121 | + <if test="repairsdate != null" > | ||
| 122 | + #{repairsdate,jdbcType=TIMESTAMP}, | ||
| 123 | + </if> | ||
| 124 | + <if test="repairscontent != null" > | ||
| 125 | + #{repairscontent,jdbcType=VARCHAR}, | ||
| 126 | + </if> | ||
| 127 | + <if test="reflectway != null" > | ||
| 128 | + #{reflectway,jdbcType=VARCHAR}, | ||
| 129 | + </if> | ||
| 130 | + <if test="repairsdept != null" > | ||
| 131 | + #{repairsdept,jdbcType=VARCHAR}, | ||
| 132 | + </if> | ||
| 133 | + <if test="answerthephonename != null" > | ||
| 134 | + #{answerthephonename,jdbcType=VARCHAR}, | ||
| 135 | + </if> | ||
| 136 | + <if test="repairsname != null" > | ||
| 137 | + #{repairsname,jdbcType=VARCHAR}, | ||
| 138 | + </if> | ||
| 139 | + <if test="repairsphone != null" > | ||
| 140 | + #{repairsphone,jdbcType=VARCHAR}, | ||
| 141 | + </if> | ||
| 142 | + <if test="maintaindate != null" > | ||
| 143 | + #{maintaindate,jdbcType=TIMESTAMP}, | ||
| 144 | + </if> | ||
| 145 | + <if test="maintaincase != null" > | ||
| 146 | + #{maintaincase,jdbcType=VARCHAR}, | ||
| 147 | + </if> | ||
| 148 | + <if test="cooperatemaintainname != null" > | ||
| 149 | + #{cooperatemaintainname,jdbcType=VARCHAR}, | ||
| 150 | + </if> | ||
| 151 | + <if test="meno != null" > | ||
| 152 | + #{meno,jdbcType=INTEGER}, | ||
| 153 | + </if> | ||
| 154 | + <if test="remark1 != null" > | ||
| 155 | + #{remark1,jdbcType=VARCHAR}, | ||
| 156 | + </if> | ||
| 157 | + <if test="remark2 != null" > | ||
| 158 | + #{remark2,jdbcType=VARCHAR}, | ||
| 159 | + </if> | ||
| 160 | + <if test="remark3 != null" > | ||
| 161 | + #{remark3,jdbcType=VARCHAR}, | ||
| 162 | + </if> | ||
| 163 | + <if test="createby != null" > | ||
| 164 | + #{createby,jdbcType=INTEGER}, | ||
| 165 | + </if> | ||
| 166 | + <if test="createtime != null" > | ||
| 167 | + #{createtime,jdbcType=TIMESTAMP}, | ||
| 168 | + </if> | ||
| 169 | + </trim> | ||
| 170 | + </insert> | ||
| 171 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.StaffApartmentMaintain" > | ||
| 172 | + update staff_apertment_maintain | ||
| 173 | + <set > | ||
| 174 | + <if test="repairsdate != null" > | ||
| 175 | + repairsDate = #{repairsdate,jdbcType=TIMESTAMP}, | ||
| 176 | + </if> | ||
| 177 | + <if test="repairscontent != null" > | ||
| 178 | + repairsContent = #{repairscontent,jdbcType=VARCHAR}, | ||
| 179 | + </if> | ||
| 180 | + <if test="reflectway != null" > | ||
| 181 | + reflectWay = #{reflectway,jdbcType=VARCHAR}, | ||
| 182 | + </if> | ||
| 183 | + <if test="repairsdept != null" > | ||
| 184 | + repairsDept = #{repairsdept,jdbcType=VARCHAR}, | ||
| 185 | + </if> | ||
| 186 | + <if test="answerthephonename != null" > | ||
| 187 | + answerThePhoneName = #{answerthephonename,jdbcType=VARCHAR}, | ||
| 188 | + </if> | ||
| 189 | + <if test="repairsname != null" > | ||
| 190 | + repairsName = #{repairsname,jdbcType=VARCHAR}, | ||
| 191 | + </if> | ||
| 192 | + <if test="repairsphone != null" > | ||
| 193 | + repairsPhone = #{repairsphone,jdbcType=VARCHAR}, | ||
| 194 | + </if> | ||
| 195 | + <if test="maintaindate != null" > | ||
| 196 | + maintainDate = #{maintaindate,jdbcType=TIMESTAMP}, | ||
| 197 | + </if> | ||
| 198 | + <if test="maintaincase != null" > | ||
| 199 | + maintainCase = #{maintaincase,jdbcType=VARCHAR}, | ||
| 200 | + </if> | ||
| 201 | + <if test="cooperatemaintainname != null" > | ||
| 202 | + cooperateMaintainName = #{cooperatemaintainname,jdbcType=VARCHAR}, | ||
| 203 | + </if> | ||
| 204 | + <if test="meno != null" > | ||
| 205 | + meno = #{meno,jdbcType=INTEGER}, | ||
| 206 | + </if> | ||
| 207 | + <if test="remark1 != null" > | ||
| 208 | + remark1 = #{remark1,jdbcType=VARCHAR}, | ||
| 209 | + </if> | ||
| 210 | + <if test="remark2 != null" > | ||
| 211 | + remark2 = #{remark2,jdbcType=VARCHAR}, | ||
| 212 | + </if> | ||
| 213 | + <if test="remark3 != null" > | ||
| 214 | + remark3 = #{remark3,jdbcType=VARCHAR}, | ||
| 215 | + </if> | ||
| 216 | + <if test="createby != null" > | ||
| 217 | + createBy = #{createby,jdbcType=INTEGER}, | ||
| 218 | + </if> | ||
| 219 | + <if test="createtime != null" > | ||
| 220 | + createTime = #{createtime,jdbcType=TIMESTAMP}, | ||
| 221 | + </if> | ||
| 222 | + </set> | ||
| 223 | + where id = #{id,jdbcType=VARCHAR} | ||
| 224 | + </update> | ||
| 225 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.StaffApartmentMaintain" > | ||
| 226 | + update staff_apertment_maintain | ||
| 227 | + set repairsDate = #{repairsdate,jdbcType=TIMESTAMP}, | ||
| 228 | + repairsContent = #{repairscontent,jdbcType=VARCHAR}, | ||
| 229 | + reflectWay = #{reflectway,jdbcType=VARCHAR}, | ||
| 230 | + repairsDept = #{repairsdept,jdbcType=VARCHAR}, | ||
| 231 | + answerThePhoneName = #{answerthephonename,jdbcType=VARCHAR}, | ||
| 232 | + repairsName = #{repairsname,jdbcType=VARCHAR}, | ||
| 233 | + repairsPhone = #{repairsphone,jdbcType=VARCHAR}, | ||
| 234 | + maintainDate = #{maintaindate,jdbcType=TIMESTAMP}, | ||
| 235 | + maintainCase = #{maintaincase,jdbcType=VARCHAR}, | ||
| 236 | + cooperateMaintainName = #{cooperatemaintainname,jdbcType=VARCHAR}, | ||
| 237 | + meno = #{meno,jdbcType=INTEGER}, | ||
| 238 | + remark1 = #{remark1,jdbcType=VARCHAR}, | ||
| 239 | + remark2 = #{remark2,jdbcType=VARCHAR}, | ||
| 240 | + remark3 = #{remark3,jdbcType=VARCHAR}, | ||
| 241 | + createBy = #{createby,jdbcType=INTEGER}, | ||
| 242 | + createTime = #{createtime,jdbcType=TIMESTAMP} | ||
| 243 | + where id = #{id,jdbcType=VARCHAR} | ||
| 244 | + </update> | ||
| 245 | +</mapper> |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.StaffApartmentOndutyMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.StaffApartmentOnduty" > | ||
| 5 | + <id column="id" property="id" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="warchkeeper" property="warchkeeper" jdbcType="VARCHAR" /> | ||
| 7 | + <result column="handOverShiftTime" property="handovershifttime" jdbcType="TIMESTAMP" /> | ||
| 8 | + <result column="publicLighting" property="publiclighting" jdbcType="VARCHAR" /> | ||
| 9 | + <result column="carPark" property="carpark" jdbcType="VARCHAR" /> | ||
| 10 | + <result column="campusAfforestation" property="campusafforestation" jdbcType="VARCHAR" /> | ||
| 11 | + <result column="fireFightingEquipment" property="firefightingequipment" jdbcType="VARCHAR" /> | ||
| 12 | + <result column="equipmentFacilities" property="equipmentfacilities" jdbcType="VARCHAR" /> | ||
| 13 | + <result column="publicSanitation" property="publicsanitation" jdbcType="VARCHAR" /> | ||
| 14 | + <result column="property" property="property" jdbcType="VARCHAR" /> | ||
| 15 | + <result column="securityDanger" property="securitydanger" jdbcType="VARCHAR" /> | ||
| 16 | + <result column="rests" property="rests" jdbcType="VARCHAR" /> | ||
| 17 | + <result column="handoverMatters" property="handovermatters" jdbcType="VARCHAR" /> | ||
| 18 | + <result column="creaTime" property="creatime" jdbcType="TIMESTAMP" /> | ||
| 19 | + <result column="userId" property="userid" jdbcType="INTEGER" /> | ||
| 20 | + <result column="remberk1" property="remberk1" jdbcType="VARCHAR" /> | ||
| 21 | + <result column="remberk2" property="remberk2" jdbcType="VARCHAR" /> | ||
| 22 | + <result column="remberk3" property="remberk3" jdbcType="VARCHAR" /> | ||
| 23 | + </resultMap> | ||
| 24 | + <sql id="Base_Column_List" > | ||
| 25 | + id, warchkeeper, handOverShiftTime, publicLighting, carPark, campusAfforestation, | ||
| 26 | + fireFightingEquipment, equipmentFacilities, publicSanitation, property, securityDanger, | ||
| 27 | + rests, handoverMatters, creaTime, userId, remberk1, remberk2, remberk3 | ||
| 28 | + </sql> | ||
| 29 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 30 | + select | ||
| 31 | + <include refid="Base_Column_List" /> | ||
| 32 | + from staff_apartment_on_duty | ||
| 33 | + where id = #{id,jdbcType=VARCHAR} | ||
| 34 | + </select> | ||
| 35 | + | ||
| 36 | + <select id="findAll" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 37 | + select | ||
| 38 | + <include refid="Base_Column_List" /> | ||
| 39 | + from staff_apartment_on_duty | ||
| 40 | + <if test="warchkeeper != null and warchkeeper!=''" > | ||
| 41 | + where warchkeeper = #{warchkeeper, jdbcType=VARCHAR} | ||
| 42 | + </if> | ||
| 43 | + </select> | ||
| 44 | + | ||
| 45 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
| 46 | + delete from staff_apartment_on_duty | ||
| 47 | + where id = #{id,jdbcType=VARCHAR} | ||
| 48 | + </delete> | ||
| 49 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.StaffApartmentOnduty" > | ||
| 50 | + insert into staff_apartment_on_duty (id, warchkeeper, handOverShiftTime, | ||
| 51 | + publicLighting, carPark, campusAfforestation, | ||
| 52 | + fireFightingEquipment, equipmentFacilities, | ||
| 53 | + publicSanitation, property, securityDanger, | ||
| 54 | + rests, handoverMatters, creaTime, | ||
| 55 | + userId, remberk1, remberk2, | ||
| 56 | + remberk3) | ||
| 57 | + values (#{id,jdbcType=VARCHAR}, #{warchkeeper,jdbcType=VARCHAR}, #{handovershifttime,jdbcType=TIMESTAMP}, | ||
| 58 | + #{publiclighting,jdbcType=VARCHAR}, #{carpark,jdbcType=VARCHAR}, #{campusafforestation,jdbcType=VARCHAR}, | ||
| 59 | + #{firefightingequipment,jdbcType=VARCHAR}, #{equipmentfacilities,jdbcType=VARCHAR}, | ||
| 60 | + #{publicsanitation,jdbcType=VARCHAR}, #{property,jdbcType=VARCHAR}, #{securitydanger,jdbcType=VARCHAR}, | ||
| 61 | + #{rests,jdbcType=VARCHAR}, #{handovermatters,jdbcType=VARCHAR}, #{creatime,jdbcType=TIMESTAMP}, | ||
| 62 | + #{userid,jdbcType=INTEGER}, #{remberk1,jdbcType=VARCHAR}, #{remberk2,jdbcType=VARCHAR}, | ||
| 63 | + #{remberk3,jdbcType=VARCHAR}) | ||
| 64 | + </insert> | ||
| 65 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.StaffApartmentOnduty" > | ||
| 66 | + insert into staff_apartment_on_duty | ||
| 67 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 68 | + <if test="id != null" > | ||
| 69 | + id, | ||
| 70 | + </if> | ||
| 71 | + <if test="warchkeeper != null" > | ||
| 72 | + warchkeeper, | ||
| 73 | + </if> | ||
| 74 | + <if test="handovershifttime != null" > | ||
| 75 | + handOverShiftTime, | ||
| 76 | + </if> | ||
| 77 | + <if test="publiclighting != null" > | ||
| 78 | + publicLighting, | ||
| 79 | + </if> | ||
| 80 | + <if test="carpark != null" > | ||
| 81 | + carPark, | ||
| 82 | + </if> | ||
| 83 | + <if test="campusafforestation != null" > | ||
| 84 | + campusAfforestation, | ||
| 85 | + </if> | ||
| 86 | + <if test="firefightingequipment != null" > | ||
| 87 | + fireFightingEquipment, | ||
| 88 | + </if> | ||
| 89 | + <if test="equipmentfacilities != null" > | ||
| 90 | + equipmentFacilities, | ||
| 91 | + </if> | ||
| 92 | + <if test="publicsanitation != null" > | ||
| 93 | + publicSanitation, | ||
| 94 | + </if> | ||
| 95 | + <if test="property != null" > | ||
| 96 | + property, | ||
| 97 | + </if> | ||
| 98 | + <if test="securitydanger != null" > | ||
| 99 | + securityDanger, | ||
| 100 | + </if> | ||
| 101 | + <if test="rests != null" > | ||
| 102 | + rests, | ||
| 103 | + </if> | ||
| 104 | + <if test="handovermatters != null" > | ||
| 105 | + handoverMatters, | ||
| 106 | + </if> | ||
| 107 | + <if test="creatime != null" > | ||
| 108 | + creaTime, | ||
| 109 | + </if> | ||
| 110 | + <if test="userid != null" > | ||
| 111 | + userId, | ||
| 112 | + </if> | ||
| 113 | + <if test="remberk1 != null" > | ||
| 114 | + remberk1, | ||
| 115 | + </if> | ||
| 116 | + <if test="remberk2 != null" > | ||
| 117 | + remberk2, | ||
| 118 | + </if> | ||
| 119 | + <if test="remberk3 != null" > | ||
| 120 | + remberk3, | ||
| 121 | + </if> | ||
| 122 | + </trim> | ||
| 123 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 124 | + <if test="id != null" > | ||
| 125 | + #{id,jdbcType=VARCHAR}, | ||
| 126 | + </if> | ||
| 127 | + <if test="warchkeeper != null" > | ||
| 128 | + #{warchkeeper,jdbcType=VARCHAR}, | ||
| 129 | + </if> | ||
| 130 | + <if test="handovershifttime != null" > | ||
| 131 | + #{handovershifttime,jdbcType=TIMESTAMP}, | ||
| 132 | + </if> | ||
| 133 | + <if test="publiclighting != null" > | ||
| 134 | + #{publiclighting,jdbcType=VARCHAR}, | ||
| 135 | + </if> | ||
| 136 | + <if test="carpark != null" > | ||
| 137 | + #{carpark,jdbcType=VARCHAR}, | ||
| 138 | + </if> | ||
| 139 | + <if test="campusafforestation != null" > | ||
| 140 | + #{campusafforestation,jdbcType=VARCHAR}, | ||
| 141 | + </if> | ||
| 142 | + <if test="firefightingequipment != null" > | ||
| 143 | + #{firefightingequipment,jdbcType=VARCHAR}, | ||
| 144 | + </if> | ||
| 145 | + <if test="equipmentfacilities != null" > | ||
| 146 | + #{equipmentfacilities,jdbcType=VARCHAR}, | ||
| 147 | + </if> | ||
| 148 | + <if test="publicsanitation != null" > | ||
| 149 | + #{publicsanitation,jdbcType=VARCHAR}, | ||
| 150 | + </if> | ||
| 151 | + <if test="property != null" > | ||
| 152 | + #{property,jdbcType=VARCHAR}, | ||
| 153 | + </if> | ||
| 154 | + <if test="securitydanger != null" > | ||
| 155 | + #{securitydanger,jdbcType=VARCHAR}, | ||
| 156 | + </if> | ||
| 157 | + <if test="rests != null" > | ||
| 158 | + #{rests,jdbcType=VARCHAR}, | ||
| 159 | + </if> | ||
| 160 | + <if test="handovermatters != null" > | ||
| 161 | + #{handovermatters,jdbcType=VARCHAR}, | ||
| 162 | + </if> | ||
| 163 | + <if test="creatime != null" > | ||
| 164 | + #{creatime,jdbcType=TIMESTAMP}, | ||
| 165 | + </if> | ||
| 166 | + <if test="userid != null" > | ||
| 167 | + #{userid,jdbcType=INTEGER}, | ||
| 168 | + </if> | ||
| 169 | + <if test="remberk1 != null" > | ||
| 170 | + #{remberk1,jdbcType=VARCHAR}, | ||
| 171 | + </if> | ||
| 172 | + <if test="remberk2 != null" > | ||
| 173 | + #{remberk2,jdbcType=VARCHAR}, | ||
| 174 | + </if> | ||
| 175 | + <if test="remberk3 != null" > | ||
| 176 | + #{remberk3,jdbcType=VARCHAR}, | ||
| 177 | + </if> | ||
| 178 | + </trim> | ||
| 179 | + </insert> | ||
| 180 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.StaffApartmentOnduty" > | ||
| 181 | + update staff_apartment_on_duty | ||
| 182 | + <set > | ||
| 183 | + <if test="warchkeeper != null" > | ||
| 184 | + warchkeeper = #{warchkeeper,jdbcType=VARCHAR}, | ||
| 185 | + </if> | ||
| 186 | + <if test="handovershifttime != null" > | ||
| 187 | + handOverShiftTime = #{handovershifttime,jdbcType=TIMESTAMP}, | ||
| 188 | + </if> | ||
| 189 | + <if test="publiclighting != null" > | ||
| 190 | + publicLighting = #{publiclighting,jdbcType=VARCHAR}, | ||
| 191 | + </if> | ||
| 192 | + <if test="carpark != null" > | ||
| 193 | + carPark = #{carpark,jdbcType=VARCHAR}, | ||
| 194 | + </if> | ||
| 195 | + <if test="campusafforestation != null" > | ||
| 196 | + campusAfforestation = #{campusafforestation,jdbcType=VARCHAR}, | ||
| 197 | + </if> | ||
| 198 | + <if test="firefightingequipment != null" > | ||
| 199 | + fireFightingEquipment = #{firefightingequipment,jdbcType=VARCHAR}, | ||
| 200 | + </if> | ||
| 201 | + <if test="equipmentfacilities != null" > | ||
| 202 | + equipmentFacilities = #{equipmentfacilities,jdbcType=VARCHAR}, | ||
| 203 | + </if> | ||
| 204 | + <if test="publicsanitation != null" > | ||
| 205 | + publicSanitation = #{publicsanitation,jdbcType=VARCHAR}, | ||
| 206 | + </if> | ||
| 207 | + <if test="property != null" > | ||
| 208 | + property = #{property,jdbcType=VARCHAR}, | ||
| 209 | + </if> | ||
| 210 | + <if test="securitydanger != null" > | ||
| 211 | + securityDanger = #{securitydanger,jdbcType=VARCHAR}, | ||
| 212 | + </if> | ||
| 213 | + <if test="rests != null" > | ||
| 214 | + rests = #{rests,jdbcType=VARCHAR}, | ||
| 215 | + </if> | ||
| 216 | + <if test="handovermatters != null" > | ||
| 217 | + handoverMatters = #{handovermatters,jdbcType=VARCHAR}, | ||
| 218 | + </if> | ||
| 219 | + <if test="creatime != null" > | ||
| 220 | + creaTime = #{creatime,jdbcType=TIMESTAMP}, | ||
| 221 | + </if> | ||
| 222 | + <if test="userid != null" > | ||
| 223 | + userId = #{userid,jdbcType=INTEGER}, | ||
| 224 | + </if> | ||
| 225 | + <if test="remberk1 != null" > | ||
| 226 | + remberk1 = #{remberk1,jdbcType=VARCHAR}, | ||
| 227 | + </if> | ||
| 228 | + <if test="remberk2 != null" > | ||
| 229 | + remberk2 = #{remberk2,jdbcType=VARCHAR}, | ||
| 230 | + </if> | ||
| 231 | + <if test="remberk3 != null" > | ||
| 232 | + remberk3 = #{remberk3,jdbcType=VARCHAR}, | ||
| 233 | + </if> | ||
| 234 | + </set> | ||
| 235 | + where id = #{id,jdbcType=VARCHAR} | ||
| 236 | + </update> | ||
| 237 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.StaffApartmentOnduty" > | ||
| 238 | + update staff_apartment_on_duty | ||
| 239 | + set warchkeeper = #{warchkeeper,jdbcType=VARCHAR}, | ||
| 240 | + handOverShiftTime = #{handovershifttime,jdbcType=TIMESTAMP}, | ||
| 241 | + publicLighting = #{publiclighting,jdbcType=VARCHAR}, | ||
| 242 | + carPark = #{carpark,jdbcType=VARCHAR}, | ||
| 243 | + campusAfforestation = #{campusafforestation,jdbcType=VARCHAR}, | ||
| 244 | + fireFightingEquipment = #{firefightingequipment,jdbcType=VARCHAR}, | ||
| 245 | + equipmentFacilities = #{equipmentfacilities,jdbcType=VARCHAR}, | ||
| 246 | + publicSanitation = #{publicsanitation,jdbcType=VARCHAR}, | ||
| 247 | + property = #{property,jdbcType=VARCHAR}, | ||
| 248 | + securityDanger = #{securitydanger,jdbcType=VARCHAR}, | ||
| 249 | + rests = #{rests,jdbcType=VARCHAR}, | ||
| 250 | + handoverMatters = #{handovermatters,jdbcType=VARCHAR}, | ||
| 251 | + creaTime = #{creatime,jdbcType=TIMESTAMP}, | ||
| 252 | + userId = #{userid,jdbcType=INTEGER}, | ||
| 253 | + remberk1 = #{remberk1,jdbcType=VARCHAR}, | ||
| 254 | + remberk2 = #{remberk2,jdbcType=VARCHAR}, | ||
| 255 | + remberk3 = #{remberk3,jdbcType=VARCHAR} | ||
| 256 | + where id = #{id,jdbcType=VARCHAR} | ||
| 257 | + </update> | ||
| 258 | +</mapper> |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.StaffApartmentSpareKeyMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.StaffApartmentSpareKey" > | ||
| 5 | + <id column="id" property="id" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="useDate" property="usedate" jdbcType="TIMESTAMP" /> | ||
| 7 | + <result column="roomNum" property="roomnum" jdbcType="VARCHAR" /> | ||
| 8 | + <result column="useTime" property="usetime" jdbcType="TIMESTAMP" /> | ||
| 9 | + <result column="staffName" property="staffname" jdbcType="VARCHAR" /> | ||
| 10 | + <result column="dept" property="dept" jdbcType="VARCHAR" /> | ||
| 11 | + <result column="phone" property="phone" jdbcType="VARCHAR" /> | ||
| 12 | + <result column="icType" property="ictype" jdbcType="VARCHAR" /> | ||
| 13 | + <result column="icCard" property="iccard" jdbcType="VARCHAR" /> | ||
| 14 | + <result column="roomDuty" property="roomduty" jdbcType="VARCHAR" /> | ||
| 15 | + <result column="remark1" property="remark1" jdbcType="VARCHAR" /> | ||
| 16 | + <result column="remark2" property="remark2" jdbcType="VARCHAR" /> | ||
| 17 | + <result column="remark3" property="remark3" jdbcType="VARCHAR" /> | ||
| 18 | + <result column="createBy" property="createby" jdbcType="INTEGER" /> | ||
| 19 | + <result column="createTime" property="createtime" jdbcType="TIMESTAMP" /> | ||
| 20 | + </resultMap> | ||
| 21 | + <sql id="Base_Column_List" > | ||
| 22 | + id, useDate, roomNum, useTime, staffName, dept, phone, icType, icCard, roomDuty, | ||
| 23 | + remark1, remark2, remark3, createBy, createTime | ||
| 24 | + </sql> | ||
| 25 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 26 | + select | ||
| 27 | + <include refid="Base_Column_List" /> | ||
| 28 | + from staff_apartment_spare_key | ||
| 29 | + where id = #{id,jdbcType=VARCHAR} | ||
| 30 | + </select> | ||
| 31 | + | ||
| 32 | + <select id="findAll" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 33 | + select | ||
| 34 | + <include refid="Base_Column_List" /> | ||
| 35 | + from staff_apartment_spare_key | ||
| 36 | + <if test="staffname != null and staffname!=''" > | ||
| 37 | + where staffname = #{staffname, jdbcType=VARCHAR} | ||
| 38 | + </if> | ||
| 39 | + </select> | ||
| 40 | + | ||
| 41 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
| 42 | + delete from staff_apartment_spare_key | ||
| 43 | + where id = #{id,jdbcType=VARCHAR} | ||
| 44 | + </delete> | ||
| 45 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.StaffApartmentSpareKey" > | ||
| 46 | + insert into staff_apartment_spare_key (id, useDate, roomNum, | ||
| 47 | + useTime, staffName, dept, | ||
| 48 | + phone, icType, icCard, | ||
| 49 | + roomDuty, remark1, remark2, | ||
| 50 | + remark3, createBy, createTime | ||
| 51 | + ) | ||
| 52 | + values (#{id,jdbcType=VARCHAR}, #{usedate,jdbcType=TIMESTAMP}, #{roomnum,jdbcType=VARCHAR}, | ||
| 53 | + #{usetime,jdbcType=TIMESTAMP}, #{staffname,jdbcType=VARCHAR}, #{dept,jdbcType=VARCHAR}, | ||
| 54 | + #{phone,jdbcType=VARCHAR}, #{ictype,jdbcType=VARCHAR}, #{iccard,jdbcType=VARCHAR}, | ||
| 55 | + #{roomduty,jdbcType=VARCHAR}, #{remark1,jdbcType=VARCHAR}, #{remark2,jdbcType=VARCHAR}, | ||
| 56 | + #{remark3,jdbcType=VARCHAR}, #{createby,jdbcType=INTEGER}, #{createtime,jdbcType=TIMESTAMP} | ||
| 57 | + ) | ||
| 58 | + </insert> | ||
| 59 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.StaffApartmentSpareKey" > | ||
| 60 | + insert into staff_apartment_spare_key | ||
| 61 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 62 | + <if test="id != null" > | ||
| 63 | + id, | ||
| 64 | + </if> | ||
| 65 | + <if test="usedate != null" > | ||
| 66 | + useDate, | ||
| 67 | + </if> | ||
| 68 | + <if test="roomnum != null" > | ||
| 69 | + roomNum, | ||
| 70 | + </if> | ||
| 71 | + <if test="usetime != null" > | ||
| 72 | + useTime, | ||
| 73 | + </if> | ||
| 74 | + <if test="staffname != null" > | ||
| 75 | + staffName, | ||
| 76 | + </if> | ||
| 77 | + <if test="dept != null" > | ||
| 78 | + dept, | ||
| 79 | + </if> | ||
| 80 | + <if test="phone != null" > | ||
| 81 | + phone, | ||
| 82 | + </if> | ||
| 83 | + <if test="ictype != null" > | ||
| 84 | + icType, | ||
| 85 | + </if> | ||
| 86 | + <if test="iccard != null" > | ||
| 87 | + icCard, | ||
| 88 | + </if> | ||
| 89 | + <if test="roomduty != null" > | ||
| 90 | + roomDuty, | ||
| 91 | + </if> | ||
| 92 | + <if test="remark1 != null" > | ||
| 93 | + remark1, | ||
| 94 | + </if> | ||
| 95 | + <if test="remark2 != null" > | ||
| 96 | + remark2, | ||
| 97 | + </if> | ||
| 98 | + <if test="remark3 != null" > | ||
| 99 | + remark3, | ||
| 100 | + </if> | ||
| 101 | + <if test="createby != null" > | ||
| 102 | + createBy, | ||
| 103 | + </if> | ||
| 104 | + <if test="createtime != null" > | ||
| 105 | + createTime, | ||
| 106 | + </if> | ||
| 107 | + </trim> | ||
| 108 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 109 | + <if test="id != null" > | ||
| 110 | + #{id,jdbcType=VARCHAR}, | ||
| 111 | + </if> | ||
| 112 | + <if test="usedate != null" > | ||
| 113 | + #{usedate,jdbcType=TIMESTAMP}, | ||
| 114 | + </if> | ||
| 115 | + <if test="roomnum != null" > | ||
| 116 | + #{roomnum,jdbcType=VARCHAR}, | ||
| 117 | + </if> | ||
| 118 | + <if test="usetime != null" > | ||
| 119 | + #{usetime,jdbcType=TIMESTAMP}, | ||
| 120 | + </if> | ||
| 121 | + <if test="staffname != null" > | ||
| 122 | + #{staffname,jdbcType=VARCHAR}, | ||
| 123 | + </if> | ||
| 124 | + <if test="dept != null" > | ||
| 125 | + #{dept,jdbcType=VARCHAR}, | ||
| 126 | + </if> | ||
| 127 | + <if test="phone != null" > | ||
| 128 | + #{phone,jdbcType=VARCHAR}, | ||
| 129 | + </if> | ||
| 130 | + <if test="ictype != null" > | ||
| 131 | + #{ictype,jdbcType=VARCHAR}, | ||
| 132 | + </if> | ||
| 133 | + <if test="iccard != null" > | ||
| 134 | + #{iccard,jdbcType=VARCHAR}, | ||
| 135 | + </if> | ||
| 136 | + <if test="roomduty != null" > | ||
| 137 | + #{roomduty,jdbcType=VARCHAR}, | ||
| 138 | + </if> | ||
| 139 | + <if test="remark1 != null" > | ||
| 140 | + #{remark1,jdbcType=VARCHAR}, | ||
| 141 | + </if> | ||
| 142 | + <if test="remark2 != null" > | ||
| 143 | + #{remark2,jdbcType=VARCHAR}, | ||
| 144 | + </if> | ||
| 145 | + <if test="remark3 != null" > | ||
| 146 | + #{remark3,jdbcType=VARCHAR}, | ||
| 147 | + </if> | ||
| 148 | + <if test="createby != null" > | ||
| 149 | + #{createby,jdbcType=INTEGER}, | ||
| 150 | + </if> | ||
| 151 | + <if test="createtime != null" > | ||
| 152 | + #{createtime,jdbcType=TIMESTAMP}, | ||
| 153 | + </if> | ||
| 154 | + </trim> | ||
| 155 | + </insert> | ||
| 156 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.StaffApartmentSpareKey" > | ||
| 157 | + update staff_apartment_spare_key | ||
| 158 | + <set > | ||
| 159 | + <if test="usedate != null" > | ||
| 160 | + useDate = #{usedate,jdbcType=TIMESTAMP}, | ||
| 161 | + </if> | ||
| 162 | + <if test="roomnum != null" > | ||
| 163 | + roomNum = #{roomnum,jdbcType=VARCHAR}, | ||
| 164 | + </if> | ||
| 165 | + <if test="usetime != null" > | ||
| 166 | + useTime = #{usetime,jdbcType=TIMESTAMP}, | ||
| 167 | + </if> | ||
| 168 | + <if test="staffname != null" > | ||
| 169 | + staffName = #{staffname,jdbcType=VARCHAR}, | ||
| 170 | + </if> | ||
| 171 | + <if test="dept != null" > | ||
| 172 | + dept = #{dept,jdbcType=VARCHAR}, | ||
| 173 | + </if> | ||
| 174 | + <if test="phone != null" > | ||
| 175 | + phone = #{phone,jdbcType=VARCHAR}, | ||
| 176 | + </if> | ||
| 177 | + <if test="ictype != null" > | ||
| 178 | + icType = #{ictype,jdbcType=VARCHAR}, | ||
| 179 | + </if> | ||
| 180 | + <if test="iccard != null" > | ||
| 181 | + icCard = #{iccard,jdbcType=VARCHAR}, | ||
| 182 | + </if> | ||
| 183 | + <if test="roomduty != null" > | ||
| 184 | + roomDuty = #{roomduty,jdbcType=VARCHAR}, | ||
| 185 | + </if> | ||
| 186 | + <if test="remark1 != null" > | ||
| 187 | + remark1 = #{remark1,jdbcType=VARCHAR}, | ||
| 188 | + </if> | ||
| 189 | + <if test="remark2 != null" > | ||
| 190 | + remark2 = #{remark2,jdbcType=VARCHAR}, | ||
| 191 | + </if> | ||
| 192 | + <if test="remark3 != null" > | ||
| 193 | + remark3 = #{remark3,jdbcType=VARCHAR}, | ||
| 194 | + </if> | ||
| 195 | + <if test="createby != null" > | ||
| 196 | + createBy = #{createby,jdbcType=INTEGER}, | ||
| 197 | + </if> | ||
| 198 | + <if test="createtime != null" > | ||
| 199 | + createTime = #{createtime,jdbcType=TIMESTAMP}, | ||
| 200 | + </if> | ||
| 201 | + </set> | ||
| 202 | + where id = #{id,jdbcType=VARCHAR} | ||
| 203 | + </update> | ||
| 204 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.StaffApartmentSpareKey" > | ||
| 205 | + update staff_apartment_spare_key | ||
| 206 | + set useDate = #{usedate,jdbcType=TIMESTAMP}, | ||
| 207 | + roomNum = #{roomnum,jdbcType=VARCHAR}, | ||
| 208 | + useTime = #{usetime,jdbcType=TIMESTAMP}, | ||
| 209 | + staffName = #{staffname,jdbcType=VARCHAR}, | ||
| 210 | + dept = #{dept,jdbcType=VARCHAR}, | ||
| 211 | + phone = #{phone,jdbcType=VARCHAR}, | ||
| 212 | + icType = #{ictype,jdbcType=VARCHAR}, | ||
| 213 | + icCard = #{iccard,jdbcType=VARCHAR}, | ||
| 214 | + roomDuty = #{roomduty,jdbcType=VARCHAR}, | ||
| 215 | + remark1 = #{remark1,jdbcType=VARCHAR}, | ||
| 216 | + remark2 = #{remark2,jdbcType=VARCHAR}, | ||
| 217 | + remark3 = #{remark3,jdbcType=VARCHAR}, | ||
| 218 | + createBy = #{createby,jdbcType=INTEGER}, | ||
| 219 | + createTime = #{createtime,jdbcType=TIMESTAMP} | ||
| 220 | + where id = #{id,jdbcType=VARCHAR} | ||
| 221 | + </update> | ||
| 222 | +</mapper> |
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.StaffSecurityInspectionMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.StaffSecurityInspection" > | ||
| 5 | + <id column="security_inspection_id" property="securityInspectionId" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="security_inspection_name" property="securityInspectionName" jdbcType="VARCHAR" /> | ||
| 7 | + <result column="security_inspection_date" property="securityInspectionDate" jdbcType="TIMESTAMP" /> | ||
| 8 | + <result column="fire_name" property="fireName" jdbcType="VARCHAR" /> | ||
| 9 | + <result column="security_electro" property="securityElectro" jdbcType="VARCHAR" /> | ||
| 10 | + <result column="fireproofing" property="fireproofing" jdbcType="VARCHAR" /> | ||
| 11 | + <result column="doubtful_person" property="doubtfulPerson" jdbcType="VARCHAR" /> | ||
| 12 | + <result column="violations_car" property="violationsCar" jdbcType="VARCHAR" /> | ||
| 13 | + <result column="builders" property="builders" jdbcType="VARCHAR" /> | ||
| 14 | + <result column="other_situations" property="otherSituations" jdbcType="VARCHAR" /> | ||
| 15 | + <result column="user_id" property="userId" jdbcType="INTEGER" /> | ||
| 16 | + <result column="realname" property="realname" jdbcType="VARCHAR" /> | ||
| 17 | + <result column="opt_time" property="optTime" jdbcType="TIMESTAMP" /> | ||
| 18 | + </resultMap> | ||
| 19 | + <sql id="Base_Column_List" > | ||
| 20 | + security_inspection_id, security_inspection_name, security_inspection_date, fire_name, | ||
| 21 | + security_electro, fireproofing, doubtful_person, violations_car, builders, other_situations, | ||
| 22 | + user_id, realname, opt_time | ||
| 23 | + </sql> | ||
| 24 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 25 | + select | ||
| 26 | + <include refid="Base_Column_List" /> | ||
| 27 | + from staff_security_inspection | ||
| 28 | + where security_inspection_id = #{securityInspectionId,jdbcType=VARCHAR} | ||
| 29 | + </select> | ||
| 30 | + | ||
| 31 | + <select id="findAll" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 32 | + select | ||
| 33 | + <include refid="Base_Column_List" /> | ||
| 34 | + from staff_security_inspection | ||
| 35 | + <if test="securityInspectionName != null and securityInspectionName!=''" > | ||
| 36 | + where security_inspection_name = #{securityInspectionName, jdbcType=VARCHAR} | ||
| 37 | + </if> | ||
| 38 | + </select> | ||
| 39 | + | ||
| 40 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
| 41 | + delete from staff_security_inspection | ||
| 42 | + where security_inspection_id = #{securityInspectionId,jdbcType=VARCHAR} | ||
| 43 | + </delete> | ||
| 44 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.StaffSecurityInspection" > | ||
| 45 | + insert into staff_security_inspection (security_inspection_id, security_inspection_name, | ||
| 46 | + security_inspection_date, fire_name, security_electro, | ||
| 47 | + fireproofing, doubtful_person, violations_car, | ||
| 48 | + builders, other_situations, user_id, | ||
| 49 | + realname, opt_time) | ||
| 50 | + values (#{securityInspectionId,jdbcType=VARCHAR}, #{securityInspectionName,jdbcType=VARCHAR}, | ||
| 51 | + #{securityInspectionDate,jdbcType=TIMESTAMP}, #{fireName,jdbcType=VARCHAR}, #{securityElectro,jdbcType=VARCHAR}, | ||
| 52 | + #{fireproofing,jdbcType=VARCHAR}, #{doubtfulPerson,jdbcType=VARCHAR}, #{violationsCar,jdbcType=VARCHAR}, | ||
| 53 | + #{builders,jdbcType=VARCHAR}, #{otherSituations,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}, | ||
| 54 | + #{realname,jdbcType=VARCHAR}, #{optTime,jdbcType=TIMESTAMP}) | ||
| 55 | + </insert> | ||
| 56 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.StaffSecurityInspection" > | ||
| 57 | + insert into staff_security_inspection | ||
| 58 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 59 | + <if test="securityInspectionId != null" > | ||
| 60 | + security_inspection_id, | ||
| 61 | + </if> | ||
| 62 | + <if test="securityInspectionName != null" > | ||
| 63 | + security_inspection_name, | ||
| 64 | + </if> | ||
| 65 | + <if test="securityInspectionDate != null" > | ||
| 66 | + security_inspection_date, | ||
| 67 | + </if> | ||
| 68 | + <if test="fireName != null" > | ||
| 69 | + fire_name, | ||
| 70 | + </if> | ||
| 71 | + <if test="securityElectro != null" > | ||
| 72 | + security_electro, | ||
| 73 | + </if> | ||
| 74 | + <if test="fireproofing != null" > | ||
| 75 | + fireproofing, | ||
| 76 | + </if> | ||
| 77 | + <if test="doubtfulPerson != null" > | ||
| 78 | + doubtful_person, | ||
| 79 | + </if> | ||
| 80 | + <if test="violationsCar != null" > | ||
| 81 | + violations_car, | ||
| 82 | + </if> | ||
| 83 | + <if test="builders != null" > | ||
| 84 | + builders, | ||
| 85 | + </if> | ||
| 86 | + <if test="otherSituations != null" > | ||
| 87 | + other_situations, | ||
| 88 | + </if> | ||
| 89 | + <if test="userId != null" > | ||
| 90 | + user_id, | ||
| 91 | + </if> | ||
| 92 | + <if test="realname != null" > | ||
| 93 | + realname, | ||
| 94 | + </if> | ||
| 95 | + <if test="optTime != null" > | ||
| 96 | + opt_time, | ||
| 97 | + </if> | ||
| 98 | + </trim> | ||
| 99 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 100 | + <if test="securityInspectionId != null" > | ||
| 101 | + #{securityInspectionId,jdbcType=VARCHAR}, | ||
| 102 | + </if> | ||
| 103 | + <if test="securityInspectionName != null" > | ||
| 104 | + #{securityInspectionName,jdbcType=VARCHAR}, | ||
| 105 | + </if> | ||
| 106 | + <if test="securityInspectionDate != null" > | ||
| 107 | + #{securityInspectionDate,jdbcType=TIMESTAMP}, | ||
| 108 | + </if> | ||
| 109 | + <if test="fireName != null" > | ||
| 110 | + #{fireName,jdbcType=VARCHAR}, | ||
| 111 | + </if> | ||
| 112 | + <if test="securityElectro != null" > | ||
| 113 | + #{securityElectro,jdbcType=VARCHAR}, | ||
| 114 | + </if> | ||
| 115 | + <if test="fireproofing != null" > | ||
| 116 | + #{fireproofing,jdbcType=VARCHAR}, | ||
| 117 | + </if> | ||
| 118 | + <if test="doubtfulPerson != null" > | ||
| 119 | + #{doubtfulPerson,jdbcType=VARCHAR}, | ||
| 120 | + </if> | ||
| 121 | + <if test="violationsCar != null" > | ||
| 122 | + #{violationsCar,jdbcType=VARCHAR}, | ||
| 123 | + </if> | ||
| 124 | + <if test="builders != null" > | ||
| 125 | + #{builders,jdbcType=VARCHAR}, | ||
| 126 | + </if> | ||
| 127 | + <if test="otherSituations != null" > | ||
| 128 | + #{otherSituations,jdbcType=VARCHAR}, | ||
| 129 | + </if> | ||
| 130 | + <if test="userId != null" > | ||
| 131 | + #{userId,jdbcType=INTEGER}, | ||
| 132 | + </if> | ||
| 133 | + <if test="realname != null" > | ||
| 134 | + #{realname,jdbcType=VARCHAR}, | ||
| 135 | + </if> | ||
| 136 | + <if test="optTime != null" > | ||
| 137 | + #{optTime,jdbcType=TIMESTAMP}, | ||
| 138 | + </if> | ||
| 139 | + </trim> | ||
| 140 | + </insert> | ||
| 141 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.StaffSecurityInspection" > | ||
| 142 | + update staff_security_inspection | ||
| 143 | + <set > | ||
| 144 | + <if test="securityInspectionName != null" > | ||
| 145 | + security_inspection_name = #{securityInspectionName,jdbcType=VARCHAR}, | ||
| 146 | + </if> | ||
| 147 | + <if test="securityInspectionDate != null" > | ||
| 148 | + security_inspection_date = #{securityInspectionDate,jdbcType=TIMESTAMP}, | ||
| 149 | + </if> | ||
| 150 | + <if test="fireName != null" > | ||
| 151 | + fire_name = #{fireName,jdbcType=VARCHAR}, | ||
| 152 | + </if> | ||
| 153 | + <if test="securityElectro != null" > | ||
| 154 | + security_electro = #{securityElectro,jdbcType=VARCHAR}, | ||
| 155 | + </if> | ||
| 156 | + <if test="fireproofing != null" > | ||
| 157 | + fireproofing = #{fireproofing,jdbcType=VARCHAR}, | ||
| 158 | + </if> | ||
| 159 | + <if test="doubtfulPerson != null" > | ||
| 160 | + doubtful_person = #{doubtfulPerson,jdbcType=VARCHAR}, | ||
| 161 | + </if> | ||
| 162 | + <if test="violationsCar != null" > | ||
| 163 | + violations_car = #{violationsCar,jdbcType=VARCHAR}, | ||
| 164 | + </if> | ||
| 165 | + <if test="builders != null" > | ||
| 166 | + builders = #{builders,jdbcType=VARCHAR}, | ||
| 167 | + </if> | ||
| 168 | + <if test="otherSituations != null" > | ||
| 169 | + other_situations = #{otherSituations,jdbcType=VARCHAR}, | ||
| 170 | + </if> | ||
| 171 | + <if test="userId != null" > | ||
| 172 | + user_id = #{userId,jdbcType=INTEGER}, | ||
| 173 | + </if> | ||
| 174 | + <if test="realname != null" > | ||
| 175 | + realname = #{realname,jdbcType=VARCHAR}, | ||
| 176 | + </if> | ||
| 177 | + <if test="optTime != null" > | ||
| 178 | + opt_time = #{optTime,jdbcType=TIMESTAMP}, | ||
| 179 | + </if> | ||
| 180 | + </set> | ||
| 181 | + where security_inspection_id = #{securityInspectionId,jdbcType=VARCHAR} | ||
| 182 | + </update> | ||
| 183 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.StaffSecurityInspection" > | ||
| 184 | + update staff_security_inspection | ||
| 185 | + set security_inspection_name = #{securityInspectionName,jdbcType=VARCHAR}, | ||
| 186 | + security_inspection_date = #{securityInspectionDate,jdbcType=TIMESTAMP}, | ||
| 187 | + fire_name = #{fireName,jdbcType=VARCHAR}, | ||
| 188 | + security_electro = #{securityElectro,jdbcType=VARCHAR}, | ||
| 189 | + fireproofing = #{fireproofing,jdbcType=VARCHAR}, | ||
| 190 | + doubtful_person = #{doubtfulPerson,jdbcType=VARCHAR}, | ||
| 191 | + violations_car = #{violationsCar,jdbcType=VARCHAR}, | ||
| 192 | + builders = #{builders,jdbcType=VARCHAR}, | ||
| 193 | + other_situations = #{otherSituations,jdbcType=VARCHAR}, | ||
| 194 | + user_id = #{userId,jdbcType=INTEGER}, | ||
| 195 | + realname = #{realname,jdbcType=VARCHAR}, | ||
| 196 | + opt_time = #{optTime,jdbcType=TIMESTAMP} | ||
| 197 | + where security_inspection_id = #{securityInspectionId,jdbcType=VARCHAR} | ||
| 198 | + </update> | ||
| 199 | +</mapper> |
src/main/resources/mapping/T_ETL_MESSAGEMapper.xml
100644 → 100755
src/main/resources/mapping/USERSMapper.xml
100644 → 100755
| @@ -49,12 +49,12 @@ | @@ -49,12 +49,12 @@ | ||
| 49 | from users | 49 | from users |
| 50 | where username = #{username,jdbcType=VARCHAR} | 50 | where username = #{username,jdbcType=VARCHAR} |
| 51 | </select> | 51 | </select> |
| 52 | - <select id="selectAllUser" resultMap="SecurityResult" parameterType="com.tianbo.warehouse.model.USERS" > | 52 | + <select id="selectAllUser" resultMap="BaseResultMap" parameterType="com.tianbo.warehouse.model.USERS" > |
| 53 | select | 53 | select |
| 54 | - <include refid="user_List" /> | ||
| 55 | - from USERS | 54 | + * |
| 55 | + from users | ||
| 56 | WHERE 1=1 | 56 | WHERE 1=1 |
| 57 | - <if test="username != null" > | 57 | + <if test=" username != null" > |
| 58 | and username = #{username,jdbcType=VARCHAR} | 58 | and username = #{username,jdbcType=VARCHAR} |
| 59 | </if> | 59 | </if> |
| 60 | <if test="realname != null" > | 60 | <if test="realname != null" > |
src/main/resources/mapping/UserRoleMapper.xml
100644 → 100755
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | +<mapper namespace="com.tianbo.warehouse.dao.WaterStationsPatrolMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.warehouse.model.WaterStationsPatrol" > | ||
| 5 | + <id column="id" property="id" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="checkProjectControlRommWaterSupplySystem" property="checkprojectcontrolrommwatersupplysystem" jdbcType="VARCHAR" /> | ||
| 7 | + <result column="checkProjectControlRommSecuritySystem" property="checkprojectcontrolrommsecuritysystem" jdbcType="VARCHAR" /> | ||
| 8 | + <result column="checkProjectControlRommRunningRecord" property="checkprojectcontrolrommrunningrecord" jdbcType="VARCHAR" /> | ||
| 9 | + <result column="checkProjectControlRommDocumentHolder" property="checkprojectcontrolrommdocumentholder" jdbcType="VARCHAR" /> | ||
| 10 | + <result column="checkProjectControlRommGround" property="checkprojectcontrolrommground" jdbcType="VARCHAR" /> | ||
| 11 | + <result column="checkProjectControlRommResponsiblePerson" property="checkprojectcontrolrommresponsibleperson" jdbcType="VARCHAR" /> | ||
| 12 | + <result column="checkProjectControlRommnote" property="checkprojectcontrolrommnote" jdbcType="VARCHAR" /> | ||
| 13 | + <result column="checkProjectFrequencyConversionShow" property="checkprojectfrequencyconversionshow" jdbcType="VARCHAR" /> | ||
| 14 | + <result column="checkProjectFrequencyConversionClose" property="checkprojectfrequencyconversionclose" jdbcType="VARCHAR" /> | ||
| 15 | + <result column="checkProjectFrequencyConversionSanitation" property="checkprojectfrequencyconversionsanitation" jdbcType="VARCHAR" /> | ||
| 16 | + <result column="checkProjectFrequencyConversionResponsiblePerson" property="checkprojectfrequencyconversionresponsibleperson" jdbcType="VARCHAR" /> | ||
| 17 | + <result column="checkProjectFrequencyConversionNote" property="checkprojectfrequencyconversionnote" jdbcType="VARCHAR" /> | ||
| 18 | + <result column="checkProjectMeterBetweenTurbidityInstrumentPowerSupply" property="checkprojectmeterbetweenturbidityinstrumentpowersupply" jdbcType="VARCHAR" /> | ||
| 19 | + <result column="checkProjectMeterBetweenTurbidityInstrumentShow" property="checkprojectmeterbetweenturbidityinstrumentshow" jdbcType="VARCHAR" /> | ||
| 20 | + <result column="checkProjectMeterBetweenTurbidityInstrumentAppearance" property="checkprojectmeterbetweenturbidityinstrumentappearance" jdbcType="VARCHAR" /> | ||
| 21 | + <result column="checkProjectMeterBetweenTurbidityInstrumentRange" property="checkprojectmeterbetweenturbidityinstrumentrange" jdbcType="VARCHAR" /> | ||
| 22 | + <result column="checkProjectMeterBetweenTurbidityInstrumentDetection" property="checkprojectmeterbetweenturbidityinstrumentdetection" jdbcType="VARCHAR" /> | ||
| 23 | + <result column="checkProjectMeterBetweenTurbidityInstrumentResponsiblePerson" property="checkprojectmeterbetweenturbidityinstrumentresponsibleperson" jdbcType="VARCHAR" /> | ||
| 24 | + <result column="checkProjectMeterBetweenTurbidityInstrumentNote" property="checkprojectmeterbetweenturbidityinstrumentnote" jdbcType="VARCHAR" /> | ||
| 25 | + <result column="checkProjectMeterBetweenFlowMeterPowerSupply" property="checkprojectmeterbetweenflowmeterpowersupply" jdbcType="VARCHAR" /> | ||
| 26 | + <result column="checkProjectMeterBetweenFlowMeterShow" property="checkprojectmeterbetweenflowmetershow" jdbcType="VARCHAR" /> | ||
| 27 | + <result column="checkProjectMeterBetweenFlowMeterAppearance" property="checkprojectmeterbetweenflowmeterappearance" jdbcType="VARCHAR" /> | ||
| 28 | + <result column="checkProjectMeterBetweenFlowMeterResponsiblePerson" property="checkprojectmeterbetweenflowmeterresponsibleperson" jdbcType="VARCHAR" /> | ||
| 29 | + <result column="checkProjectMeterBetweenFlowMeterNote" property="checkprojectmeterbetweenflowmeternote" jdbcType="VARCHAR" /> | ||
| 30 | + <result column="residualChlorineInstrumentPipeline" property="residualchlorineinstrumentpipeline" jdbcType="VARCHAR" /> | ||
| 31 | + <result column="residualChlorineInstrumentPowerSupply" property="residualchlorineinstrumentpowersupply" jdbcType="VARCHAR" /> | ||
| 32 | + <result column="residualChlorineInstrumentShow" property="residualchlorineinstrumentshow" jdbcType="VARCHAR" /> | ||
| 33 | + <result column="residualChlorineInstrumentAppearance" property="residualchlorineinstrumentappearance" jdbcType="VARCHAR" /> | ||
| 34 | + <result column="residualChlorineInstrumentPipelinMakeWater" property="residualchlorineinstrumentpipelinmakewater" jdbcType="VARCHAR" /> | ||
| 35 | + <result column="residualChlorineInstrumentEquipment" property="residualchlorineinstrumentequipment" jdbcType="VARCHAR" /> | ||
| 36 | + <result column="residualChlorineInstrumentGroundSanitation" property="residualchlorineinstrumentgroundsanitation" jdbcType="VARCHAR" /> | ||
| 37 | + <result column="residualChlorineInstrumentResponsiblePerson" property="residualchlorineinstrumentresponsibleperson" jdbcType="VARCHAR" /> | ||
| 38 | + <result column="residualChlorineInstrumentNote" property="residualchlorineinstrumentnote" jdbcType="VARCHAR" /> | ||
| 39 | + <result column="boosterPumpRoomWaterPump" property="boosterpumproomwaterpump" jdbcType="VARCHAR" /> | ||
| 40 | + <result column="boosterPumpRoomBearing" property="boosterpumproombearing" jdbcType="VARCHAR" /> | ||
| 41 | + <result column="boosterPumpRoomTheValue" property="boosterpumproomthevalue" jdbcType="VARCHAR" /> | ||
| 42 | + <result column="boosterPumpRoomPumpBody" property="boosterpumproompumpbody" jdbcType="VARCHAR" /> | ||
| 43 | + <result column="boosterPumpRoomNamePlate" property="boosterpumproomnameplate" jdbcType="VARCHAR" /> | ||
| 44 | + <result column="boosterPumpRoomPacking" property="boosterpumproompacking" jdbcType="VARCHAR" /> | ||
| 45 | + <result column="boosterPumpRoomShow" property="boosterpumproomshow" jdbcType="VARCHAR" /> | ||
| 46 | + <result column="boosterPumpRoomFan" property="boosterpumproomfan" jdbcType="VARCHAR" /> | ||
| 47 | + <result column="boosterPumpRoomDrainage" property="boosterpumproomdrainage" jdbcType="VARCHAR" /> | ||
| 48 | + <result column="boosterPumpRoomSanitation" property="boosterpumproomsanitation" jdbcType="VARCHAR" /> | ||
| 49 | + <result column="boosterPumpRoomResponsiblePerson" property="boosterpumproomresponsibleperson" jdbcType="VARCHAR" /> | ||
| 50 | + <result column="boosterPumpRoomNote" property="boosterpumproomnote" jdbcType="VARCHAR" /> | ||
| 51 | + <result column="clearWaterReserviorsStairs" property="clearwaterreserviorsstairs" jdbcType="VARCHAR" /> | ||
| 52 | + <result column="clearWaterReserviorsVent" property="clearwaterreserviorsvent" jdbcType="VARCHAR" /> | ||
| 53 | + <result column="clearWaterReserviorsPoolRoof" property="clearwaterreserviorspoolroof" jdbcType="VARCHAR" /> | ||
| 54 | + <result column="clearWaterReserviorsSanitation" property="clearwaterreserviorssanitation" jdbcType="VARCHAR" /> | ||
| 55 | + <result column="clearWaterReserviorsPumpBody" property="clearwaterreserviorspumpbody" jdbcType="VARCHAR" /> | ||
| 56 | + <result column="clearWaterReserviorsResponsiblePerson" property="clearwaterreserviorsresponsibleperson" jdbcType="VARCHAR" /> | ||
| 57 | + <result column="clearWaterReserviorsNote" property="clearwaterreserviorsnote" jdbcType="VARCHAR" /> | ||
| 58 | + <result column="betweenChlorineEquipment" property="betweenchlorineequipment" jdbcType="VARCHAR" /> | ||
| 59 | + <result column="betweenChlorinePipe" property="betweenchlorinepipe" jdbcType="VARCHAR" /> | ||
| 60 | + <result column="betweenChlorineDosingPump" property="betweenchlorinedosingpump" jdbcType="VARCHAR" /> | ||
| 61 | + <result column="betweenChlorineTraffic" property="betweenchlorinetraffic" jdbcType="VARCHAR" /> | ||
| 62 | + <result column="betweenChlorineFan" property="betweenchlorinefan" jdbcType="VARCHAR" /> | ||
| 63 | + <result column="betweenChlorineSanitation" property="betweenchlorinesanitation" jdbcType="VARCHAR" /> | ||
| 64 | + <result column="betweenChlorineResponsiblePerson" property="betweenchlorineresponsibleperson" jdbcType="VARCHAR" /> | ||
| 65 | + <result column="betweenChlorineNote" property="betweenchlorinenote" jdbcType="VARCHAR" /> | ||
| 66 | + <result column="groundEnvironmentWellLIDS" property="groundenvironmentwelllids" jdbcType="VARCHAR" /> | ||
| 67 | + <result column="groundEnvironmentDrainagen" property="groundenvironmentdrainagen" jdbcType="VARCHAR" /> | ||
| 68 | + <result column="groundEnvironmentWaterSupply" property="groundenvironmentwatersupply" jdbcType="VARCHAR" /> | ||
| 69 | + <result column="groundEnvironmentCable" property="groundenvironmentcable" jdbcType="VARCHAR" /> | ||
| 70 | + <result column="groundEnvironmentRoad" property="groundenvironmentroad" jdbcType="VARCHAR" /> | ||
| 71 | + <result column="groundEnvironmentResponsiblePerson" property="groundenvironmentresponsibleperson" jdbcType="VARCHAR" /> | ||
| 72 | + <result column="groundEnvironmentNote" property="groundenvironmentnote" jdbcType="VARCHAR" /> | ||
| 73 | + <result column="groundSecurityIllegal" property="groundsecurityillegal" jdbcType="VARCHAR" /> | ||
| 74 | + <result column="groundSecurityFire" property="groundsecurityfire" jdbcType="VARCHAR" /> | ||
| 75 | + <result column="groundSecurityRats" property="groundsecurityrats" jdbcType="VARCHAR" /> | ||
| 76 | + <result column="groundSecuritySuspiciousPersonnel" property="groundsecuritysuspiciouspersonnel" jdbcType="VARCHAR" /> | ||
| 77 | + <result column="groundSecurityResponsiblePerson" property="groundsecurityresponsibleperson" jdbcType="VARCHAR" /> | ||
| 78 | + <result column="groundSecurityNote" property="groundsecuritynote" jdbcType="VARCHAR" /> | ||
| 79 | + <result column="securityToolEmergency" property="securitytoolemergency" jdbcType="VARCHAR" /> | ||
| 80 | + <result column="securityToolFloodControlAnd" property="securitytoolfloodcontroland" jdbcType="VARCHAR" /> | ||
| 81 | + <result column="securityToolProtective" property="securitytoolprotective" jdbcType="VARCHAR" /> | ||
| 82 | + <result column="securityToolMainteance" property="securitytoolmainteance" jdbcType="VARCHAR" /> | ||
| 83 | + <result column="securityToolResponsiblePerson" property="securitytoolresponsibleperson" jdbcType="VARCHAR" /> | ||
| 84 | + <result column="securityToolNote" property="securitytoolnote" jdbcType="VARCHAR" /> | ||
| 85 | + <result column="userId" property="userid" jdbcType="INTEGER" /> | ||
| 86 | + <result column="creatTime" property="creattime" jdbcType="TIMESTAMP" /> | ||
| 87 | + <result column="reamke1" property="reamke1" jdbcType="VARCHAR" /> | ||
| 88 | + <result column="reamke2" property="reamke2" jdbcType="VARCHAR" /> | ||
| 89 | + <result column="reamke3" property="reamke3" jdbcType="VARCHAR" /> | ||
| 90 | + </resultMap> | ||
| 91 | + <sql id="Base_Column_List" > | ||
| 92 | + id, checkProjectControlRommWaterSupplySystem, checkProjectControlRommSecuritySystem, | ||
| 93 | + checkProjectControlRommRunningRecord, checkProjectControlRommDocumentHolder, checkProjectControlRommGround, | ||
| 94 | + checkProjectControlRommResponsiblePerson, checkProjectControlRommnote, checkProjectFrequencyConversionShow, | ||
| 95 | + checkProjectFrequencyConversionClose, checkProjectFrequencyConversionSanitation, | ||
| 96 | + checkProjectFrequencyConversionResponsiblePerson, checkProjectFrequencyConversionNote, | ||
| 97 | + checkProjectMeterBetweenTurbidityInstrumentPowerSupply, checkProjectMeterBetweenTurbidityInstrumentShow, | ||
| 98 | + checkProjectMeterBetweenTurbidityInstrumentAppearance, checkProjectMeterBetweenTurbidityInstrumentRange, | ||
| 99 | + checkProjectMeterBetweenTurbidityInstrumentDetection, checkProjectMeterBetweenTurbidityInstrumentResponsiblePerson, | ||
| 100 | + checkProjectMeterBetweenTurbidityInstrumentNote, checkProjectMeterBetweenFlowMeterPowerSupply, | ||
| 101 | + checkProjectMeterBetweenFlowMeterShow, checkProjectMeterBetweenFlowMeterAppearance, | ||
| 102 | + checkProjectMeterBetweenFlowMeterResponsiblePerson, checkProjectMeterBetweenFlowMeterNote, | ||
| 103 | + residualChlorineInstrumentPipeline, residualChlorineInstrumentPowerSupply, residualChlorineInstrumentShow, | ||
| 104 | + residualChlorineInstrumentAppearance, residualChlorineInstrumentPipelinMakeWater, | ||
| 105 | + residualChlorineInstrumentEquipment, residualChlorineInstrumentGroundSanitation, | ||
| 106 | + residualChlorineInstrumentResponsiblePerson, residualChlorineInstrumentNote, boosterPumpRoomWaterPump, | ||
| 107 | + boosterPumpRoomBearing, boosterPumpRoomTheValue, boosterPumpRoomPumpBody, boosterPumpRoomNamePlate, | ||
| 108 | + boosterPumpRoomPacking, boosterPumpRoomShow, boosterPumpRoomFan, boosterPumpRoomDrainage, | ||
| 109 | + boosterPumpRoomSanitation, boosterPumpRoomResponsiblePerson, boosterPumpRoomNote, | ||
| 110 | + clearWaterReserviorsStairs, clearWaterReserviorsVent, clearWaterReserviorsPoolRoof, | ||
| 111 | + clearWaterReserviorsSanitation, clearWaterReserviorsPumpBody, clearWaterReserviorsResponsiblePerson, | ||
| 112 | + clearWaterReserviorsNote, betweenChlorineEquipment, betweenChlorinePipe, betweenChlorineDosingPump, | ||
| 113 | + betweenChlorineTraffic, betweenChlorineFan, betweenChlorineSanitation, betweenChlorineResponsiblePerson, | ||
| 114 | + betweenChlorineNote, groundEnvironmentWellLIDS, groundEnvironmentDrainagen, groundEnvironmentWaterSupply, | ||
| 115 | + groundEnvironmentCable, groundEnvironmentRoad, groundEnvironmentResponsiblePerson, | ||
| 116 | + groundEnvironmentNote, groundSecurityIllegal, groundSecurityFire, groundSecurityRats, | ||
| 117 | + groundSecuritySuspiciousPersonnel, groundSecurityResponsiblePerson, groundSecurityNote, | ||
| 118 | + securityToolEmergency, securityToolFloodControlAnd, securityToolProtective, securityToolMainteance, | ||
| 119 | + securityToolResponsiblePerson, securityToolNote, userId, creatTime, reamke1, reamke2, | ||
| 120 | + reamke3 | ||
| 121 | + </sql> | ||
| 122 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
| 123 | + select | ||
| 124 | + <include refid="Base_Column_List" /> | ||
| 125 | + from water_stations_patrol | ||
| 126 | + where id = #{id,jdbcType=VARCHAR} | ||
| 127 | + </select> | ||
| 128 | + | ||
| 129 | + <select id="findAll" resultMap="BaseResultMap" > | ||
| 130 | + select | ||
| 131 | + <include refid="Base_Column_List" /> | ||
| 132 | + from water_stations_patrol | ||
| 133 | + </select> | ||
| 134 | + | ||
| 135 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
| 136 | + delete from water_stations_patrol | ||
| 137 | + where id = #{id,jdbcType=VARCHAR} | ||
| 138 | + </delete> | ||
| 139 | + <insert id="insert" parameterType="com.tianbo.warehouse.model.WaterStationsPatrol" > | ||
| 140 | + insert into water_stations_patrol (id, checkProjectControlRommWaterSupplySystem, | ||
| 141 | + checkProjectControlRommSecuritySystem, checkProjectControlRommRunningRecord, | ||
| 142 | + checkProjectControlRommDocumentHolder, checkProjectControlRommGround, | ||
| 143 | + checkProjectControlRommResponsiblePerson, checkProjectControlRommnote, | ||
| 144 | + checkProjectFrequencyConversionShow, checkProjectFrequencyConversionClose, | ||
| 145 | + checkProjectFrequencyConversionSanitation, checkProjectFrequencyConversionResponsiblePerson, | ||
| 146 | + checkProjectFrequencyConversionNote, checkProjectMeterBetweenTurbidityInstrumentPowerSupply, | ||
| 147 | + checkProjectMeterBetweenTurbidityInstrumentShow, checkProjectMeterBetweenTurbidityInstrumentAppearance, | ||
| 148 | + checkProjectMeterBetweenTurbidityInstrumentRange, checkProjectMeterBetweenTurbidityInstrumentDetection, | ||
| 149 | + checkProjectMeterBetweenTurbidityInstrumentResponsiblePerson, | ||
| 150 | + checkProjectMeterBetweenTurbidityInstrumentNote, checkProjectMeterBetweenFlowMeterPowerSupply, | ||
| 151 | + checkProjectMeterBetweenFlowMeterShow, checkProjectMeterBetweenFlowMeterAppearance, | ||
| 152 | + checkProjectMeterBetweenFlowMeterResponsiblePerson, checkProjectMeterBetweenFlowMeterNote, | ||
| 153 | + residualChlorineInstrumentPipeline, residualChlorineInstrumentPowerSupply, | ||
| 154 | + residualChlorineInstrumentShow, residualChlorineInstrumentAppearance, | ||
| 155 | + residualChlorineInstrumentPipelinMakeWater, residualChlorineInstrumentEquipment, | ||
| 156 | + residualChlorineInstrumentGroundSanitation, residualChlorineInstrumentResponsiblePerson, | ||
| 157 | + residualChlorineInstrumentNote, boosterPumpRoomWaterPump, | ||
| 158 | + boosterPumpRoomBearing, boosterPumpRoomTheValue, | ||
| 159 | + boosterPumpRoomPumpBody, boosterPumpRoomNamePlate, | ||
| 160 | + boosterPumpRoomPacking, boosterPumpRoomShow, | ||
| 161 | + boosterPumpRoomFan, boosterPumpRoomDrainage, | ||
| 162 | + boosterPumpRoomSanitation, boosterPumpRoomResponsiblePerson, | ||
| 163 | + boosterPumpRoomNote, clearWaterReserviorsStairs, | ||
| 164 | + clearWaterReserviorsVent, clearWaterReserviorsPoolRoof, | ||
| 165 | + clearWaterReserviorsSanitation, clearWaterReserviorsPumpBody, | ||
| 166 | + clearWaterReserviorsResponsiblePerson, clearWaterReserviorsNote, | ||
| 167 | + betweenChlorineEquipment, betweenChlorinePipe, | ||
| 168 | + betweenChlorineDosingPump, betweenChlorineTraffic, | ||
| 169 | + betweenChlorineFan, betweenChlorineSanitation, | ||
| 170 | + betweenChlorineResponsiblePerson, betweenChlorineNote, | ||
| 171 | + groundEnvironmentWellLIDS, groundEnvironmentDrainagen, | ||
| 172 | + groundEnvironmentWaterSupply, groundEnvironmentCable, | ||
| 173 | + groundEnvironmentRoad, groundEnvironmentResponsiblePerson, | ||
| 174 | + groundEnvironmentNote, groundSecurityIllegal, | ||
| 175 | + groundSecurityFire, groundSecurityRats, | ||
| 176 | + groundSecuritySuspiciousPersonnel, groundSecurityResponsiblePerson, | ||
| 177 | + groundSecurityNote, securityToolEmergency, | ||
| 178 | + securityToolFloodControlAnd, securityToolProtective, | ||
| 179 | + securityToolMainteance, securityToolResponsiblePerson, | ||
| 180 | + securityToolNote, userId, creatTime, | ||
| 181 | + reamke1, reamke2, reamke3 | ||
| 182 | + ) | ||
| 183 | + values (#{id,jdbcType=VARCHAR}, #{checkprojectcontrolrommwatersupplysystem,jdbcType=VARCHAR}, | ||
| 184 | + #{checkprojectcontrolrommsecuritysystem,jdbcType=VARCHAR}, #{checkprojectcontrolrommrunningrecord,jdbcType=VARCHAR}, | ||
| 185 | + #{checkprojectcontrolrommdocumentholder,jdbcType=VARCHAR}, #{checkprojectcontrolrommground,jdbcType=VARCHAR}, | ||
| 186 | + #{checkprojectcontrolrommresponsibleperson,jdbcType=VARCHAR}, #{checkprojectcontrolrommnote,jdbcType=VARCHAR}, | ||
| 187 | + #{checkprojectfrequencyconversionshow,jdbcType=VARCHAR}, #{checkprojectfrequencyconversionclose,jdbcType=VARCHAR}, | ||
| 188 | + #{checkprojectfrequencyconversionsanitation,jdbcType=VARCHAR}, #{checkprojectfrequencyconversionresponsibleperson,jdbcType=VARCHAR}, | ||
| 189 | + #{checkprojectfrequencyconversionnote,jdbcType=VARCHAR}, #{checkprojectmeterbetweenturbidityinstrumentpowersupply,jdbcType=VARCHAR}, | ||
| 190 | + #{checkprojectmeterbetweenturbidityinstrumentshow,jdbcType=VARCHAR}, #{checkprojectmeterbetweenturbidityinstrumentappearance,jdbcType=VARCHAR}, | ||
| 191 | + #{checkprojectmeterbetweenturbidityinstrumentrange,jdbcType=VARCHAR}, #{checkprojectmeterbetweenturbidityinstrumentdetection,jdbcType=VARCHAR}, | ||
| 192 | + #{checkprojectmeterbetweenturbidityinstrumentresponsibleperson,jdbcType=VARCHAR}, | ||
| 193 | + #{checkprojectmeterbetweenturbidityinstrumentnote,jdbcType=VARCHAR}, #{checkprojectmeterbetweenflowmeterpowersupply,jdbcType=VARCHAR}, | ||
| 194 | + #{checkprojectmeterbetweenflowmetershow,jdbcType=VARCHAR}, #{checkprojectmeterbetweenflowmeterappearance,jdbcType=VARCHAR}, | ||
| 195 | + #{checkprojectmeterbetweenflowmeterresponsibleperson,jdbcType=VARCHAR}, #{checkprojectmeterbetweenflowmeternote,jdbcType=VARCHAR}, | ||
| 196 | + #{residualchlorineinstrumentpipeline,jdbcType=VARCHAR}, #{residualchlorineinstrumentpowersupply,jdbcType=VARCHAR}, | ||
| 197 | + #{residualchlorineinstrumentshow,jdbcType=VARCHAR}, #{residualchlorineinstrumentappearance,jdbcType=VARCHAR}, | ||
| 198 | + #{residualchlorineinstrumentpipelinmakewater,jdbcType=VARCHAR}, #{residualchlorineinstrumentequipment,jdbcType=VARCHAR}, | ||
| 199 | + #{residualchlorineinstrumentgroundsanitation,jdbcType=VARCHAR}, #{residualchlorineinstrumentresponsibleperson,jdbcType=VARCHAR}, | ||
| 200 | + #{residualchlorineinstrumentnote,jdbcType=VARCHAR}, #{boosterpumproomwaterpump,jdbcType=VARCHAR}, | ||
| 201 | + #{boosterpumproombearing,jdbcType=VARCHAR}, #{boosterpumproomthevalue,jdbcType=VARCHAR}, | ||
| 202 | + #{boosterpumproompumpbody,jdbcType=VARCHAR}, #{boosterpumproomnameplate,jdbcType=VARCHAR}, | ||
| 203 | + #{boosterpumproompacking,jdbcType=VARCHAR}, #{boosterpumproomshow,jdbcType=VARCHAR}, | ||
| 204 | + #{boosterpumproomfan,jdbcType=VARCHAR}, #{boosterpumproomdrainage,jdbcType=VARCHAR}, | ||
| 205 | + #{boosterpumproomsanitation,jdbcType=VARCHAR}, #{boosterpumproomresponsibleperson,jdbcType=VARCHAR}, | ||
| 206 | + #{boosterpumproomnote,jdbcType=VARCHAR}, #{clearwaterreserviorsstairs,jdbcType=VARCHAR}, | ||
| 207 | + #{clearwaterreserviorsvent,jdbcType=VARCHAR}, #{clearwaterreserviorspoolroof,jdbcType=VARCHAR}, | ||
| 208 | + #{clearwaterreserviorssanitation,jdbcType=VARCHAR}, #{clearwaterreserviorspumpbody,jdbcType=VARCHAR}, | ||
| 209 | + #{clearwaterreserviorsresponsibleperson,jdbcType=VARCHAR}, #{clearwaterreserviorsnote,jdbcType=VARCHAR}, | ||
| 210 | + #{betweenchlorineequipment,jdbcType=VARCHAR}, #{betweenchlorinepipe,jdbcType=VARCHAR}, | ||
| 211 | + #{betweenchlorinedosingpump,jdbcType=VARCHAR}, #{betweenchlorinetraffic,jdbcType=VARCHAR}, | ||
| 212 | + #{betweenchlorinefan,jdbcType=VARCHAR}, #{betweenchlorinesanitation,jdbcType=VARCHAR}, | ||
| 213 | + #{betweenchlorineresponsibleperson,jdbcType=VARCHAR}, #{betweenchlorinenote,jdbcType=VARCHAR}, | ||
| 214 | + #{groundenvironmentwelllids,jdbcType=VARCHAR}, #{groundenvironmentdrainagen,jdbcType=VARCHAR}, | ||
| 215 | + #{groundenvironmentwatersupply,jdbcType=VARCHAR}, #{groundenvironmentcable,jdbcType=VARCHAR}, | ||
| 216 | + #{groundenvironmentroad,jdbcType=VARCHAR}, #{groundenvironmentresponsibleperson,jdbcType=VARCHAR}, | ||
| 217 | + #{groundenvironmentnote,jdbcType=VARCHAR}, #{groundsecurityillegal,jdbcType=VARCHAR}, | ||
| 218 | + #{groundsecurityfire,jdbcType=VARCHAR}, #{groundsecurityrats,jdbcType=VARCHAR}, | ||
| 219 | + #{groundsecuritysuspiciouspersonnel,jdbcType=VARCHAR}, #{groundsecurityresponsibleperson,jdbcType=VARCHAR}, | ||
| 220 | + #{groundsecuritynote,jdbcType=VARCHAR}, #{securitytoolemergency,jdbcType=VARCHAR}, | ||
| 221 | + #{securitytoolfloodcontroland,jdbcType=VARCHAR}, #{securitytoolprotective,jdbcType=VARCHAR}, | ||
| 222 | + #{securitytoolmainteance,jdbcType=VARCHAR}, #{securitytoolresponsibleperson,jdbcType=VARCHAR}, | ||
| 223 | + #{securitytoolnote,jdbcType=VARCHAR}, #{userid,jdbcType=INTEGER}, #{creattime,jdbcType=TIMESTAMP}, | ||
| 224 | + #{reamke1,jdbcType=VARCHAR}, #{reamke2,jdbcType=VARCHAR}, #{reamke3,jdbcType=VARCHAR} | ||
| 225 | + ) | ||
| 226 | + </insert> | ||
| 227 | + <insert id="insertSelective" parameterType="com.tianbo.warehouse.model.WaterStationsPatrol" > | ||
| 228 | + insert into water_stations_patrol | ||
| 229 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 230 | + <if test="id != null" > | ||
| 231 | + id, | ||
| 232 | + </if> | ||
| 233 | + <if test="checkprojectcontrolrommwatersupplysystem != null" > | ||
| 234 | + checkProjectControlRommWaterSupplySystem, | ||
| 235 | + </if> | ||
| 236 | + <if test="checkprojectcontrolrommsecuritysystem != null" > | ||
| 237 | + checkProjectControlRommSecuritySystem, | ||
| 238 | + </if> | ||
| 239 | + <if test="checkprojectcontrolrommrunningrecord != null" > | ||
| 240 | + checkProjectControlRommRunningRecord, | ||
| 241 | + </if> | ||
| 242 | + <if test="checkprojectcontrolrommdocumentholder != null" > | ||
| 243 | + checkProjectControlRommDocumentHolder, | ||
| 244 | + </if> | ||
| 245 | + <if test="checkprojectcontrolrommground != null" > | ||
| 246 | + checkProjectControlRommGround, | ||
| 247 | + </if> | ||
| 248 | + <if test="checkprojectcontrolrommresponsibleperson != null" > | ||
| 249 | + checkProjectControlRommResponsiblePerson, | ||
| 250 | + </if> | ||
| 251 | + <if test="checkprojectcontrolrommnote != null" > | ||
| 252 | + checkProjectControlRommnote, | ||
| 253 | + </if> | ||
| 254 | + <if test="checkprojectfrequencyconversionshow != null" > | ||
| 255 | + checkProjectFrequencyConversionShow, | ||
| 256 | + </if> | ||
| 257 | + <if test="checkprojectfrequencyconversionclose != null" > | ||
| 258 | + checkProjectFrequencyConversionClose, | ||
| 259 | + </if> | ||
| 260 | + <if test="checkprojectfrequencyconversionsanitation != null" > | ||
| 261 | + checkProjectFrequencyConversionSanitation, | ||
| 262 | + </if> | ||
| 263 | + <if test="checkprojectfrequencyconversionresponsibleperson != null" > | ||
| 264 | + checkProjectFrequencyConversionResponsiblePerson, | ||
| 265 | + </if> | ||
| 266 | + <if test="checkprojectfrequencyconversionnote != null" > | ||
| 267 | + checkProjectFrequencyConversionNote, | ||
| 268 | + </if> | ||
| 269 | + <if test="checkprojectmeterbetweenturbidityinstrumentpowersupply != null" > | ||
| 270 | + checkProjectMeterBetweenTurbidityInstrumentPowerSupply, | ||
| 271 | + </if> | ||
| 272 | + <if test="checkprojectmeterbetweenturbidityinstrumentshow != null" > | ||
| 273 | + checkProjectMeterBetweenTurbidityInstrumentShow, | ||
| 274 | + </if> | ||
| 275 | + <if test="checkprojectmeterbetweenturbidityinstrumentappearance != null" > | ||
| 276 | + checkProjectMeterBetweenTurbidityInstrumentAppearance, | ||
| 277 | + </if> | ||
| 278 | + <if test="checkprojectmeterbetweenturbidityinstrumentrange != null" > | ||
| 279 | + checkProjectMeterBetweenTurbidityInstrumentRange, | ||
| 280 | + </if> | ||
| 281 | + <if test="checkprojectmeterbetweenturbidityinstrumentdetection != null" > | ||
| 282 | + checkProjectMeterBetweenTurbidityInstrumentDetection, | ||
| 283 | + </if> | ||
| 284 | + <if test="checkprojectmeterbetweenturbidityinstrumentresponsibleperson != null" > | ||
| 285 | + checkProjectMeterBetweenTurbidityInstrumentResponsiblePerson, | ||
| 286 | + </if> | ||
| 287 | + <if test="checkprojectmeterbetweenturbidityinstrumentnote != null" > | ||
| 288 | + checkProjectMeterBetweenTurbidityInstrumentNote, | ||
| 289 | + </if> | ||
| 290 | + <if test="checkprojectmeterbetweenflowmeterpowersupply != null" > | ||
| 291 | + checkProjectMeterBetweenFlowMeterPowerSupply, | ||
| 292 | + </if> | ||
| 293 | + <if test="checkprojectmeterbetweenflowmetershow != null" > | ||
| 294 | + checkProjectMeterBetweenFlowMeterShow, | ||
| 295 | + </if> | ||
| 296 | + <if test="checkprojectmeterbetweenflowmeterappearance != null" > | ||
| 297 | + checkProjectMeterBetweenFlowMeterAppearance, | ||
| 298 | + </if> | ||
| 299 | + <if test="checkprojectmeterbetweenflowmeterresponsibleperson != null" > | ||
| 300 | + checkProjectMeterBetweenFlowMeterResponsiblePerson, | ||
| 301 | + </if> | ||
| 302 | + <if test="checkprojectmeterbetweenflowmeternote != null" > | ||
| 303 | + checkProjectMeterBetweenFlowMeterNote, | ||
| 304 | + </if> | ||
| 305 | + <if test="residualchlorineinstrumentpipeline != null" > | ||
| 306 | + residualChlorineInstrumentPipeline, | ||
| 307 | + </if> | ||
| 308 | + <if test="residualchlorineinstrumentpowersupply != null" > | ||
| 309 | + residualChlorineInstrumentPowerSupply, | ||
| 310 | + </if> | ||
| 311 | + <if test="residualchlorineinstrumentshow != null" > | ||
| 312 | + residualChlorineInstrumentShow, | ||
| 313 | + </if> | ||
| 314 | + <if test="residualchlorineinstrumentappearance != null" > | ||
| 315 | + residualChlorineInstrumentAppearance, | ||
| 316 | + </if> | ||
| 317 | + <if test="residualchlorineinstrumentpipelinmakewater != null" > | ||
| 318 | + residualChlorineInstrumentPipelinMakeWater, | ||
| 319 | + </if> | ||
| 320 | + <if test="residualchlorineinstrumentequipment != null" > | ||
| 321 | + residualChlorineInstrumentEquipment, | ||
| 322 | + </if> | ||
| 323 | + <if test="residualchlorineinstrumentgroundsanitation != null" > | ||
| 324 | + residualChlorineInstrumentGroundSanitation, | ||
| 325 | + </if> | ||
| 326 | + <if test="residualchlorineinstrumentresponsibleperson != null" > | ||
| 327 | + residualChlorineInstrumentResponsiblePerson, | ||
| 328 | + </if> | ||
| 329 | + <if test="residualchlorineinstrumentnote != null" > | ||
| 330 | + residualChlorineInstrumentNote, | ||
| 331 | + </if> | ||
| 332 | + <if test="boosterpumproomwaterpump != null" > | ||
| 333 | + boosterPumpRoomWaterPump, | ||
| 334 | + </if> | ||
| 335 | + <if test="boosterpumproombearing != null" > | ||
| 336 | + boosterPumpRoomBearing, | ||
| 337 | + </if> | ||
| 338 | + <if test="boosterpumproomthevalue != null" > | ||
| 339 | + boosterPumpRoomTheValue, | ||
| 340 | + </if> | ||
| 341 | + <if test="boosterpumproompumpbody != null" > | ||
| 342 | + boosterPumpRoomPumpBody, | ||
| 343 | + </if> | ||
| 344 | + <if test="boosterpumproomnameplate != null" > | ||
| 345 | + boosterPumpRoomNamePlate, | ||
| 346 | + </if> | ||
| 347 | + <if test="boosterpumproompacking != null" > | ||
| 348 | + boosterPumpRoomPacking, | ||
| 349 | + </if> | ||
| 350 | + <if test="boosterpumproomshow != null" > | ||
| 351 | + boosterPumpRoomShow, | ||
| 352 | + </if> | ||
| 353 | + <if test="boosterpumproomfan != null" > | ||
| 354 | + boosterPumpRoomFan, | ||
| 355 | + </if> | ||
| 356 | + <if test="boosterpumproomdrainage != null" > | ||
| 357 | + boosterPumpRoomDrainage, | ||
| 358 | + </if> | ||
| 359 | + <if test="boosterpumproomsanitation != null" > | ||
| 360 | + boosterPumpRoomSanitation, | ||
| 361 | + </if> | ||
| 362 | + <if test="boosterpumproomresponsibleperson != null" > | ||
| 363 | + boosterPumpRoomResponsiblePerson, | ||
| 364 | + </if> | ||
| 365 | + <if test="boosterpumproomnote != null" > | ||
| 366 | + boosterPumpRoomNote, | ||
| 367 | + </if> | ||
| 368 | + <if test="clearwaterreserviorsstairs != null" > | ||
| 369 | + clearWaterReserviorsStairs, | ||
| 370 | + </if> | ||
| 371 | + <if test="clearwaterreserviorsvent != null" > | ||
| 372 | + clearWaterReserviorsVent, | ||
| 373 | + </if> | ||
| 374 | + <if test="clearwaterreserviorspoolroof != null" > | ||
| 375 | + clearWaterReserviorsPoolRoof, | ||
| 376 | + </if> | ||
| 377 | + <if test="clearwaterreserviorssanitation != null" > | ||
| 378 | + clearWaterReserviorsSanitation, | ||
| 379 | + </if> | ||
| 380 | + <if test="clearwaterreserviorspumpbody != null" > | ||
| 381 | + clearWaterReserviorsPumpBody, | ||
| 382 | + </if> | ||
| 383 | + <if test="clearwaterreserviorsresponsibleperson != null" > | ||
| 384 | + clearWaterReserviorsResponsiblePerson, | ||
| 385 | + </if> | ||
| 386 | + <if test="clearwaterreserviorsnote != null" > | ||
| 387 | + clearWaterReserviorsNote, | ||
| 388 | + </if> | ||
| 389 | + <if test="betweenchlorineequipment != null" > | ||
| 390 | + betweenChlorineEquipment, | ||
| 391 | + </if> | ||
| 392 | + <if test="betweenchlorinepipe != null" > | ||
| 393 | + betweenChlorinePipe, | ||
| 394 | + </if> | ||
| 395 | + <if test="betweenchlorinedosingpump != null" > | ||
| 396 | + betweenChlorineDosingPump, | ||
| 397 | + </if> | ||
| 398 | + <if test="betweenchlorinetraffic != null" > | ||
| 399 | + betweenChlorineTraffic, | ||
| 400 | + </if> | ||
| 401 | + <if test="betweenchlorinefan != null" > | ||
| 402 | + betweenChlorineFan, | ||
| 403 | + </if> | ||
| 404 | + <if test="betweenchlorinesanitation != null" > | ||
| 405 | + betweenChlorineSanitation, | ||
| 406 | + </if> | ||
| 407 | + <if test="betweenchlorineresponsibleperson != null" > | ||
| 408 | + betweenChlorineResponsiblePerson, | ||
| 409 | + </if> | ||
| 410 | + <if test="betweenchlorinenote != null" > | ||
| 411 | + betweenChlorineNote, | ||
| 412 | + </if> | ||
| 413 | + <if test="groundenvironmentwelllids != null" > | ||
| 414 | + groundEnvironmentWellLIDS, | ||
| 415 | + </if> | ||
| 416 | + <if test="groundenvironmentdrainagen != null" > | ||
| 417 | + groundEnvironmentDrainagen, | ||
| 418 | + </if> | ||
| 419 | + <if test="groundenvironmentwatersupply != null" > | ||
| 420 | + groundEnvironmentWaterSupply, | ||
| 421 | + </if> | ||
| 422 | + <if test="groundenvironmentcable != null" > | ||
| 423 | + groundEnvironmentCable, | ||
| 424 | + </if> | ||
| 425 | + <if test="groundenvironmentroad != null" > | ||
| 426 | + groundEnvironmentRoad, | ||
| 427 | + </if> | ||
| 428 | + <if test="groundenvironmentresponsibleperson != null" > | ||
| 429 | + groundEnvironmentResponsiblePerson, | ||
| 430 | + </if> | ||
| 431 | + <if test="groundenvironmentnote != null" > | ||
| 432 | + groundEnvironmentNote, | ||
| 433 | + </if> | ||
| 434 | + <if test="groundsecurityillegal != null" > | ||
| 435 | + groundSecurityIllegal, | ||
| 436 | + </if> | ||
| 437 | + <if test="groundsecurityfire != null" > | ||
| 438 | + groundSecurityFire, | ||
| 439 | + </if> | ||
| 440 | + <if test="groundsecurityrats != null" > | ||
| 441 | + groundSecurityRats, | ||
| 442 | + </if> | ||
| 443 | + <if test="groundsecuritysuspiciouspersonnel != null" > | ||
| 444 | + groundSecuritySuspiciousPersonnel, | ||
| 445 | + </if> | ||
| 446 | + <if test="groundsecurityresponsibleperson != null" > | ||
| 447 | + groundSecurityResponsiblePerson, | ||
| 448 | + </if> | ||
| 449 | + <if test="groundsecuritynote != null" > | ||
| 450 | + groundSecurityNote, | ||
| 451 | + </if> | ||
| 452 | + <if test="securitytoolemergency != null" > | ||
| 453 | + securityToolEmergency, | ||
| 454 | + </if> | ||
| 455 | + <if test="securitytoolfloodcontroland != null" > | ||
| 456 | + securityToolFloodControlAnd, | ||
| 457 | + </if> | ||
| 458 | + <if test="securitytoolprotective != null" > | ||
| 459 | + securityToolProtective, | ||
| 460 | + </if> | ||
| 461 | + <if test="securitytoolmainteance != null" > | ||
| 462 | + securityToolMainteance, | ||
| 463 | + </if> | ||
| 464 | + <if test="securitytoolresponsibleperson != null" > | ||
| 465 | + securityToolResponsiblePerson, | ||
| 466 | + </if> | ||
| 467 | + <if test="securitytoolnote != null" > | ||
| 468 | + securityToolNote, | ||
| 469 | + </if> | ||
| 470 | + <if test="userid != null" > | ||
| 471 | + userId, | ||
| 472 | + </if> | ||
| 473 | + <if test="creattime != null" > | ||
| 474 | + creatTime, | ||
| 475 | + </if> | ||
| 476 | + <if test="reamke1 != null" > | ||
| 477 | + reamke1, | ||
| 478 | + </if> | ||
| 479 | + <if test="reamke2 != null" > | ||
| 480 | + reamke2, | ||
| 481 | + </if> | ||
| 482 | + <if test="reamke3 != null" > | ||
| 483 | + reamke3, | ||
| 484 | + </if> | ||
| 485 | + </trim> | ||
| 486 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 487 | + <if test="id != null" > | ||
| 488 | + #{id,jdbcType=VARCHAR}, | ||
| 489 | + </if> | ||
| 490 | + <if test="checkprojectcontrolrommwatersupplysystem != null" > | ||
| 491 | + #{checkprojectcontrolrommwatersupplysystem,jdbcType=VARCHAR}, | ||
| 492 | + </if> | ||
| 493 | + <if test="checkprojectcontrolrommsecuritysystem != null" > | ||
| 494 | + #{checkprojectcontrolrommsecuritysystem,jdbcType=VARCHAR}, | ||
| 495 | + </if> | ||
| 496 | + <if test="checkprojectcontrolrommrunningrecord != null" > | ||
| 497 | + #{checkprojectcontrolrommrunningrecord,jdbcType=VARCHAR}, | ||
| 498 | + </if> | ||
| 499 | + <if test="checkprojectcontrolrommdocumentholder != null" > | ||
| 500 | + #{checkprojectcontrolrommdocumentholder,jdbcType=VARCHAR}, | ||
| 501 | + </if> | ||
| 502 | + <if test="checkprojectcontrolrommground != null" > | ||
| 503 | + #{checkprojectcontrolrommground,jdbcType=VARCHAR}, | ||
| 504 | + </if> | ||
| 505 | + <if test="checkprojectcontrolrommresponsibleperson != null" > | ||
| 506 | + #{checkprojectcontrolrommresponsibleperson,jdbcType=VARCHAR}, | ||
| 507 | + </if> | ||
| 508 | + <if test="checkprojectcontrolrommnote != null" > | ||
| 509 | + #{checkprojectcontrolrommnote,jdbcType=VARCHAR}, | ||
| 510 | + </if> | ||
| 511 | + <if test="checkprojectfrequencyconversionshow != null" > | ||
| 512 | + #{checkprojectfrequencyconversionshow,jdbcType=VARCHAR}, | ||
| 513 | + </if> | ||
| 514 | + <if test="checkprojectfrequencyconversionclose != null" > | ||
| 515 | + #{checkprojectfrequencyconversionclose,jdbcType=VARCHAR}, | ||
| 516 | + </if> | ||
| 517 | + <if test="checkprojectfrequencyconversionsanitation != null" > | ||
| 518 | + #{checkprojectfrequencyconversionsanitation,jdbcType=VARCHAR}, | ||
| 519 | + </if> | ||
| 520 | + <if test="checkprojectfrequencyconversionresponsibleperson != null" > | ||
| 521 | + #{checkprojectfrequencyconversionresponsibleperson,jdbcType=VARCHAR}, | ||
| 522 | + </if> | ||
| 523 | + <if test="checkprojectfrequencyconversionnote != null" > | ||
| 524 | + #{checkprojectfrequencyconversionnote,jdbcType=VARCHAR}, | ||
| 525 | + </if> | ||
| 526 | + <if test="checkprojectmeterbetweenturbidityinstrumentpowersupply != null" > | ||
| 527 | + #{checkprojectmeterbetweenturbidityinstrumentpowersupply,jdbcType=VARCHAR}, | ||
| 528 | + </if> | ||
| 529 | + <if test="checkprojectmeterbetweenturbidityinstrumentshow != null" > | ||
| 530 | + #{checkprojectmeterbetweenturbidityinstrumentshow,jdbcType=VARCHAR}, | ||
| 531 | + </if> | ||
| 532 | + <if test="checkprojectmeterbetweenturbidityinstrumentappearance != null" > | ||
| 533 | + #{checkprojectmeterbetweenturbidityinstrumentappearance,jdbcType=VARCHAR}, | ||
| 534 | + </if> | ||
| 535 | + <if test="checkprojectmeterbetweenturbidityinstrumentrange != null" > | ||
| 536 | + #{checkprojectmeterbetweenturbidityinstrumentrange,jdbcType=VARCHAR}, | ||
| 537 | + </if> | ||
| 538 | + <if test="checkprojectmeterbetweenturbidityinstrumentdetection != null" > | ||
| 539 | + #{checkprojectmeterbetweenturbidityinstrumentdetection,jdbcType=VARCHAR}, | ||
| 540 | + </if> | ||
| 541 | + <if test="checkprojectmeterbetweenturbidityinstrumentresponsibleperson != null" > | ||
| 542 | + #{checkprojectmeterbetweenturbidityinstrumentresponsibleperson,jdbcType=VARCHAR}, | ||
| 543 | + </if> | ||
| 544 | + <if test="checkprojectmeterbetweenturbidityinstrumentnote != null" > | ||
| 545 | + #{checkprojectmeterbetweenturbidityinstrumentnote,jdbcType=VARCHAR}, | ||
| 546 | + </if> | ||
| 547 | + <if test="checkprojectmeterbetweenflowmeterpowersupply != null" > | ||
| 548 | + #{checkprojectmeterbetweenflowmeterpowersupply,jdbcType=VARCHAR}, | ||
| 549 | + </if> | ||
| 550 | + <if test="checkprojectmeterbetweenflowmetershow != null" > | ||
| 551 | + #{checkprojectmeterbetweenflowmetershow,jdbcType=VARCHAR}, | ||
| 552 | + </if> | ||
| 553 | + <if test="checkprojectmeterbetweenflowmeterappearance != null" > | ||
| 554 | + #{checkprojectmeterbetweenflowmeterappearance,jdbcType=VARCHAR}, | ||
| 555 | + </if> | ||
| 556 | + <if test="checkprojectmeterbetweenflowmeterresponsibleperson != null" > | ||
| 557 | + #{checkprojectmeterbetweenflowmeterresponsibleperson,jdbcType=VARCHAR}, | ||
| 558 | + </if> | ||
| 559 | + <if test="checkprojectmeterbetweenflowmeternote != null" > | ||
| 560 | + #{checkprojectmeterbetweenflowmeternote,jdbcType=VARCHAR}, | ||
| 561 | + </if> | ||
| 562 | + <if test="residualchlorineinstrumentpipeline != null" > | ||
| 563 | + #{residualchlorineinstrumentpipeline,jdbcType=VARCHAR}, | ||
| 564 | + </if> | ||
| 565 | + <if test="residualchlorineinstrumentpowersupply != null" > | ||
| 566 | + #{residualchlorineinstrumentpowersupply,jdbcType=VARCHAR}, | ||
| 567 | + </if> | ||
| 568 | + <if test="residualchlorineinstrumentshow != null" > | ||
| 569 | + #{residualchlorineinstrumentshow,jdbcType=VARCHAR}, | ||
| 570 | + </if> | ||
| 571 | + <if test="residualchlorineinstrumentappearance != null" > | ||
| 572 | + #{residualchlorineinstrumentappearance,jdbcType=VARCHAR}, | ||
| 573 | + </if> | ||
| 574 | + <if test="residualchlorineinstrumentpipelinmakewater != null" > | ||
| 575 | + #{residualchlorineinstrumentpipelinmakewater,jdbcType=VARCHAR}, | ||
| 576 | + </if> | ||
| 577 | + <if test="residualchlorineinstrumentequipment != null" > | ||
| 578 | + #{residualchlorineinstrumentequipment,jdbcType=VARCHAR}, | ||
| 579 | + </if> | ||
| 580 | + <if test="residualchlorineinstrumentgroundsanitation != null" > | ||
| 581 | + #{residualchlorineinstrumentgroundsanitation,jdbcType=VARCHAR}, | ||
| 582 | + </if> | ||
| 583 | + <if test="residualchlorineinstrumentresponsibleperson != null" > | ||
| 584 | + #{residualchlorineinstrumentresponsibleperson,jdbcType=VARCHAR}, | ||
| 585 | + </if> | ||
| 586 | + <if test="residualchlorineinstrumentnote != null" > | ||
| 587 | + #{residualchlorineinstrumentnote,jdbcType=VARCHAR}, | ||
| 588 | + </if> | ||
| 589 | + <if test="boosterpumproomwaterpump != null" > | ||
| 590 | + #{boosterpumproomwaterpump,jdbcType=VARCHAR}, | ||
| 591 | + </if> | ||
| 592 | + <if test="boosterpumproombearing != null" > | ||
| 593 | + #{boosterpumproombearing,jdbcType=VARCHAR}, | ||
| 594 | + </if> | ||
| 595 | + <if test="boosterpumproomthevalue != null" > | ||
| 596 | + #{boosterpumproomthevalue,jdbcType=VARCHAR}, | ||
| 597 | + </if> | ||
| 598 | + <if test="boosterpumproompumpbody != null" > | ||
| 599 | + #{boosterpumproompumpbody,jdbcType=VARCHAR}, | ||
| 600 | + </if> | ||
| 601 | + <if test="boosterpumproomnameplate != null" > | ||
| 602 | + #{boosterpumproomnameplate,jdbcType=VARCHAR}, | ||
| 603 | + </if> | ||
| 604 | + <if test="boosterpumproompacking != null" > | ||
| 605 | + #{boosterpumproompacking,jdbcType=VARCHAR}, | ||
| 606 | + </if> | ||
| 607 | + <if test="boosterpumproomshow != null" > | ||
| 608 | + #{boosterpumproomshow,jdbcType=VARCHAR}, | ||
| 609 | + </if> | ||
| 610 | + <if test="boosterpumproomfan != null" > | ||
| 611 | + #{boosterpumproomfan,jdbcType=VARCHAR}, | ||
| 612 | + </if> | ||
| 613 | + <if test="boosterpumproomdrainage != null" > | ||
| 614 | + #{boosterpumproomdrainage,jdbcType=VARCHAR}, | ||
| 615 | + </if> | ||
| 616 | + <if test="boosterpumproomsanitation != null" > | ||
| 617 | + #{boosterpumproomsanitation,jdbcType=VARCHAR}, | ||
| 618 | + </if> | ||
| 619 | + <if test="boosterpumproomresponsibleperson != null" > | ||
| 620 | + #{boosterpumproomresponsibleperson,jdbcType=VARCHAR}, | ||
| 621 | + </if> | ||
| 622 | + <if test="boosterpumproomnote != null" > | ||
| 623 | + #{boosterpumproomnote,jdbcType=VARCHAR}, | ||
| 624 | + </if> | ||
| 625 | + <if test="clearwaterreserviorsstairs != null" > | ||
| 626 | + #{clearwaterreserviorsstairs,jdbcType=VARCHAR}, | ||
| 627 | + </if> | ||
| 628 | + <if test="clearwaterreserviorsvent != null" > | ||
| 629 | + #{clearwaterreserviorsvent,jdbcType=VARCHAR}, | ||
| 630 | + </if> | ||
| 631 | + <if test="clearwaterreserviorspoolroof != null" > | ||
| 632 | + #{clearwaterreserviorspoolroof,jdbcType=VARCHAR}, | ||
| 633 | + </if> | ||
| 634 | + <if test="clearwaterreserviorssanitation != null" > | ||
| 635 | + #{clearwaterreserviorssanitation,jdbcType=VARCHAR}, | ||
| 636 | + </if> | ||
| 637 | + <if test="clearwaterreserviorspumpbody != null" > | ||
| 638 | + #{clearwaterreserviorspumpbody,jdbcType=VARCHAR}, | ||
| 639 | + </if> | ||
| 640 | + <if test="clearwaterreserviorsresponsibleperson != null" > | ||
| 641 | + #{clearwaterreserviorsresponsibleperson,jdbcType=VARCHAR}, | ||
| 642 | + </if> | ||
| 643 | + <if test="clearwaterreserviorsnote != null" > | ||
| 644 | + #{clearwaterreserviorsnote,jdbcType=VARCHAR}, | ||
| 645 | + </if> | ||
| 646 | + <if test="betweenchlorineequipment != null" > | ||
| 647 | + #{betweenchlorineequipment,jdbcType=VARCHAR}, | ||
| 648 | + </if> | ||
| 649 | + <if test="betweenchlorinepipe != null" > | ||
| 650 | + #{betweenchlorinepipe,jdbcType=VARCHAR}, | ||
| 651 | + </if> | ||
| 652 | + <if test="betweenchlorinedosingpump != null" > | ||
| 653 | + #{betweenchlorinedosingpump,jdbcType=VARCHAR}, | ||
| 654 | + </if> | ||
| 655 | + <if test="betweenchlorinetraffic != null" > | ||
| 656 | + #{betweenchlorinetraffic,jdbcType=VARCHAR}, | ||
| 657 | + </if> | ||
| 658 | + <if test="betweenchlorinefan != null" > | ||
| 659 | + #{betweenchlorinefan,jdbcType=VARCHAR}, | ||
| 660 | + </if> | ||
| 661 | + <if test="betweenchlorinesanitation != null" > | ||
| 662 | + #{betweenchlorinesanitation,jdbcType=VARCHAR}, | ||
| 663 | + </if> | ||
| 664 | + <if test="betweenchlorineresponsibleperson != null" > | ||
| 665 | + #{betweenchlorineresponsibleperson,jdbcType=VARCHAR}, | ||
| 666 | + </if> | ||
| 667 | + <if test="betweenchlorinenote != null" > | ||
| 668 | + #{betweenchlorinenote,jdbcType=VARCHAR}, | ||
| 669 | + </if> | ||
| 670 | + <if test="groundenvironmentwelllids != null" > | ||
| 671 | + #{groundenvironmentwelllids,jdbcType=VARCHAR}, | ||
| 672 | + </if> | ||
| 673 | + <if test="groundenvironmentdrainagen != null" > | ||
| 674 | + #{groundenvironmentdrainagen,jdbcType=VARCHAR}, | ||
| 675 | + </if> | ||
| 676 | + <if test="groundenvironmentwatersupply != null" > | ||
| 677 | + #{groundenvironmentwatersupply,jdbcType=VARCHAR}, | ||
| 678 | + </if> | ||
| 679 | + <if test="groundenvironmentcable != null" > | ||
| 680 | + #{groundenvironmentcable,jdbcType=VARCHAR}, | ||
| 681 | + </if> | ||
| 682 | + <if test="groundenvironmentroad != null" > | ||
| 683 | + #{groundenvironmentroad,jdbcType=VARCHAR}, | ||
| 684 | + </if> | ||
| 685 | + <if test="groundenvironmentresponsibleperson != null" > | ||
| 686 | + #{groundenvironmentresponsibleperson,jdbcType=VARCHAR}, | ||
| 687 | + </if> | ||
| 688 | + <if test="groundenvironmentnote != null" > | ||
| 689 | + #{groundenvironmentnote,jdbcType=VARCHAR}, | ||
| 690 | + </if> | ||
| 691 | + <if test="groundsecurityillegal != null" > | ||
| 692 | + #{groundsecurityillegal,jdbcType=VARCHAR}, | ||
| 693 | + </if> | ||
| 694 | + <if test="groundsecurityfire != null" > | ||
| 695 | + #{groundsecurityfire,jdbcType=VARCHAR}, | ||
| 696 | + </if> | ||
| 697 | + <if test="groundsecurityrats != null" > | ||
| 698 | + #{groundsecurityrats,jdbcType=VARCHAR}, | ||
| 699 | + </if> | ||
| 700 | + <if test="groundsecuritysuspiciouspersonnel != null" > | ||
| 701 | + #{groundsecuritysuspiciouspersonnel,jdbcType=VARCHAR}, | ||
| 702 | + </if> | ||
| 703 | + <if test="groundsecurityresponsibleperson != null" > | ||
| 704 | + #{groundsecurityresponsibleperson,jdbcType=VARCHAR}, | ||
| 705 | + </if> | ||
| 706 | + <if test="groundsecuritynote != null" > | ||
| 707 | + #{groundsecuritynote,jdbcType=VARCHAR}, | ||
| 708 | + </if> | ||
| 709 | + <if test="securitytoolemergency != null" > | ||
| 710 | + #{securitytoolemergency,jdbcType=VARCHAR}, | ||
| 711 | + </if> | ||
| 712 | + <if test="securitytoolfloodcontroland != null" > | ||
| 713 | + #{securitytoolfloodcontroland,jdbcType=VARCHAR}, | ||
| 714 | + </if> | ||
| 715 | + <if test="securitytoolprotective != null" > | ||
| 716 | + #{securitytoolprotective,jdbcType=VARCHAR}, | ||
| 717 | + </if> | ||
| 718 | + <if test="securitytoolmainteance != null" > | ||
| 719 | + #{securitytoolmainteance,jdbcType=VARCHAR}, | ||
| 720 | + </if> | ||
| 721 | + <if test="securitytoolresponsibleperson != null" > | ||
| 722 | + #{securitytoolresponsibleperson,jdbcType=VARCHAR}, | ||
| 723 | + </if> | ||
| 724 | + <if test="securitytoolnote != null" > | ||
| 725 | + #{securitytoolnote,jdbcType=VARCHAR}, | ||
| 726 | + </if> | ||
| 727 | + <if test="userid != null" > | ||
| 728 | + #{userid,jdbcType=INTEGER}, | ||
| 729 | + </if> | ||
| 730 | + <if test="creattime != null" > | ||
| 731 | + #{creattime,jdbcType=TIMESTAMP}, | ||
| 732 | + </if> | ||
| 733 | + <if test="reamke1 != null" > | ||
| 734 | + #{reamke1,jdbcType=VARCHAR}, | ||
| 735 | + </if> | ||
| 736 | + <if test="reamke2 != null" > | ||
| 737 | + #{reamke2,jdbcType=VARCHAR}, | ||
| 738 | + </if> | ||
| 739 | + <if test="reamke3 != null" > | ||
| 740 | + #{reamke3,jdbcType=VARCHAR}, | ||
| 741 | + </if> | ||
| 742 | + </trim> | ||
| 743 | + </insert> | ||
| 744 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.warehouse.model.WaterStationsPatrol" > | ||
| 745 | + update water_stations_patrol | ||
| 746 | + <set > | ||
| 747 | + <if test="checkprojectcontrolrommwatersupplysystem != null" > | ||
| 748 | + checkProjectControlRommWaterSupplySystem = #{checkprojectcontrolrommwatersupplysystem,jdbcType=VARCHAR}, | ||
| 749 | + </if> | ||
| 750 | + <if test="checkprojectcontrolrommsecuritysystem != null" > | ||
| 751 | + checkProjectControlRommSecuritySystem = #{checkprojectcontrolrommsecuritysystem,jdbcType=VARCHAR}, | ||
| 752 | + </if> | ||
| 753 | + <if test="checkprojectcontrolrommrunningrecord != null" > | ||
| 754 | + checkProjectControlRommRunningRecord = #{checkprojectcontrolrommrunningrecord,jdbcType=VARCHAR}, | ||
| 755 | + </if> | ||
| 756 | + <if test="checkprojectcontrolrommdocumentholder != null" > | ||
| 757 | + checkProjectControlRommDocumentHolder = #{checkprojectcontrolrommdocumentholder,jdbcType=VARCHAR}, | ||
| 758 | + </if> | ||
| 759 | + <if test="checkprojectcontrolrommground != null" > | ||
| 760 | + checkProjectControlRommGround = #{checkprojectcontrolrommground,jdbcType=VARCHAR}, | ||
| 761 | + </if> | ||
| 762 | + <if test="checkprojectcontrolrommresponsibleperson != null" > | ||
| 763 | + checkProjectControlRommResponsiblePerson = #{checkprojectcontrolrommresponsibleperson,jdbcType=VARCHAR}, | ||
| 764 | + </if> | ||
| 765 | + <if test="checkprojectcontrolrommnote != null" > | ||
| 766 | + checkProjectControlRommnote = #{checkprojectcontrolrommnote,jdbcType=VARCHAR}, | ||
| 767 | + </if> | ||
| 768 | + <if test="checkprojectfrequencyconversionshow != null" > | ||
| 769 | + checkProjectFrequencyConversionShow = #{checkprojectfrequencyconversionshow,jdbcType=VARCHAR}, | ||
| 770 | + </if> | ||
| 771 | + <if test="checkprojectfrequencyconversionclose != null" > | ||
| 772 | + checkProjectFrequencyConversionClose = #{checkprojectfrequencyconversionclose,jdbcType=VARCHAR}, | ||
| 773 | + </if> | ||
| 774 | + <if test="checkprojectfrequencyconversionsanitation != null" > | ||
| 775 | + checkProjectFrequencyConversionSanitation = #{checkprojectfrequencyconversionsanitation,jdbcType=VARCHAR}, | ||
| 776 | + </if> | ||
| 777 | + <if test="checkprojectfrequencyconversionresponsibleperson != null" > | ||
| 778 | + checkProjectFrequencyConversionResponsiblePerson = #{checkprojectfrequencyconversionresponsibleperson,jdbcType=VARCHAR}, | ||
| 779 | + </if> | ||
| 780 | + <if test="checkprojectfrequencyconversionnote != null" > | ||
| 781 | + checkProjectFrequencyConversionNote = #{checkprojectfrequencyconversionnote,jdbcType=VARCHAR}, | ||
| 782 | + </if> | ||
| 783 | + <if test="checkprojectmeterbetweenturbidityinstrumentpowersupply != null" > | ||
| 784 | + checkProjectMeterBetweenTurbidityInstrumentPowerSupply = #{checkprojectmeterbetweenturbidityinstrumentpowersupply,jdbcType=VARCHAR}, | ||
| 785 | + </if> | ||
| 786 | + <if test="checkprojectmeterbetweenturbidityinstrumentshow != null" > | ||
| 787 | + checkProjectMeterBetweenTurbidityInstrumentShow = #{checkprojectmeterbetweenturbidityinstrumentshow,jdbcType=VARCHAR}, | ||
| 788 | + </if> | ||
| 789 | + <if test="checkprojectmeterbetweenturbidityinstrumentappearance != null" > | ||
| 790 | + checkProjectMeterBetweenTurbidityInstrumentAppearance = #{checkprojectmeterbetweenturbidityinstrumentappearance,jdbcType=VARCHAR}, | ||
| 791 | + </if> | ||
| 792 | + <if test="checkprojectmeterbetweenturbidityinstrumentrange != null" > | ||
| 793 | + checkProjectMeterBetweenTurbidityInstrumentRange = #{checkprojectmeterbetweenturbidityinstrumentrange,jdbcType=VARCHAR}, | ||
| 794 | + </if> | ||
| 795 | + <if test="checkprojectmeterbetweenturbidityinstrumentdetection != null" > | ||
| 796 | + checkProjectMeterBetweenTurbidityInstrumentDetection = #{checkprojectmeterbetweenturbidityinstrumentdetection,jdbcType=VARCHAR}, | ||
| 797 | + </if> | ||
| 798 | + <if test="checkprojectmeterbetweenturbidityinstrumentresponsibleperson != null" > | ||
| 799 | + checkProjectMeterBetweenTurbidityInstrumentResponsiblePerson = #{checkprojectmeterbetweenturbidityinstrumentresponsibleperson,jdbcType=VARCHAR}, | ||
| 800 | + </if> | ||
| 801 | + <if test="checkprojectmeterbetweenturbidityinstrumentnote != null" > | ||
| 802 | + checkProjectMeterBetweenTurbidityInstrumentNote = #{checkprojectmeterbetweenturbidityinstrumentnote,jdbcType=VARCHAR}, | ||
| 803 | + </if> | ||
| 804 | + <if test="checkprojectmeterbetweenflowmeterpowersupply != null" > | ||
| 805 | + checkProjectMeterBetweenFlowMeterPowerSupply = #{checkprojectmeterbetweenflowmeterpowersupply,jdbcType=VARCHAR}, | ||
| 806 | + </if> | ||
| 807 | + <if test="checkprojectmeterbetweenflowmetershow != null" > | ||
| 808 | + checkProjectMeterBetweenFlowMeterShow = #{checkprojectmeterbetweenflowmetershow,jdbcType=VARCHAR}, | ||
| 809 | + </if> | ||
| 810 | + <if test="checkprojectmeterbetweenflowmeterappearance != null" > | ||
| 811 | + checkProjectMeterBetweenFlowMeterAppearance = #{checkprojectmeterbetweenflowmeterappearance,jdbcType=VARCHAR}, | ||
| 812 | + </if> | ||
| 813 | + <if test="checkprojectmeterbetweenflowmeterresponsibleperson != null" > | ||
| 814 | + checkProjectMeterBetweenFlowMeterResponsiblePerson = #{checkprojectmeterbetweenflowmeterresponsibleperson,jdbcType=VARCHAR}, | ||
| 815 | + </if> | ||
| 816 | + <if test="checkprojectmeterbetweenflowmeternote != null" > | ||
| 817 | + checkProjectMeterBetweenFlowMeterNote = #{checkprojectmeterbetweenflowmeternote,jdbcType=VARCHAR}, | ||
| 818 | + </if> | ||
| 819 | + <if test="residualchlorineinstrumentpipeline != null" > | ||
| 820 | + residualChlorineInstrumentPipeline = #{residualchlorineinstrumentpipeline,jdbcType=VARCHAR}, | ||
| 821 | + </if> | ||
| 822 | + <if test="residualchlorineinstrumentpowersupply != null" > | ||
| 823 | + residualChlorineInstrumentPowerSupply = #{residualchlorineinstrumentpowersupply,jdbcType=VARCHAR}, | ||
| 824 | + </if> | ||
| 825 | + <if test="residualchlorineinstrumentshow != null" > | ||
| 826 | + residualChlorineInstrumentShow = #{residualchlorineinstrumentshow,jdbcType=VARCHAR}, | ||
| 827 | + </if> | ||
| 828 | + <if test="residualchlorineinstrumentappearance != null" > | ||
| 829 | + residualChlorineInstrumentAppearance = #{residualchlorineinstrumentappearance,jdbcType=VARCHAR}, | ||
| 830 | + </if> | ||
| 831 | + <if test="residualchlorineinstrumentpipelinmakewater != null" > | ||
| 832 | + residualChlorineInstrumentPipelinMakeWater = #{residualchlorineinstrumentpipelinmakewater,jdbcType=VARCHAR}, | ||
| 833 | + </if> | ||
| 834 | + <if test="residualchlorineinstrumentequipment != null" > | ||
| 835 | + residualChlorineInstrumentEquipment = #{residualchlorineinstrumentequipment,jdbcType=VARCHAR}, | ||
| 836 | + </if> | ||
| 837 | + <if test="residualchlorineinstrumentgroundsanitation != null" > | ||
| 838 | + residualChlorineInstrumentGroundSanitation = #{residualchlorineinstrumentgroundsanitation,jdbcType=VARCHAR}, | ||
| 839 | + </if> | ||
| 840 | + <if test="residualchlorineinstrumentresponsibleperson != null" > | ||
| 841 | + residualChlorineInstrumentResponsiblePerson = #{residualchlorineinstrumentresponsibleperson,jdbcType=VARCHAR}, | ||
| 842 | + </if> | ||
| 843 | + <if test="residualchlorineinstrumentnote != null" > | ||
| 844 | + residualChlorineInstrumentNote = #{residualchlorineinstrumentnote,jdbcType=VARCHAR}, | ||
| 845 | + </if> | ||
| 846 | + <if test="boosterpumproomwaterpump != null" > | ||
| 847 | + boosterPumpRoomWaterPump = #{boosterpumproomwaterpump,jdbcType=VARCHAR}, | ||
| 848 | + </if> | ||
| 849 | + <if test="boosterpumproombearing != null" > | ||
| 850 | + boosterPumpRoomBearing = #{boosterpumproombearing,jdbcType=VARCHAR}, | ||
| 851 | + </if> | ||
| 852 | + <if test="boosterpumproomthevalue != null" > | ||
| 853 | + boosterPumpRoomTheValue = #{boosterpumproomthevalue,jdbcType=VARCHAR}, | ||
| 854 | + </if> | ||
| 855 | + <if test="boosterpumproompumpbody != null" > | ||
| 856 | + boosterPumpRoomPumpBody = #{boosterpumproompumpbody,jdbcType=VARCHAR}, | ||
| 857 | + </if> | ||
| 858 | + <if test="boosterpumproomnameplate != null" > | ||
| 859 | + boosterPumpRoomNamePlate = #{boosterpumproomnameplate,jdbcType=VARCHAR}, | ||
| 860 | + </if> | ||
| 861 | + <if test="boosterpumproompacking != null" > | ||
| 862 | + boosterPumpRoomPacking = #{boosterpumproompacking,jdbcType=VARCHAR}, | ||
| 863 | + </if> | ||
| 864 | + <if test="boosterpumproomshow != null" > | ||
| 865 | + boosterPumpRoomShow = #{boosterpumproomshow,jdbcType=VARCHAR}, | ||
| 866 | + </if> | ||
| 867 | + <if test="boosterpumproomfan != null" > | ||
| 868 | + boosterPumpRoomFan = #{boosterpumproomfan,jdbcType=VARCHAR}, | ||
| 869 | + </if> | ||
| 870 | + <if test="boosterpumproomdrainage != null" > | ||
| 871 | + boosterPumpRoomDrainage = #{boosterpumproomdrainage,jdbcType=VARCHAR}, | ||
| 872 | + </if> | ||
| 873 | + <if test="boosterpumproomsanitation != null" > | ||
| 874 | + boosterPumpRoomSanitation = #{boosterpumproomsanitation,jdbcType=VARCHAR}, | ||
| 875 | + </if> | ||
| 876 | + <if test="boosterpumproomresponsibleperson != null" > | ||
| 877 | + boosterPumpRoomResponsiblePerson = #{boosterpumproomresponsibleperson,jdbcType=VARCHAR}, | ||
| 878 | + </if> | ||
| 879 | + <if test="boosterpumproomnote != null" > | ||
| 880 | + boosterPumpRoomNote = #{boosterpumproomnote,jdbcType=VARCHAR}, | ||
| 881 | + </if> | ||
| 882 | + <if test="clearwaterreserviorsstairs != null" > | ||
| 883 | + clearWaterReserviorsStairs = #{clearwaterreserviorsstairs,jdbcType=VARCHAR}, | ||
| 884 | + </if> | ||
| 885 | + <if test="clearwaterreserviorsvent != null" > | ||
| 886 | + clearWaterReserviorsVent = #{clearwaterreserviorsvent,jdbcType=VARCHAR}, | ||
| 887 | + </if> | ||
| 888 | + <if test="clearwaterreserviorspoolroof != null" > | ||
| 889 | + clearWaterReserviorsPoolRoof = #{clearwaterreserviorspoolroof,jdbcType=VARCHAR}, | ||
| 890 | + </if> | ||
| 891 | + <if test="clearwaterreserviorssanitation != null" > | ||
| 892 | + clearWaterReserviorsSanitation = #{clearwaterreserviorssanitation,jdbcType=VARCHAR}, | ||
| 893 | + </if> | ||
| 894 | + <if test="clearwaterreserviorspumpbody != null" > | ||
| 895 | + clearWaterReserviorsPumpBody = #{clearwaterreserviorspumpbody,jdbcType=VARCHAR}, | ||
| 896 | + </if> | ||
| 897 | + <if test="clearwaterreserviorsresponsibleperson != null" > | ||
| 898 | + clearWaterReserviorsResponsiblePerson = #{clearwaterreserviorsresponsibleperson,jdbcType=VARCHAR}, | ||
| 899 | + </if> | ||
| 900 | + <if test="clearwaterreserviorsnote != null" > | ||
| 901 | + clearWaterReserviorsNote = #{clearwaterreserviorsnote,jdbcType=VARCHAR}, | ||
| 902 | + </if> | ||
| 903 | + <if test="betweenchlorineequipment != null" > | ||
| 904 | + betweenChlorineEquipment = #{betweenchlorineequipment,jdbcType=VARCHAR}, | ||
| 905 | + </if> | ||
| 906 | + <if test="betweenchlorinepipe != null" > | ||
| 907 | + betweenChlorinePipe = #{betweenchlorinepipe,jdbcType=VARCHAR}, | ||
| 908 | + </if> | ||
| 909 | + <if test="betweenchlorinedosingpump != null" > | ||
| 910 | + betweenChlorineDosingPump = #{betweenchlorinedosingpump,jdbcType=VARCHAR}, | ||
| 911 | + </if> | ||
| 912 | + <if test="betweenchlorinetraffic != null" > | ||
| 913 | + betweenChlorineTraffic = #{betweenchlorinetraffic,jdbcType=VARCHAR}, | ||
| 914 | + </if> | ||
| 915 | + <if test="betweenchlorinefan != null" > | ||
| 916 | + betweenChlorineFan = #{betweenchlorinefan,jdbcType=VARCHAR}, | ||
| 917 | + </if> | ||
| 918 | + <if test="betweenchlorinesanitation != null" > | ||
| 919 | + betweenChlorineSanitation = #{betweenchlorinesanitation,jdbcType=VARCHAR}, | ||
| 920 | + </if> | ||
| 921 | + <if test="betweenchlorineresponsibleperson != null" > | ||
| 922 | + betweenChlorineResponsiblePerson = #{betweenchlorineresponsibleperson,jdbcType=VARCHAR}, | ||
| 923 | + </if> | ||
| 924 | + <if test="betweenchlorinenote != null" > | ||
| 925 | + betweenChlorineNote = #{betweenchlorinenote,jdbcType=VARCHAR}, | ||
| 926 | + </if> | ||
| 927 | + <if test="groundenvironmentwelllids != null" > | ||
| 928 | + groundEnvironmentWellLIDS = #{groundenvironmentwelllids,jdbcType=VARCHAR}, | ||
| 929 | + </if> | ||
| 930 | + <if test="groundenvironmentdrainagen != null" > | ||
| 931 | + groundEnvironmentDrainagen = #{groundenvironmentdrainagen,jdbcType=VARCHAR}, | ||
| 932 | + </if> | ||
| 933 | + <if test="groundenvironmentwatersupply != null" > | ||
| 934 | + groundEnvironmentWaterSupply = #{groundenvironmentwatersupply,jdbcType=VARCHAR}, | ||
| 935 | + </if> | ||
| 936 | + <if test="groundenvironmentcable != null" > | ||
| 937 | + groundEnvironmentCable = #{groundenvironmentcable,jdbcType=VARCHAR}, | ||
| 938 | + </if> | ||
| 939 | + <if test="groundenvironmentroad != null" > | ||
| 940 | + groundEnvironmentRoad = #{groundenvironmentroad,jdbcType=VARCHAR}, | ||
| 941 | + </if> | ||
| 942 | + <if test="groundenvironmentresponsibleperson != null" > | ||
| 943 | + groundEnvironmentResponsiblePerson = #{groundenvironmentresponsibleperson,jdbcType=VARCHAR}, | ||
| 944 | + </if> | ||
| 945 | + <if test="groundenvironmentnote != null" > | ||
| 946 | + groundEnvironmentNote = #{groundenvironmentnote,jdbcType=VARCHAR}, | ||
| 947 | + </if> | ||
| 948 | + <if test="groundsecurityillegal != null" > | ||
| 949 | + groundSecurityIllegal = #{groundsecurityillegal,jdbcType=VARCHAR}, | ||
| 950 | + </if> | ||
| 951 | + <if test="groundsecurityfire != null" > | ||
| 952 | + groundSecurityFire = #{groundsecurityfire,jdbcType=VARCHAR}, | ||
| 953 | + </if> | ||
| 954 | + <if test="groundsecurityrats != null" > | ||
| 955 | + groundSecurityRats = #{groundsecurityrats,jdbcType=VARCHAR}, | ||
| 956 | + </if> | ||
| 957 | + <if test="groundsecuritysuspiciouspersonnel != null" > | ||
| 958 | + groundSecuritySuspiciousPersonnel = #{groundsecuritysuspiciouspersonnel,jdbcType=VARCHAR}, | ||
| 959 | + </if> | ||
| 960 | + <if test="groundsecurityresponsibleperson != null" > | ||
| 961 | + groundSecurityResponsiblePerson = #{groundsecurityresponsibleperson,jdbcType=VARCHAR}, | ||
| 962 | + </if> | ||
| 963 | + <if test="groundsecuritynote != null" > | ||
| 964 | + groundSecurityNote = #{groundsecuritynote,jdbcType=VARCHAR}, | ||
| 965 | + </if> | ||
| 966 | + <if test="securitytoolemergency != null" > | ||
| 967 | + securityToolEmergency = #{securitytoolemergency,jdbcType=VARCHAR}, | ||
| 968 | + </if> | ||
| 969 | + <if test="securitytoolfloodcontroland != null" > | ||
| 970 | + securityToolFloodControlAnd = #{securitytoolfloodcontroland,jdbcType=VARCHAR}, | ||
| 971 | + </if> | ||
| 972 | + <if test="securitytoolprotective != null" > | ||
| 973 | + securityToolProtective = #{securitytoolprotective,jdbcType=VARCHAR}, | ||
| 974 | + </if> | ||
| 975 | + <if test="securitytoolmainteance != null" > | ||
| 976 | + securityToolMainteance = #{securitytoolmainteance,jdbcType=VARCHAR}, | ||
| 977 | + </if> | ||
| 978 | + <if test="securitytoolresponsibleperson != null" > | ||
| 979 | + securityToolResponsiblePerson = #{securitytoolresponsibleperson,jdbcType=VARCHAR}, | ||
| 980 | + </if> | ||
| 981 | + <if test="securitytoolnote != null" > | ||
| 982 | + securityToolNote = #{securitytoolnote,jdbcType=VARCHAR}, | ||
| 983 | + </if> | ||
| 984 | + <if test="userid != null" > | ||
| 985 | + userId = #{userid,jdbcType=INTEGER}, | ||
| 986 | + </if> | ||
| 987 | + <if test="creattime != null" > | ||
| 988 | + creatTime = #{creattime,jdbcType=TIMESTAMP}, | ||
| 989 | + </if> | ||
| 990 | + <if test="reamke1 != null" > | ||
| 991 | + reamke1 = #{reamke1,jdbcType=VARCHAR}, | ||
| 992 | + </if> | ||
| 993 | + <if test="reamke2 != null" > | ||
| 994 | + reamke2 = #{reamke2,jdbcType=VARCHAR}, | ||
| 995 | + </if> | ||
| 996 | + <if test="reamke3 != null" > | ||
| 997 | + reamke3 = #{reamke3,jdbcType=VARCHAR}, | ||
| 998 | + </if> | ||
| 999 | + </set> | ||
| 1000 | + where id = #{id,jdbcType=VARCHAR} | ||
| 1001 | + </update> | ||
| 1002 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.warehouse.model.WaterStationsPatrol" > | ||
| 1003 | + update water_stations_patrol | ||
| 1004 | + set checkProjectControlRommWaterSupplySystem = #{checkprojectcontrolrommwatersupplysystem,jdbcType=VARCHAR}, | ||
| 1005 | + checkProjectControlRommSecuritySystem = #{checkprojectcontrolrommsecuritysystem,jdbcType=VARCHAR}, | ||
| 1006 | + checkProjectControlRommRunningRecord = #{checkprojectcontrolrommrunningrecord,jdbcType=VARCHAR}, | ||
| 1007 | + checkProjectControlRommDocumentHolder = #{checkprojectcontrolrommdocumentholder,jdbcType=VARCHAR}, | ||
| 1008 | + checkProjectControlRommGround = #{checkprojectcontrolrommground,jdbcType=VARCHAR}, | ||
| 1009 | + checkProjectControlRommResponsiblePerson = #{checkprojectcontrolrommresponsibleperson,jdbcType=VARCHAR}, | ||
| 1010 | + checkProjectControlRommnote = #{checkprojectcontrolrommnote,jdbcType=VARCHAR}, | ||
| 1011 | + checkProjectFrequencyConversionShow = #{checkprojectfrequencyconversionshow,jdbcType=VARCHAR}, | ||
| 1012 | + checkProjectFrequencyConversionClose = #{checkprojectfrequencyconversionclose,jdbcType=VARCHAR}, | ||
| 1013 | + checkProjectFrequencyConversionSanitation = #{checkprojectfrequencyconversionsanitation,jdbcType=VARCHAR}, | ||
| 1014 | + checkProjectFrequencyConversionResponsiblePerson = #{checkprojectfrequencyconversionresponsibleperson,jdbcType=VARCHAR}, | ||
| 1015 | + checkProjectFrequencyConversionNote = #{checkprojectfrequencyconversionnote,jdbcType=VARCHAR}, | ||
| 1016 | + checkProjectMeterBetweenTurbidityInstrumentPowerSupply = #{checkprojectmeterbetweenturbidityinstrumentpowersupply,jdbcType=VARCHAR}, | ||
| 1017 | + checkProjectMeterBetweenTurbidityInstrumentShow = #{checkprojectmeterbetweenturbidityinstrumentshow,jdbcType=VARCHAR}, | ||
| 1018 | + checkProjectMeterBetweenTurbidityInstrumentAppearance = #{checkprojectmeterbetweenturbidityinstrumentappearance,jdbcType=VARCHAR}, | ||
| 1019 | + checkProjectMeterBetweenTurbidityInstrumentRange = #{checkprojectmeterbetweenturbidityinstrumentrange,jdbcType=VARCHAR}, | ||
| 1020 | + checkProjectMeterBetweenTurbidityInstrumentDetection = #{checkprojectmeterbetweenturbidityinstrumentdetection,jdbcType=VARCHAR}, | ||
| 1021 | + checkProjectMeterBetweenTurbidityInstrumentResponsiblePerson = #{checkprojectmeterbetweenturbidityinstrumentresponsibleperson,jdbcType=VARCHAR}, | ||
| 1022 | + checkProjectMeterBetweenTurbidityInstrumentNote = #{checkprojectmeterbetweenturbidityinstrumentnote,jdbcType=VARCHAR}, | ||
| 1023 | + checkProjectMeterBetweenFlowMeterPowerSupply = #{checkprojectmeterbetweenflowmeterpowersupply,jdbcType=VARCHAR}, | ||
| 1024 | + checkProjectMeterBetweenFlowMeterShow = #{checkprojectmeterbetweenflowmetershow,jdbcType=VARCHAR}, | ||
| 1025 | + checkProjectMeterBetweenFlowMeterAppearance = #{checkprojectmeterbetweenflowmeterappearance,jdbcType=VARCHAR}, | ||
| 1026 | + checkProjectMeterBetweenFlowMeterResponsiblePerson = #{checkprojectmeterbetweenflowmeterresponsibleperson,jdbcType=VARCHAR}, | ||
| 1027 | + checkProjectMeterBetweenFlowMeterNote = #{checkprojectmeterbetweenflowmeternote,jdbcType=VARCHAR}, | ||
| 1028 | + residualChlorineInstrumentPipeline = #{residualchlorineinstrumentpipeline,jdbcType=VARCHAR}, | ||
| 1029 | + residualChlorineInstrumentPowerSupply = #{residualchlorineinstrumentpowersupply,jdbcType=VARCHAR}, | ||
| 1030 | + residualChlorineInstrumentShow = #{residualchlorineinstrumentshow,jdbcType=VARCHAR}, | ||
| 1031 | + residualChlorineInstrumentAppearance = #{residualchlorineinstrumentappearance,jdbcType=VARCHAR}, | ||
| 1032 | + residualChlorineInstrumentPipelinMakeWater = #{residualchlorineinstrumentpipelinmakewater,jdbcType=VARCHAR}, | ||
| 1033 | + residualChlorineInstrumentEquipment = #{residualchlorineinstrumentequipment,jdbcType=VARCHAR}, | ||
| 1034 | + residualChlorineInstrumentGroundSanitation = #{residualchlorineinstrumentgroundsanitation,jdbcType=VARCHAR}, | ||
| 1035 | + residualChlorineInstrumentResponsiblePerson = #{residualchlorineinstrumentresponsibleperson,jdbcType=VARCHAR}, | ||
| 1036 | + residualChlorineInstrumentNote = #{residualchlorineinstrumentnote,jdbcType=VARCHAR}, | ||
| 1037 | + boosterPumpRoomWaterPump = #{boosterpumproomwaterpump,jdbcType=VARCHAR}, | ||
| 1038 | + boosterPumpRoomBearing = #{boosterpumproombearing,jdbcType=VARCHAR}, | ||
| 1039 | + boosterPumpRoomTheValue = #{boosterpumproomthevalue,jdbcType=VARCHAR}, | ||
| 1040 | + boosterPumpRoomPumpBody = #{boosterpumproompumpbody,jdbcType=VARCHAR}, | ||
| 1041 | + boosterPumpRoomNamePlate = #{boosterpumproomnameplate,jdbcType=VARCHAR}, | ||
| 1042 | + boosterPumpRoomPacking = #{boosterpumproompacking,jdbcType=VARCHAR}, | ||
| 1043 | + boosterPumpRoomShow = #{boosterpumproomshow,jdbcType=VARCHAR}, | ||
| 1044 | + boosterPumpRoomFan = #{boosterpumproomfan,jdbcType=VARCHAR}, | ||
| 1045 | + boosterPumpRoomDrainage = #{boosterpumproomdrainage,jdbcType=VARCHAR}, | ||
| 1046 | + boosterPumpRoomSanitation = #{boosterpumproomsanitation,jdbcType=VARCHAR}, | ||
| 1047 | + boosterPumpRoomResponsiblePerson = #{boosterpumproomresponsibleperson,jdbcType=VARCHAR}, | ||
| 1048 | + boosterPumpRoomNote = #{boosterpumproomnote,jdbcType=VARCHAR}, | ||
| 1049 | + clearWaterReserviorsStairs = #{clearwaterreserviorsstairs,jdbcType=VARCHAR}, | ||
| 1050 | + clearWaterReserviorsVent = #{clearwaterreserviorsvent,jdbcType=VARCHAR}, | ||
| 1051 | + clearWaterReserviorsPoolRoof = #{clearwaterreserviorspoolroof,jdbcType=VARCHAR}, | ||
| 1052 | + clearWaterReserviorsSanitation = #{clearwaterreserviorssanitation,jdbcType=VARCHAR}, | ||
| 1053 | + clearWaterReserviorsPumpBody = #{clearwaterreserviorspumpbody,jdbcType=VARCHAR}, | ||
| 1054 | + clearWaterReserviorsResponsiblePerson = #{clearwaterreserviorsresponsibleperson,jdbcType=VARCHAR}, | ||
| 1055 | + clearWaterReserviorsNote = #{clearwaterreserviorsnote,jdbcType=VARCHAR}, | ||
| 1056 | + betweenChlorineEquipment = #{betweenchlorineequipment,jdbcType=VARCHAR}, | ||
| 1057 | + betweenChlorinePipe = #{betweenchlorinepipe,jdbcType=VARCHAR}, | ||
| 1058 | + betweenChlorineDosingPump = #{betweenchlorinedosingpump,jdbcType=VARCHAR}, | ||
| 1059 | + betweenChlorineTraffic = #{betweenchlorinetraffic,jdbcType=VARCHAR}, | ||
| 1060 | + betweenChlorineFan = #{betweenchlorinefan,jdbcType=VARCHAR}, | ||
| 1061 | + betweenChlorineSanitation = #{betweenchlorinesanitation,jdbcType=VARCHAR}, | ||
| 1062 | + betweenChlorineResponsiblePerson = #{betweenchlorineresponsibleperson,jdbcType=VARCHAR}, | ||
| 1063 | + betweenChlorineNote = #{betweenchlorinenote,jdbcType=VARCHAR}, | ||
| 1064 | + groundEnvironmentWellLIDS = #{groundenvironmentwelllids,jdbcType=VARCHAR}, | ||
| 1065 | + groundEnvironmentDrainagen = #{groundenvironmentdrainagen,jdbcType=VARCHAR}, | ||
| 1066 | + groundEnvironmentWaterSupply = #{groundenvironmentwatersupply,jdbcType=VARCHAR}, | ||
| 1067 | + groundEnvironmentCable = #{groundenvironmentcable,jdbcType=VARCHAR}, | ||
| 1068 | + groundEnvironmentRoad = #{groundenvironmentroad,jdbcType=VARCHAR}, | ||
| 1069 | + groundEnvironmentResponsiblePerson = #{groundenvironmentresponsibleperson,jdbcType=VARCHAR}, | ||
| 1070 | + groundEnvironmentNote = #{groundenvironmentnote,jdbcType=VARCHAR}, | ||
| 1071 | + groundSecurityIllegal = #{groundsecurityillegal,jdbcType=VARCHAR}, | ||
| 1072 | + groundSecurityFire = #{groundsecurityfire,jdbcType=VARCHAR}, | ||
| 1073 | + groundSecurityRats = #{groundsecurityrats,jdbcType=VARCHAR}, | ||
| 1074 | + groundSecuritySuspiciousPersonnel = #{groundsecuritysuspiciouspersonnel,jdbcType=VARCHAR}, | ||
| 1075 | + groundSecurityResponsiblePerson = #{groundsecurityresponsibleperson,jdbcType=VARCHAR}, | ||
| 1076 | + groundSecurityNote = #{groundsecuritynote,jdbcType=VARCHAR}, | ||
| 1077 | + securityToolEmergency = #{securitytoolemergency,jdbcType=VARCHAR}, | ||
| 1078 | + securityToolFloodControlAnd = #{securitytoolfloodcontroland,jdbcType=VARCHAR}, | ||
| 1079 | + securityToolProtective = #{securitytoolprotective,jdbcType=VARCHAR}, | ||
| 1080 | + securityToolMainteance = #{securitytoolmainteance,jdbcType=VARCHAR}, | ||
| 1081 | + securityToolResponsiblePerson = #{securitytoolresponsibleperson,jdbcType=VARCHAR}, | ||
| 1082 | + securityToolNote = #{securitytoolnote,jdbcType=VARCHAR}, | ||
| 1083 | + userId = #{userid,jdbcType=INTEGER}, | ||
| 1084 | + creatTime = #{creattime,jdbcType=TIMESTAMP}, | ||
| 1085 | + reamke1 = #{reamke1,jdbcType=VARCHAR}, | ||
| 1086 | + reamke2 = #{reamke2,jdbcType=VARCHAR}, | ||
| 1087 | + reamke3 = #{reamke3,jdbcType=VARCHAR} | ||
| 1088 | + where id = #{id,jdbcType=VARCHAR} | ||
| 1089 | + </update> | ||
| 1090 | +</mapper> |
src/main/resources/static/index.html
100644 → 100755
src/main/resources/static/js/jquery.js
100644 → 100755
src/main/resources/templates/error.html
100644 → 100755
src/main/resources/templates/home.html
100644 → 100755
src/main/resources/templates/log/imf.html
100644 → 100755
src/main/resources/templates/login.html
100644 → 100755
| 1 | -package com.tianbo.warehouse; | ||
| 2 | - | ||
| 3 | -import com.tianbo.warehouse.imf.handle.IMFSaveHandle; | ||
| 4 | - | ||
| 5 | -public class handleTest { | ||
| 6 | - private static String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Msg> <META> <SNDR>NDLR</SNDR> <RCVR></RCVR> <SEQN>172-33519102</SEQN> <DDTM>20181229124530224</DDTM> <TYPE>HYXX</TYPE> <STYP>NDLR</STYP> </META> <DECLAREPREPAREMASTERXMLBODY> <Head> <MessageID>CN_MT2201_1P0_460470678920X_20181229124530224</MessageID> <FunctionCode>9</FunctionCode> <MessageType>MT2201MASTER</MessageType> <SenderID>460470678920X_DXPENT0000460002_20181229124530224</SenderID> <ReceiverID>4604_20181229124530224</ReceiverID> <SendTime>20181229124530224</SendTime> <Version>1.0</Version> </Head> <Declaration> <Carrier> <ID>CV</ID> </Carrier> <ORG> <ID>CGO</ID> </ORG> <DES> <ID>CDG</ID> </DES> <BorderTransportMeans> <JourneyID>9732/2019-01-01</JourneyID> </BorderTransportMeans> <Consignment> <TransportContractDocument> <ID>172-33519102</ID> </TransportContractDocument> <LoadingLocation> <ID>CGO/4604</ID> <LoadingDate>2018-12-29 12:45</LoadingDate> </LoadingLocation> <UnloadingLocation> <ID>CGO/4604</ID> </UnloadingLocation> <TransportSplitIndicator>0</TransportSplitIndicator> <ConsignmentPackaging> <QuantityQuantity>337</QuantityQuantity> </ConsignmentPackaging> <TotalGrossMassMeasure>3192</TotalGrossMassMeasure> <PreQuantityQuantity>337</PreQuantityQuantity> <PreTotalGrossMassMeasure>3192</PreTotalGrossMassMeasure> <CustomsStatus>001</CustomsStatus> <FreightPayment> <MethodCode>PP</MethodCode> </FreightPayment> <ProductName>IMITATION JEWELRY</ProductName> <PrepareTime>2018-12-29 12:45</PrepareTime> <CustomsCode>4604</CustomsCode> <AgentName>ZRP</AgentName> <AgentCompany>郑州睿鹏物流有限公司</AgentCompany> <NameOfgoods>IMITATION JEWELRY</NameOfgoods> <DeliveryStation>001</DeliveryStation> <UNnumber></UNnumber> <Category></Category> <Consignee> <Name>QUALITAIR SEA INTERNATIONAL</Name> <Address> <Line>4 RUE DU MEUNIER BP 19622 95724 ROISSY CDG</Line> <CityName>CDG</CityName> <CountryCode>FR</CountryCode> <ZipCode></ZipCode> <PROVINCECODE></PROVINCECODE> <PROVINCENAME></PROVINCENAME> <Deltaname></Deltaname> <TelePhone>33 1 34 38 58 13</TelePhone> <Fax></Fax> <CNECUSID>EUROPEAN VAT NUMBER+FR93392293635</CNECUSID> <CNEAEO></CNEAEO> <Unlodingcode>CDG</Unlodingcode> </Address> </Consignee> <Consignor> <name>ON TIME EXPRESS LIMITED</name> <Address> <Line>ROOM 1102 FINANCIAL STREET HAI LUN CENTER NO 440 HAI LUN ROAD</Line> <CountryCode>CN</CountryCode> <ZipCode></ZipCode> <Deltaname></Deltaname> <TelePhone>862163642582</TelePhone> <Fax></Fax> <SHPAEO></SHPAEO> <SHPCUSID>USCI+91310000717852489D</SHPCUSID> </Address> </Consignor> </Consignment> </Declaration> </DECLAREPREPAREMASTERXMLBODY></Msg>"; | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - public static void main(String[] args) { | ||
| 11 | - | ||
| 12 | - IMFSaveHandle handle = new IMFSaveHandle(); | ||
| 13 | - handle.init(); | ||
| 14 | - handle.handle(xml); | ||
| 15 | - | ||
| 16 | - } | ||
| 17 | - | ||
| 18 | - | ||
| 19 | -} |
-
请 注册 或 登录 后发表评论