正在显示
42 个修改的文件
包含
4833 行增加
和
0 行删除
pom.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| 5 | + <modelVersion>4.0.0</modelVersion> | ||
| 6 | + | ||
| 7 | + <groupId>com.tianbo</groupId> | ||
| 8 | + <artifactId>statistics</artifactId> | ||
| 9 | + <version>1.0-SNAPSHOT</version> | ||
| 10 | + <build> | ||
| 11 | + <finalName>statistics</finalName> | ||
| 12 | + <plugins> | ||
| 13 | + <!--mybatis 逆向工程插件--> | ||
| 14 | + <plugin> | ||
| 15 | + <groupId>org.mybatis.generator</groupId> | ||
| 16 | + <artifactId>mybatis-generator-maven-plugin</artifactId> | ||
| 17 | + <version>1.3.2</version> | ||
| 18 | + <configuration> | ||
| 19 | + <verbose>true</verbose> | ||
| 20 | + <overwrite>true</overwrite> | ||
| 21 | + </configuration> | ||
| 22 | + <dependencies> | ||
| 23 | + <dependency> | ||
| 24 | + <groupId>com.tianbo</groupId> | ||
| 25 | + <artifactId>plugin</artifactId> | ||
| 26 | + <version>1.0</version> | ||
| 27 | + <scope>system</scope> | ||
| 28 | + <systemPath>/Users/mrz/Documents/maven/plugin.jar</systemPath> | ||
| 29 | + </dependency> | ||
| 30 | + </dependencies> | ||
| 31 | + </plugin> | ||
| 32 | + | ||
| 33 | + <plugin> | ||
| 34 | + <groupId>org.apache.maven.plugins</groupId> | ||
| 35 | + <artifactId>maven-surefire-plugin</artifactId> | ||
| 36 | + <version>2.19.1</version> | ||
| 37 | + <configuration> | ||
| 38 | + <includes> | ||
| 39 | + <include>**/*.java</include> | ||
| 40 | + </includes> | ||
| 41 | + </configuration> | ||
| 42 | + </plugin> | ||
| 43 | + </plugins> | ||
| 44 | + </build> | ||
| 45 | + <properties> | ||
| 46 | + <spring.version>4.3.10.RELEASE</spring.version> | ||
| 47 | + <shiro.version>1.2.3</shiro.version> | ||
| 48 | + | ||
| 49 | + <!-- log4j日志文件管理包版本 --> | ||
| 50 | + <slf4j.version>1.6.6</slf4j.version> | ||
| 51 | + <log4j.version>1.2.17</log4j.version> | ||
| 52 | + <commons-lang3.version>3.3</commons-lang3.version> | ||
| 53 | + <commons-collections.version>3.2.1</commons-collections.version> | ||
| 54 | + <jackson.version>2.8.9</jackson.version> | ||
| 55 | + <junit.version>4.12</junit.version> | ||
| 56 | + <ehcache.version>2.6.8</ehcache.version> | ||
| 57 | + </properties> | ||
| 58 | + | ||
| 59 | + <dependencies> | ||
| 60 | + <!-- springframe start --> | ||
| 61 | + <dependency> | ||
| 62 | + <groupId>org.springframework</groupId> | ||
| 63 | + <artifactId>spring-core</artifactId> | ||
| 64 | + <version>${spring.version}</version> | ||
| 65 | + </dependency> | ||
| 66 | + | ||
| 67 | + <dependency> | ||
| 68 | + <groupId>org.springframework</groupId> | ||
| 69 | + <artifactId>spring-web</artifactId> | ||
| 70 | + <version>${spring.version}</version> | ||
| 71 | + </dependency> | ||
| 72 | + | ||
| 73 | + <dependency> | ||
| 74 | + <groupId>org.springframework</groupId> | ||
| 75 | + <artifactId>spring-oxm</artifactId> | ||
| 76 | + <version>${spring.version}</version> | ||
| 77 | + </dependency> | ||
| 78 | + | ||
| 79 | + <dependency> | ||
| 80 | + <groupId>org.springframework</groupId> | ||
| 81 | + <artifactId>spring-tx</artifactId> | ||
| 82 | + <version>${spring.version}</version> | ||
| 83 | + </dependency> | ||
| 84 | + | ||
| 85 | + <dependency> | ||
| 86 | + <groupId>org.springframework</groupId> | ||
| 87 | + <artifactId>spring-jdbc</artifactId> | ||
| 88 | + <version>${spring.version}</version> | ||
| 89 | + </dependency> | ||
| 90 | + | ||
| 91 | + <dependency> | ||
| 92 | + <groupId>org.springframework</groupId> | ||
| 93 | + <artifactId>spring-webmvc</artifactId> | ||
| 94 | + <version>${spring.version}</version> | ||
| 95 | + </dependency> | ||
| 96 | + | ||
| 97 | + <dependency> | ||
| 98 | + <groupId>org.springframework</groupId> | ||
| 99 | + <artifactId>spring-aop</artifactId> | ||
| 100 | + <version>${spring.version}</version> | ||
| 101 | + </dependency> | ||
| 102 | + | ||
| 103 | + <dependency> | ||
| 104 | + <groupId>org.springframework</groupId> | ||
| 105 | + <artifactId>spring-context-support</artifactId> | ||
| 106 | + <version>${spring.version}</version> | ||
| 107 | + </dependency> | ||
| 108 | + | ||
| 109 | + <dependency> | ||
| 110 | + <groupId>org.springframework</groupId> | ||
| 111 | + <artifactId>spring-test</artifactId> | ||
| 112 | + <version>${spring.version}</version> | ||
| 113 | + </dependency> | ||
| 114 | + | ||
| 115 | + | ||
| 116 | + <!-- springframe end --> | ||
| 117 | + | ||
| 118 | + <!--aspectj start--> | ||
| 119 | + <dependency> | ||
| 120 | + <groupId>org.aspectj</groupId> | ||
| 121 | + <artifactId>aspectjweaver</artifactId> | ||
| 122 | + <version>1.8.6</version> | ||
| 123 | + </dependency> | ||
| 124 | + | ||
| 125 | + <dependency> | ||
| 126 | + <groupId>org.aspectj</groupId> | ||
| 127 | + <artifactId>aspectjrt</artifactId> | ||
| 128 | + <version>1.8.6</version> | ||
| 129 | + </dependency> | ||
| 130 | + <!--aspectj end--> | ||
| 131 | + | ||
| 132 | + <!--c3p0--> | ||
| 133 | + <dependency> | ||
| 134 | + <groupId>com.mchange</groupId> | ||
| 135 | + <artifactId>c3p0</artifactId> | ||
| 136 | + <version>0.9.5.1</version> | ||
| 137 | + </dependency> | ||
| 138 | + | ||
| 139 | + <!--servlet/jsp api start--> | ||
| 140 | + <dependency> | ||
| 141 | + <groupId>javax.servlet</groupId> | ||
| 142 | + <artifactId>servlet-api</artifactId> | ||
| 143 | + <version>2.5</version> | ||
| 144 | + </dependency> | ||
| 145 | + | ||
| 146 | + <dependency> | ||
| 147 | + <groupId>javax.servlet.jsp</groupId> | ||
| 148 | + <artifactId>jsp-api</artifactId> | ||
| 149 | + <version>2.1</version> | ||
| 150 | + <scope>provided</scope> | ||
| 151 | + </dependency> | ||
| 152 | + <!--servlet/jsp api end--> | ||
| 153 | + | ||
| 154 | + <!--junit4--> | ||
| 155 | + <dependency> | ||
| 156 | + <groupId>junit</groupId> | ||
| 157 | + <artifactId>junit</artifactId> | ||
| 158 | + <version>${junit.version}</version> | ||
| 159 | + <scope>test</scope> | ||
| 160 | + </dependency> | ||
| 161 | + | ||
| 162 | + <!--mybatis--> | ||
| 163 | + <dependency> | ||
| 164 | + <groupId>org.mybatis</groupId> | ||
| 165 | + <artifactId>mybatis</artifactId> | ||
| 166 | + <version>3.3.0</version> | ||
| 167 | + </dependency> | ||
| 168 | + <!--mybatis spring整合--> | ||
| 169 | + <dependency> | ||
| 170 | + <groupId>org.mybatis</groupId> | ||
| 171 | + <artifactId>mybatis-spring</artifactId> | ||
| 172 | + <version>1.2.3</version> | ||
| 173 | + </dependency> | ||
| 174 | + | ||
| 175 | + <!--mysql driver--> | ||
| 176 | + <dependency> | ||
| 177 | + <groupId>mysql</groupId> | ||
| 178 | + <artifactId>mysql-connector-java</artifactId> | ||
| 179 | + <version>5.1.6</version> | ||
| 180 | + </dependency> | ||
| 181 | + | ||
| 182 | + <!--jstl--> | ||
| 183 | + <dependency> | ||
| 184 | + <groupId>jstl</groupId> | ||
| 185 | + <artifactId>jstl</artifactId> | ||
| 186 | + <version>1.2</version> | ||
| 187 | + </dependency> | ||
| 188 | + | ||
| 189 | + <!--oracle driver--> | ||
| 190 | + <dependency> | ||
| 191 | + <groupId>com.oracle</groupId> | ||
| 192 | + <artifactId>ojdbc6</artifactId> | ||
| 193 | + <version>11.2.0.4.0-atlassian-hosted</version> | ||
| 194 | + </dependency> | ||
| 195 | + | ||
| 196 | + | ||
| 197 | + <!-- ehcache --> | ||
| 198 | + <dependency> | ||
| 199 | + <groupId>net.sf.ehcache</groupId> | ||
| 200 | + <artifactId>ehcache-core</artifactId> | ||
| 201 | + <version>${ehcache.version}</version> | ||
| 202 | + </dependency> | ||
| 203 | + <!--shiro--> | ||
| 204 | + <dependency> | ||
| 205 | + <groupId>org.apache.shiro</groupId> | ||
| 206 | + <artifactId>shiro-core</artifactId> | ||
| 207 | + <version>${shiro.version}</version> | ||
| 208 | + </dependency> | ||
| 209 | + <dependency> | ||
| 210 | + <groupId>org.apache.shiro</groupId> | ||
| 211 | + <artifactId>shiro-web</artifactId> | ||
| 212 | + <version>${shiro.version}</version> | ||
| 213 | + </dependency> | ||
| 214 | + <dependency> | ||
| 215 | + <groupId>org.apache.shiro</groupId> | ||
| 216 | + <artifactId>shiro-cas</artifactId> | ||
| 217 | + <version>${shiro.version}</version> | ||
| 218 | + </dependency> | ||
| 219 | + <dependency> | ||
| 220 | + <groupId>org.apache.shiro</groupId> | ||
| 221 | + <artifactId>shiro-spring</artifactId> | ||
| 222 | + <version>${shiro.version}</version> | ||
| 223 | + </dependency> | ||
| 224 | + <dependency> | ||
| 225 | + <groupId>org.apache.shiro</groupId> | ||
| 226 | + <artifactId>shiro-ehcache</artifactId> | ||
| 227 | + <version>${shiro.version}</version> | ||
| 228 | + </dependency> | ||
| 229 | + | ||
| 230 | + <!-- 日志文件管理包 --> | ||
| 231 | + <!-- log start --> | ||
| 232 | + <dependency> | ||
| 233 | + <groupId>log4j</groupId> | ||
| 234 | + <artifactId>log4j</artifactId> | ||
| 235 | + <version>${log4j.version}</version> | ||
| 236 | + </dependency> | ||
| 237 | + <dependency> | ||
| 238 | + <groupId>org.slf4j</groupId> | ||
| 239 | + <artifactId>slf4j-api</artifactId> | ||
| 240 | + <version>${slf4j.version}</version> | ||
| 241 | + </dependency> | ||
| 242 | + <dependency> | ||
| 243 | + <groupId>org.slf4j</groupId> | ||
| 244 | + <artifactId>slf4j-log4j12</artifactId> | ||
| 245 | + <version>${slf4j.version}</version> | ||
| 246 | + </dependency> | ||
| 247 | + <!-- log end --> | ||
| 248 | + | ||
| 249 | + <dependency> | ||
| 250 | + <groupId>commons-collections</groupId> | ||
| 251 | + <artifactId>commons-collections</artifactId> | ||
| 252 | + <version>${commons-collections.version}</version> | ||
| 253 | + </dependency> | ||
| 254 | + | ||
| 255 | + <dependency> | ||
| 256 | + <groupId>org.apache.commons</groupId> | ||
| 257 | + <artifactId>commons-lang3</artifactId> | ||
| 258 | + <version>${commons-lang3.version}</version> | ||
| 259 | + </dependency> | ||
| 260 | + | ||
| 261 | + <!--jackson--> | ||
| 262 | + <dependency> | ||
| 263 | + <groupId>com.fasterxml.jackson.core</groupId> | ||
| 264 | + <artifactId>jackson-core</artifactId> | ||
| 265 | + <version>${jackson.version}</version> | ||
| 266 | + </dependency> | ||
| 267 | + <dependency> | ||
| 268 | + <groupId>com.fasterxml.jackson.core</groupId> | ||
| 269 | + <artifactId>jackson-databind</artifactId> | ||
| 270 | + <version>${jackson.version}</version> | ||
| 271 | + </dependency> | ||
| 272 | + <dependency> | ||
| 273 | + <groupId>com.fasterxml.jackson.core</groupId> | ||
| 274 | + <artifactId>jackson-annotations</artifactId> | ||
| 275 | + <version>${jackson.version}</version> | ||
| 276 | + </dependency> | ||
| 277 | + | ||
| 278 | + <dependency> | ||
| 279 | + <groupId>org.apache.cxf</groupId> | ||
| 280 | + <artifactId>cxf</artifactId> | ||
| 281 | + <version>2.7.18</version> | ||
| 282 | + <type>pom</type> | ||
| 283 | + </dependency> | ||
| 284 | + | ||
| 285 | + | ||
| 286 | + </dependencies> | ||
| 287 | +</project> | 
| 1 | +package com.tianbo.common; | ||
| 2 | + | ||
| 3 | +import com.tianbo.util.dao.Page; | ||
| 4 | +import com.tianbo.util.dao.Totals; | ||
| 5 | + | ||
| 6 | +import java.io.Serializable; | ||
| 7 | +import java.util.List; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * 返回对象以及对象分页 | ||
| 11 | + * @param <T> | ||
| 12 | + */ | ||
| 13 | +public class ModelAndPage<T> implements Serializable { | ||
| 14 | + | ||
| 15 | + private static final long serialVersionUID = 6732325477388107799L; | ||
| 16 | + | ||
| 17 | + private List<T> modelList; | ||
| 18 | + | ||
| 19 | + private Page page; | ||
| 20 | + | ||
| 21 | + private Totals totals; | ||
| 22 | + | ||
| 23 | + | ||
| 24 | + public ModelAndPage(){ | ||
| 25 | + | ||
| 26 | + } | ||
| 27 | + public ModelAndPage(List<T> list,Page page){ | ||
| 28 | + this.modelList = list; | ||
| 29 | + this.page = page; | ||
| 30 | + } | ||
| 31 | + public ModelAndPage(List<T> list,Page page,Totals totals){ | ||
| 32 | + this.modelList = list; | ||
| 33 | + this.page = page; | ||
| 34 | + this.totals = totals; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + public List<T> getModel() { | ||
| 38 | + return modelList; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public void setModel(List<T> model) { | ||
| 42 | + this.modelList = model; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public Page getPage() { | ||
| 46 | + return page; | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + public void setPage(Page page) { | ||
| 50 | + this.page = page; | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + public Totals getTotals() { | ||
| 54 | + return totals; | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + public void setTotals(Totals totals) { | ||
| 58 | + this.totals = totals; | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + | ||
| 62 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.service.EtlmessageService; | ||
| 5 | +import com.tianbo.util.dao.Page; | ||
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 7 | +import org.springframework.stereotype.Controller; | ||
| 8 | +import org.springframework.web.bind.annotation.ModelAttribute; | ||
| 9 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 10 | +import org.springframework.web.servlet.ModelAndView; | ||
| 11 | + | ||
| 12 | +/** | ||
| 13 | + * Created by Mr.Xu on 2017/9/14. | ||
| 14 | + */ | ||
| 15 | +@Controller | ||
| 16 | +@RequestMapping("/messagebak") | ||
| 17 | +public class ETLMessageBakController { | ||
| 18 | + @Autowired | ||
| 19 | + private EtlmessageService etlmessageService; | ||
| 20 | + | ||
| 21 | + @RequestMapping("/showlist") | ||
| 22 | + public ModelAndView findEtlMessage(@ModelAttribute Page page) throws Exception{ | ||
| 23 | + int pagelenth=10; | ||
| 24 | + int start = 0; | ||
| 25 | + if(page.getBegin()>=0){ start = page.getBegin(); } | ||
| 26 | + if (page.getLength()>0){ pagelenth = page.getLength();} | ||
| 27 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 28 | + ModelAndPage modelAndPage=new ModelAndPage(); | ||
| 29 | + modelAndPage=etlmessageService.findEtlMessage(start,pagelenth); | ||
| 30 | + modelAndView.addObject("modelAndPage",modelAndPage); | ||
| 31 | + modelAndView.setViewName("messagebak/list"); | ||
| 32 | + return modelAndView; | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + @RequestMapping("list") | ||
| 36 | + public String list(){return "messagebak/list";} | ||
| 37 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import org.springframework.stereotype.Controller; | ||
| 4 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 5 | + | ||
| 6 | +@Controller | ||
| 7 | +public class IndexController { | ||
| 8 | + @RequestMapping("/") | ||
| 9 | + public String index(){ | ||
| 10 | + return "index"; | ||
| 11 | + } | ||
| 12 | + | ||
| 13 | + @RequestMapping("/index") | ||
| 14 | + public String indexJSP(){ | ||
| 15 | + return "index"; | ||
| 16 | + } | ||
| 17 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.TKpiCargoWaybill; | ||
| 4 | +import com.tianbo.service.KPICargoBillServcie; | ||
| 5 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 6 | +import org.springframework.stereotype.Controller; | ||
| 7 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 8 | +import org.springframework.web.servlet.ModelAndView; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * 运单表 | ||
| 12 | + */ | ||
| 13 | + | ||
| 14 | +@Controller | ||
| 15 | +@RequestMapping("/kpi") | ||
| 16 | +public class KPIController { | ||
| 17 | + | ||
| 18 | + @Autowired | ||
| 19 | + KPICargoBillServcie kpiService; | ||
| 20 | + | ||
| 21 | + @RequestMapping("list") | ||
| 22 | + public ModelAndView list(){ | ||
| 23 | + TKpiCargoWaybill waybill = new TKpiCargoWaybill(); | ||
| 24 | + return new ModelAndView("kpi/list","waybill",waybill); | ||
| 25 | + } | ||
| 26 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.util.json.ResponseModel; | ||
| 4 | +import org.slf4j.Logger; | ||
| 5 | +import org.slf4j.LoggerFactory; | ||
| 6 | +import org.apache.shiro.SecurityUtils; | ||
| 7 | +import org.apache.shiro.authc.*; | ||
| 8 | +import org.apache.shiro.authz.UnauthenticatedException; | ||
| 9 | +import org.apache.shiro.subject.Subject; | ||
| 10 | +import org.springframework.stereotype.Controller; | ||
| 11 | +import org.springframework.transaction.annotation.Transactional; | ||
| 12 | +import org.springframework.ui.Model; | ||
| 13 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.RequestMethod; | ||
| 15 | +import org.springframework.web.bind.annotation.ResponseBody; | ||
| 16 | +import org.springframework.web.servlet.ModelAndView; | ||
| 17 | + | ||
| 18 | + | ||
| 19 | +import javax.servlet.http.HttpServletRequest; | ||
| 20 | + | ||
| 21 | +/** | ||
| 22 | + * Created by mrz on 2017/8/28. | ||
| 23 | + */ | ||
| 24 | +@Controller | ||
| 25 | +public class MainController { | ||
| 26 | + | ||
| 27 | + protected final Logger logger = LoggerFactory.getLogger(getClass()); | ||
| 28 | + | ||
| 29 | + @RequestMapping("/login") | ||
| 30 | + public String login(){ | ||
| 31 | + return "login"; | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | + @RequestMapping("/main/info") | ||
| 35 | + public String index(){ | ||
| 36 | + return "main/info"; | ||
| 37 | + } | ||
| 38 | + @RequestMapping("/main") | ||
| 39 | + public String main(){ | ||
| 40 | + return "main"; | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + @Transactional | ||
| 44 | + @RequestMapping(value = "/doLogin", method = RequestMethod.POST) | ||
| 45 | + @ResponseBody | ||
| 46 | + public ResponseModel dologin(String username, String password, String captcha){ | ||
| 47 | + | ||
| 48 | + ResponseModel md = new ResponseModel(200,"",null); | ||
| 49 | + | ||
| 50 | + String msg = ""; | ||
| 51 | + UsernamePasswordToken token = new UsernamePasswordToken(username,password); | ||
| 52 | + token.setRememberMe(true); | ||
| 53 | + | ||
| 54 | + Subject subject = SecurityUtils.getSubject(); | ||
| 55 | + | ||
| 56 | + logger.info("token="+token); | ||
| 57 | + try { | ||
| 58 | + subject.login(token); | ||
| 59 | + if (subject.isAuthenticated()){ | ||
| 60 | + subject.getSession().setAttribute("username",username); | ||
| 61 | + return md; | ||
| 62 | + } | ||
| 63 | + }catch (IncorrectCredentialsException e) { | ||
| 64 | + msg = "登录密码错误. Password for account " + token.getPrincipal() + " was incorrect."; | ||
| 65 | + md.setStatus(500); | ||
| 66 | + System.out.println(msg); | ||
| 67 | + } catch (ExcessiveAttemptsException e) { | ||
| 68 | + msg = "登录失败次数过多"; | ||
| 69 | + md.setStatus(500); | ||
| 70 | + System.out.println(msg); | ||
| 71 | + } catch (LockedAccountException e) { | ||
| 72 | + msg = "帐号已被锁定. The account for username " + token.getPrincipal() + " was locked."; | ||
| 73 | + md.setStatus(500); | ||
| 74 | + | ||
| 75 | + System.out.println(msg); | ||
| 76 | + } catch (DisabledAccountException e) { | ||
| 77 | + msg = "帐号已被禁用. The account for username " + token.getPrincipal() + " was disabled."; | ||
| 78 | + md.setStatus(500); | ||
| 79 | + System.out.println(msg); | ||
| 80 | + } catch (ExpiredCredentialsException e) { | ||
| 81 | + msg = "帐号已过期. the account for username " + token.getPrincipal() + " was expired."; | ||
| 82 | + md.setStatus(500); | ||
| 83 | + System.out.println(msg); | ||
| 84 | + } catch (UnknownAccountException e) { | ||
| 85 | + msg = "帐号不存在. There is no user with username of " + token.getPrincipal(); | ||
| 86 | + md.setStatus(500); | ||
| 87 | + System.out.println(msg); | ||
| 88 | + } catch (UnauthenticatedException e) { | ||
| 89 | + msg = "您没有得到相应的授权!" + e.getMessage(); | ||
| 90 | + md.setStatus(500); | ||
| 91 | + System.out.println(msg); | ||
| 92 | + } | ||
| 93 | + md.setMsg(msg); | ||
| 94 | + return md; | ||
| 95 | + } | ||
| 96 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.TKpiCargoManifest; | ||
| 4 | +import com.tianbo.service.ManiFestService; | ||
| 5 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 6 | +import org.springframework.stereotype.Controller; | ||
| 7 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 8 | +import org.springframework.web.servlet.ModelAndView; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * 仓单表 | ||
| 12 | + */ | ||
| 13 | + | ||
| 14 | +@Controller | ||
| 15 | +@RequestMapping("/man") | ||
| 16 | +public class ManiFestController { | ||
| 17 | + | ||
| 18 | + @Autowired | ||
| 19 | + ManiFestService maniFestService; | ||
| 20 | + | ||
| 21 | + @RequestMapping("list") | ||
| 22 | + public ModelAndView list(){ | ||
| 23 | + TKpiCargoManifest manifest = new TKpiCargoManifest(); | ||
| 24 | + return new ModelAndView("man/list","man",manifest); | ||
| 25 | + } | ||
| 26 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.model.TOlapColumn; | ||
| 5 | +import com.tianbo.model.TOlapDataset; | ||
| 6 | +import com.tianbo.service.OlapColumnService; | ||
| 7 | +import com.tianbo.service.OlapDataSetService; | ||
| 8 | +import com.tianbo.util.dao.Page; | ||
| 9 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 10 | +import org.springframework.stereotype.Controller; | ||
| 11 | +import org.springframework.web.bind.annotation.ModelAttribute; | ||
| 12 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 13 | +import org.springframework.web.servlet.ModelAndView; | ||
| 14 | +import org.springframework.web.servlet.mvc.support.RedirectAttributes; | ||
| 15 | + | ||
| 16 | +import javax.servlet.http.HttpServletRequest; | ||
| 17 | +import java.math.BigDecimal; | ||
| 18 | +import java.util.List; | ||
| 19 | + | ||
| 20 | +/** | ||
| 21 | + * Created by Mr.Xu on 2017/9/13. | ||
| 22 | + */ | ||
| 23 | +@Controller | ||
| 24 | +@RequestMapping("/olapcolumn") | ||
| 25 | +public class OlapColumnController { | ||
| 26 | + @Autowired | ||
| 27 | + private OlapColumnService olapColumnService; | ||
| 28 | + @Autowired | ||
| 29 | + private OlapDataSetService olapDataSetService; | ||
| 30 | + @RequestMapping("showlist") | ||
| 31 | + public ModelAndView findOlapColumn(@ModelAttribute Page page) throws Exception{ | ||
| 32 | + int pagelenth=10; | ||
| 33 | + int start=0; | ||
| 34 | + if(page.getBegin()>=0){start=page.getBegin();} | ||
| 35 | + if(page.getLength()>0){pagelenth=page.getLength();} | ||
| 36 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 37 | + ModelAndPage modelAndPage=new ModelAndPage(); | ||
| 38 | + modelAndPage=olapColumnService.findOlapColumn(start,pagelenth); | ||
| 39 | + List<TOlapDataset> olapDatasetList=olapDataSetService.findOlapDataSet(); | ||
| 40 | + | ||
| 41 | + modelAndView.addObject("modelAndPage",modelAndPage); | ||
| 42 | + modelAndView.addObject("olapDatasetList",olapDatasetList); | ||
| 43 | + modelAndView.setViewName("olapcolumn/list"); | ||
| 44 | + return modelAndView; | ||
| 45 | + } | ||
| 46 | + @RequestMapping("/selectlist") | ||
| 47 | + public ModelAndView selectOlapColumn(HttpServletRequest request,BigDecimal datasetid)throws Exception{ | ||
| 48 | + String id=request.getParameter("datasetid"); | ||
| 49 | + BigDecimal bd=new BigDecimal(id); | ||
| 50 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 51 | + List<TOlapColumn> tOlapColumnList=olapColumnService.selectOlapColumn(bd); | ||
| 52 | + TOlapDataset tOlapDataset=olapDataSetService.findByid(bd); | ||
| 53 | + modelAndView.addObject("tOlapColumnList",tOlapColumnList); | ||
| 54 | + modelAndView.addObject("tOlapDataset",tOlapDataset); | ||
| 55 | + modelAndView.setViewName("olapcolumn/list"); | ||
| 56 | + return modelAndView; | ||
| 57 | + } | ||
| 58 | + @RequestMapping("/findByid") | ||
| 59 | + public ModelAndView findByid(HttpServletRequest request,BigDecimal columnid) throws Exception{ | ||
| 60 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 61 | + String id=request.getParameter("columnid"); | ||
| 62 | + BigDecimal bd=new BigDecimal(id); | ||
| 63 | + TOlapColumn olapColumn=olapColumnService.findByid(bd); | ||
| 64 | + List<TOlapDataset> olapDatasetList=olapDataSetService.findOlapDataSet(); | ||
| 65 | + modelAndView.addObject("olapDatasetList",olapDatasetList); | ||
| 66 | + modelAndView.addObject("olapColumn",olapColumn); | ||
| 67 | + modelAndView.setViewName("olapcolumn/edit"); | ||
| 68 | + return modelAndView; | ||
| 69 | + } | ||
| 70 | + @RequestMapping("/addColumn") | ||
| 71 | + public String addOlapColumn(HttpServletRequest request,TOlapColumn olapColumn,RedirectAttributes attr){ | ||
| 72 | + String columnname=request.getParameter("columnname"); | ||
| 73 | + String datafield=request.getParameter("datafield"); | ||
| 74 | + String nodename=request.getParameter("nodename"); | ||
| 75 | + String active=request.getParameter("active"); | ||
| 76 | + String datasetid=request.getParameter("datasetid"); | ||
| 77 | + olapColumn.setActive(active); | ||
| 78 | + olapColumn.setDatasetid(new BigDecimal(datasetid)); | ||
| 79 | + olapColumn.setNodename(nodename); | ||
| 80 | + olapColumn.setColumnname(columnname); | ||
| 81 | + olapColumn.setDatafield(datafield); | ||
| 82 | + olapColumnService.addOlapColumn(olapColumn); | ||
| 83 | + attr.addAttribute("datasetid",new BigDecimal(datasetid)); | ||
| 84 | + return "redirect:/olapcolumn/selectlist"; | ||
| 85 | + } | ||
| 86 | + @RequestMapping("/deleteByPrimaryKey") | ||
| 87 | + public String deleteByPrimaryKey(HttpServletRequest request,BigDecimal columnid,RedirectAttributes attr){ | ||
| 88 | + String id=request.getParameter("columnid"); | ||
| 89 | + String datasetid=request.getParameter("datasetid"); | ||
| 90 | + BigDecimal bd=new BigDecimal(id); | ||
| 91 | + olapColumnService.deleteByPrimaryKey(bd); | ||
| 92 | + attr.addAttribute("datasetid",new BigDecimal(datasetid)); | ||
| 93 | + return "redirect:/olapcolumn/selectlist"; | ||
| 94 | + } | ||
| 95 | + @RequestMapping("/updateColumn") | ||
| 96 | + public String updateColumn(HttpServletRequest request,TOlapColumn olapColumn,RedirectAttributes attr){ | ||
| 97 | + String id=request.getParameter("columnid"); | ||
| 98 | + BigDecimal bd=new BigDecimal(id); | ||
| 99 | + String columnname=request.getParameter("columnname"); | ||
| 100 | + String datafield=request.getParameter("datafield"); | ||
| 101 | + String nodename=request.getParameter("nodename"); | ||
| 102 | + String datasetid=request.getParameter("datasetid"); | ||
| 103 | + String active=request.getParameter("active"); | ||
| 104 | + olapColumn.setColumnid(bd); | ||
| 105 | + olapColumn.setColumnname(columnname); | ||
| 106 | + olapColumn.setDatafield(datafield); | ||
| 107 | + olapColumn.setNodename(nodename); | ||
| 108 | + olapColumn.setDatasetid(new BigDecimal(datasetid)); | ||
| 109 | + olapColumn.setActive(active); | ||
| 110 | + olapColumnService.updateOlapColumn(olapColumn); | ||
| 111 | + attr.addAttribute("datasetid",new BigDecimal(datasetid)); | ||
| 112 | + return "redirect:/olapcolumn/selectlist"; | ||
| 113 | + } | ||
| 114 | + @RequestMapping("list") | ||
| 115 | + public String list(){return "olapcolumn/list";} | ||
| 116 | + | ||
| 117 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.model.TOlapDataset; | ||
| 5 | +import com.tianbo.service.OlapColumnService; | ||
| 6 | +import com.tianbo.service.OlapDataSetService; | ||
| 7 | +import com.tianbo.util.dao.Page; | ||
| 8 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 9 | +import org.springframework.stereotype.Controller; | ||
| 10 | +import org.springframework.web.bind.annotation.ModelAttribute; | ||
| 11 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 12 | +import org.springframework.web.servlet.ModelAndView; | ||
| 13 | + | ||
| 14 | +import javax.servlet.http.HttpServletRequest; | ||
| 15 | +import java.math.BigDecimal; | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + * Created by Mr.Xu on 2017/9/12. | ||
| 19 | + */ | ||
| 20 | +@Controller | ||
| 21 | +@RequestMapping("/olapdata") | ||
| 22 | +public class OlapDataSetController { | ||
| 23 | + @Autowired | ||
| 24 | + private OlapDataSetService olapDataSetService; | ||
| 25 | + @Autowired | ||
| 26 | + private OlapColumnService olapColumnService; | ||
| 27 | + @RequestMapping("/showlist") | ||
| 28 | + public ModelAndView findOlapDataSet(@ModelAttribute Page page) throws Exception { | ||
| 29 | + int pagelenth=10; | ||
| 30 | + int start=0; | ||
| 31 | + if(page.getBegin()>=0){start=page.getBegin();} | ||
| 32 | + if(page.getLength()>0){pagelenth=page.getLength();} | ||
| 33 | + ModelAndView modelAndView = new ModelAndView(); | ||
| 34 | + ModelAndPage modelAndPage=new ModelAndPage(); | ||
| 35 | + | ||
| 36 | + modelAndPage= olapDataSetService.findOlapDataSet(start,pagelenth); | ||
| 37 | + modelAndView.addObject("modelAndPage", modelAndPage); | ||
| 38 | + modelAndView.setViewName("olapdata/list"); | ||
| 39 | + return modelAndView; | ||
| 40 | + } | ||
| 41 | + @RequestMapping("/addDataset") | ||
| 42 | + public ModelAndView addOlapDataset(HttpServletRequest request,TOlapDataset olapDataset) throws Exception { | ||
| 43 | + String datasetname=request.getParameter("datasetname"); | ||
| 44 | + String viewname=request.getParameter("viewname"); | ||
| 45 | + String active=request.getParameter("active"); | ||
| 46 | + olapDataset.setDatasetname(datasetname); | ||
| 47 | + olapDataset.setViewname(viewname); | ||
| 48 | + olapDataset.setActive(active); | ||
| 49 | + olapDataSetService.addOlapDataSet(olapDataset); | ||
| 50 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 51 | + modelAndView.setViewName("redirect:/olapdata/showlist"); | ||
| 52 | + return modelAndView; | ||
| 53 | + } | ||
| 54 | + @RequestMapping("/deleteDataset") | ||
| 55 | + public String deleteDataset(HttpServletRequest request, BigDecimal datasetid){ | ||
| 56 | + String id=request.getParameter("datasetid"); | ||
| 57 | + BigDecimal bd=new BigDecimal(id); | ||
| 58 | + int result = olapColumnService.deleteOlapColumn(bd); | ||
| 59 | + if(result>0){ | ||
| 60 | + olapDataSetService.deleteOlapDataset(bd); | ||
| 61 | + return "redirect:/olapdata/showlist"; | ||
| 62 | + }else { | ||
| 63 | + return "500"; | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + } | ||
| 67 | + @RequestMapping("/findByid") | ||
| 68 | + public ModelAndView findByid(HttpServletRequest request,BigDecimal datasetid)throws Exception{ | ||
| 69 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 70 | + String id=request.getParameter("datasetid"); | ||
| 71 | + TOlapDataset olapDataset=olapDataSetService.findByid(new BigDecimal(id)); | ||
| 72 | + modelAndView.addObject("olapDataset",olapDataset); | ||
| 73 | + modelAndView.setViewName("olapdata/edit"); | ||
| 74 | + return modelAndView; | ||
| 75 | + } | ||
| 76 | + @RequestMapping("/updateDateset") | ||
| 77 | + public String updateDateset(HttpServletRequest request,TOlapDataset olapDataset){ | ||
| 78 | + String datasetid=request.getParameter("datasetid"); | ||
| 79 | + String datasetname=request.getParameter("datasetname"); | ||
| 80 | + String viewname=request.getParameter("viewname"); | ||
| 81 | + String active=request.getParameter("active"); | ||
| 82 | + olapDataset.setDatasetid(new BigDecimal(datasetid)); | ||
| 83 | + olapDataset.setDatasetname(datasetname); | ||
| 84 | + olapDataset.setViewname(viewname); | ||
| 85 | + olapDataset.setActive(active); | ||
| 86 | + olapDataSetService.updateOlapDataset(olapDataset); | ||
| 87 | + return "redirect:/olapdata/showlist"; | ||
| 88 | + } | ||
| 89 | + @RequestMapping("list") | ||
| 90 | + public String list() { | ||
| 91 | + return "olapdata/list"; | ||
| 92 | + } | ||
| 93 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.model.TOlapDataset; | ||
| 5 | +import com.tianbo.model.TOlapXmldoc; | ||
| 6 | +import com.tianbo.service.OlapDataSetService; | ||
| 7 | +import com.tianbo.service.OlapXmldocService; | ||
| 8 | +import com.tianbo.service.OlapXmlnodeService; | ||
| 9 | +import com.tianbo.util.dao.Page; | ||
| 10 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 11 | +import org.springframework.stereotype.Controller; | ||
| 12 | +import org.springframework.web.bind.annotation.ModelAttribute; | ||
| 13 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 14 | +import org.springframework.web.servlet.ModelAndView; | ||
| 15 | + | ||
| 16 | +import javax.servlet.http.HttpServletRequest; | ||
| 17 | +import java.math.BigDecimal; | ||
| 18 | +import java.util.List; | ||
| 19 | + | ||
| 20 | +/** | ||
| 21 | + * Created by Mr.Xu on 2017/9/14. | ||
| 22 | + */ | ||
| 23 | +@Controller | ||
| 24 | +@RequestMapping("/olapxmldoc") | ||
| 25 | +public class OlapXmldocController { | ||
| 26 | + @Autowired | ||
| 27 | + private OlapXmldocService olapXmldocService; | ||
| 28 | + @Autowired | ||
| 29 | + private OlapDataSetService olapDataSetService; | ||
| 30 | + @Autowired | ||
| 31 | + private OlapXmlnodeService olapXmlnodeService; | ||
| 32 | + @RequestMapping("showlist") | ||
| 33 | + public ModelAndView findXmldoc(@ModelAttribute Page page)throws Exception{ | ||
| 34 | + int pagelenth=10; | ||
| 35 | + int start=0; | ||
| 36 | + if(page.getBegin()>=0){start=page.getBegin();} | ||
| 37 | + if(page.getLength()>0){pagelenth=page.getLength();} | ||
| 38 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 39 | + ModelAndPage modelAndPage=new ModelAndPage(); | ||
| 40 | + modelAndPage=olapXmldocService.findXmldoc(start,pagelenth); | ||
| 41 | + List<TOlapDataset> olapDatasetList=olapDataSetService.findOlapDataSet(); | ||
| 42 | + modelAndView.addObject("modelAndPage",modelAndPage); | ||
| 43 | + modelAndView.addObject("olapDatasetList",olapDatasetList); | ||
| 44 | + modelAndView.setViewName("olapxmldoc/list"); | ||
| 45 | + return modelAndView; | ||
| 46 | + } | ||
| 47 | + @RequestMapping("addxmldoc") | ||
| 48 | + public String addXmldoc(HttpServletRequest request,TOlapXmldoc olapXmldoc){ | ||
| 49 | + String doctype=request.getParameter("doctype"); | ||
| 50 | + String docname=request.getParameter("docname"); | ||
| 51 | + String datasetid=request.getParameter("datasetid"); | ||
| 52 | + String active=request.getParameter("active"); | ||
| 53 | + olapXmldoc.setDoctype(doctype); | ||
| 54 | + olapXmldoc.setDocname(docname); | ||
| 55 | + olapXmldoc.setDatasetid(new BigDecimal(datasetid)); | ||
| 56 | + olapXmldoc.setActive(active); | ||
| 57 | + olapXmldocService.addXmldoc(olapXmldoc); | ||
| 58 | + return "redirect:/olapxmldoc/showlist"; | ||
| 59 | + } | ||
| 60 | + @RequestMapping("findByid") | ||
| 61 | + public ModelAndView findByid(HttpServletRequest request,BigDecimal docid) throws Exception{ | ||
| 62 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 63 | + String id=request.getParameter("docid"); | ||
| 64 | + BigDecimal bd=new BigDecimal(id); | ||
| 65 | + TOlapXmldoc olapXmldoc=olapXmldocService.findByid(bd); | ||
| 66 | + List<TOlapDataset> olapDatasetList=olapDataSetService.findOlapDataSet(); | ||
| 67 | + modelAndView.addObject("olapDatasetList",olapDatasetList); | ||
| 68 | + modelAndView.addObject("olapXmldoc",olapXmldoc); | ||
| 69 | + modelAndView.setViewName("olapxmldoc/edit"); | ||
| 70 | + return modelAndView; | ||
| 71 | + } | ||
| 72 | + @RequestMapping("updateXmldoc") | ||
| 73 | + public String updateXmldoc(HttpServletRequest request,TOlapXmldoc olapXmldoc){ | ||
| 74 | + String docid=request.getParameter("docid"); | ||
| 75 | + String doctype=request.getParameter("doctype"); | ||
| 76 | + String docname=request.getParameter("docname"); | ||
| 77 | + String datasetid=request.getParameter("datasetid"); | ||
| 78 | + String active=request.getParameter("active"); | ||
| 79 | + olapXmldoc.setActive(active); | ||
| 80 | + olapXmldoc.setDatasetid(new BigDecimal(datasetid)); | ||
| 81 | + olapXmldoc.setDocname(docname); | ||
| 82 | + olapXmldoc.setDoctype(doctype); | ||
| 83 | + olapXmldoc.setDocid(new BigDecimal(docid)); | ||
| 84 | + olapXmldocService.updateXmldoc(olapXmldoc); | ||
| 85 | + return "redirect:/olapxmldoc/showlist"; | ||
| 86 | + } | ||
| 87 | + @RequestMapping("deleteXmldoc") | ||
| 88 | + public String updateXmldoc(HttpServletRequest request,BigDecimal docid){ | ||
| 89 | + String id=request.getParameter("docid"); | ||
| 90 | + int result=olapXmlnodeService.deleteXmlnode(new BigDecimal(id)); | ||
| 91 | + if(result>0){ | ||
| 92 | + olapXmldocService.deleteXmldoc(new BigDecimal(id)); | ||
| 93 | + return "redirect:/olapxmldoc/showlist"; | ||
| 94 | + }else{ | ||
| 95 | + return "500"; | ||
| 96 | + } | ||
| 97 | + } | ||
| 98 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.model.TOlapColumn; | ||
| 5 | +import com.tianbo.model.TOlapXmldoc; | ||
| 6 | +import com.tianbo.model.TOlapXmlnode; | ||
| 7 | +import com.tianbo.service.OlapColumnService; | ||
| 8 | +import com.tianbo.service.OlapXmldocService; | ||
| 9 | +import com.tianbo.service.OlapXmlnodeService; | ||
| 10 | +import com.tianbo.util.dao.Page; | ||
| 11 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 12 | +import org.springframework.stereotype.Controller; | ||
| 13 | +import org.springframework.web.bind.annotation.ModelAttribute; | ||
| 14 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 15 | +import org.springframework.web.servlet.ModelAndView; | ||
| 16 | +import org.springframework.web.servlet.mvc.support.RedirectAttributes; | ||
| 17 | + | ||
| 18 | +import javax.servlet.http.HttpServletRequest; | ||
| 19 | +import java.math.BigDecimal; | ||
| 20 | +import java.util.List; | ||
| 21 | + | ||
| 22 | +/** | ||
| 23 | + * Created by Mr.Xu on 2017/9/14. | ||
| 24 | + */ | ||
| 25 | +@Controller | ||
| 26 | +@RequestMapping("/olapxmlnode") | ||
| 27 | +public class OlapXmlnodeController { | ||
| 28 | + | ||
| 29 | + @Autowired | ||
| 30 | + private OlapXmlnodeService olapXmlnodeService; | ||
| 31 | + @Autowired | ||
| 32 | + private OlapXmldocService olapXmldocService; | ||
| 33 | + @Autowired | ||
| 34 | + private OlapColumnService olapColumnService; | ||
| 35 | + @RequestMapping("showlist") | ||
| 36 | + public ModelAndView findXmlnode(@ModelAttribute Page page)throws Exception{ | ||
| 37 | + int pagelenth=10; | ||
| 38 | + int start=0; | ||
| 39 | + if(page.getBegin()>=0){start=page.getBegin();} | ||
| 40 | + if(page.getLength()>0){pagelenth=page.getLength();} | ||
| 41 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 42 | + ModelAndPage modelAndPage=new ModelAndPage(); | ||
| 43 | + modelAndPage=olapXmlnodeService.findXmlnode(start,pagelenth); | ||
| 44 | + List<TOlapXmldoc> olapXmldocList=olapXmldocService.findXmldoc(); | ||
| 45 | + List<TOlapColumn> olapColumnList=olapColumnService.findOlapColumn(); | ||
| 46 | + modelAndView.addObject("olapXmldocList",olapXmldocList); | ||
| 47 | + modelAndView.addObject("olapColumnList",olapColumnList); | ||
| 48 | + modelAndView.addObject("modelAndPage",modelAndPage); | ||
| 49 | + modelAndView.setViewName("olapxmlnode/list"); | ||
| 50 | + return modelAndView; | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + @RequestMapping("addXmlnode") | ||
| 54 | + public String addXmlnode(HttpServletRequest request,TOlapXmlnode olapXmlnode,RedirectAttributes attr){ | ||
| 55 | + String docid=request.getParameter("docid"); | ||
| 56 | + String columnid=request.getParameter("columnid"); | ||
| 57 | + olapXmlnode.setDocid(new BigDecimal(docid)); | ||
| 58 | + olapXmlnode.setColumnid(new BigDecimal(columnid)); | ||
| 59 | + olapXmlnodeService.addXmlnode(olapXmlnode); | ||
| 60 | + attr.addAttribute("docid",new BigDecimal(docid)); | ||
| 61 | + return "redirect:/olapxmlnode/selectlist"; | ||
| 62 | + } | ||
| 63 | + @RequestMapping("findByid") | ||
| 64 | + public ModelAndView findByid(HttpServletRequest request,BigDecimal nodeid)throws Exception{ | ||
| 65 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 66 | + String id=request.getParameter("nodeid"); | ||
| 67 | + TOlapXmlnode olapXmlnode=olapXmlnodeService.findByid(new BigDecimal(id)); | ||
| 68 | + List<TOlapXmldoc> olapXmldocList=olapXmldocService.findXmldoc(); | ||
| 69 | + List<TOlapColumn> olapColumnList=olapColumnService.findOlapColumn(); | ||
| 70 | + modelAndView.addObject("olapXmldocList",olapXmldocList); | ||
| 71 | + modelAndView.addObject("olapColumnList",olapColumnList); | ||
| 72 | + modelAndView.addObject("olapXmlnode",olapXmlnode); | ||
| 73 | + modelAndView.setViewName("olapxmlnode/edit"); | ||
| 74 | + return modelAndView; | ||
| 75 | + } | ||
| 76 | + @RequestMapping("selectlist") | ||
| 77 | + public ModelAndView selectXmlnode(HttpServletRequest request,BigDecimal docid)throws Exception{ | ||
| 78 | + ModelAndView modelAndView=new ModelAndView(); | ||
| 79 | + String id=request.getParameter("docid"); | ||
| 80 | + BigDecimal bd=new BigDecimal(id); | ||
| 81 | + List<TOlapXmlnode> tOlapXmlnodeList=olapXmlnodeService.selectXmlnode(bd); | ||
| 82 | + TOlapXmldoc tOlapXmldoc=olapXmldocService.findByid(bd); | ||
| 83 | + List<TOlapColumn> olapColumnList=olapColumnService.findOlapColumn(); | ||
| 84 | + modelAndView.addObject("tOlapXmlnodeList",tOlapXmlnodeList); | ||
| 85 | + modelAndView.addObject("tOlapXmldoc",tOlapXmldoc); | ||
| 86 | + modelAndView.addObject("olapColumnList",olapColumnList); | ||
| 87 | + modelAndView.setViewName("olapxmlnode/list"); | ||
| 88 | + return modelAndView; | ||
| 89 | + } | ||
| 90 | + @RequestMapping("updateXmlnode") | ||
| 91 | + public String updateXmlnode(HttpServletRequest request,TOlapXmlnode olapXmlnode,RedirectAttributes attr){ | ||
| 92 | + String nodeid=request.getParameter("nodeid"); | ||
| 93 | + String docid=request.getParameter("docid"); | ||
| 94 | + String columnid=request.getParameter("columnid"); | ||
| 95 | + olapXmlnode.setColumnid(new BigDecimal(columnid)); | ||
| 96 | + olapXmlnode.setDocid(new BigDecimal(docid)); | ||
| 97 | + olapXmlnode.setNodeid(new BigDecimal(nodeid)); | ||
| 98 | + olapXmlnodeService.updateXmlnode(olapXmlnode); | ||
| 99 | + attr.addAttribute("docid",new BigDecimal(docid)); | ||
| 100 | + return "redirect:/olapxmlnode/selectlist"; | ||
| 101 | + } | ||
| 102 | + @RequestMapping("deleteByPrimaryKey") | ||
| 103 | + public String deleteByPrimaryKey(HttpServletRequest request,BigDecimal nodeid,RedirectAttributes attr){ | ||
| 104 | + String id=request.getParameter("nodeid"); | ||
| 105 | + String docid=request.getParameter("docid"); | ||
| 106 | + olapXmlnodeService.deleteByPrimaryKey(new BigDecimal(id)); | ||
| 107 | + attr.addAttribute("docid",new BigDecimal(docid)); | ||
| 108 | + return "redirect:/olapxmlnode/selectlist"; | ||
| 109 | + } | ||
| 110 | + @RequestMapping("list") | ||
| 111 | + public String list(){return "olapxmlnode/list";} | ||
| 112 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.Role; | ||
| 4 | +import com.tianbo.model.Users; | ||
| 5 | +import org.springframework.stereotype.Controller; | ||
| 6 | +import org.springframework.web.bind.annotation.ModelAttribute; | ||
| 7 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 8 | +import org.springframework.web.servlet.ModelAndView; | ||
| 9 | + | ||
| 10 | +@Controller | ||
| 11 | +@RequestMapping("/permission") | ||
| 12 | +public class PermissionController { | ||
| 13 | + | ||
| 14 | + @RequestMapping("list") | ||
| 15 | + public ModelAndView listView(@ModelAttribute Role role){ | ||
| 16 | + | ||
| 17 | + return new ModelAndView("permission/list","role",role); | ||
| 18 | + } | ||
| 19 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.controller.base.BaseController; | ||
| 4 | +import com.tianbo.model.Role; | ||
| 5 | +import org.springframework.stereotype.Controller; | ||
| 6 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 7 | +import org.springframework.web.servlet.ModelAndView; | ||
| 8 | + | ||
| 9 | +@Controller | ||
| 10 | +@RequestMapping("/role") | ||
| 11 | +public class RoleController { | ||
| 12 | + | ||
| 13 | + | ||
| 14 | + @RequestMapping("list") | ||
| 15 | + public String listView(){ | ||
| 16 | + return "role/list"; | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + @RequestMapping("add") | ||
| 20 | + public ModelAndView add(){ | ||
| 21 | + Role role = new Role(); | ||
| 22 | + | ||
| 23 | + return new ModelAndView("role/add","role",role) ; | ||
| 24 | + } | ||
| 25 | +} | 
| 1 | +package com.tianbo.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.model.Users; | ||
| 5 | +import com.tianbo.model.UsersExample; | ||
| 6 | +import com.tianbo.service.UserService; | ||
| 7 | +import com.tianbo.util.dao.Page; | ||
| 8 | +import com.tianbo.util.tools.MD5Tools; | ||
| 9 | +import org.apache.shiro.SecurityUtils; | ||
| 10 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
| 11 | +import org.apache.shiro.authz.annotation.RequiresRoles; | ||
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 13 | +import org.springframework.stereotype.Controller; | ||
| 14 | +import org.springframework.web.bind.annotation.*; | ||
| 15 | +import org.springframework.web.servlet.ModelAndView; | ||
| 16 | + | ||
| 17 | +import javax.servlet.http.HttpServletRequest; | ||
| 18 | +import javax.servlet.http.HttpServletResponse; | ||
| 19 | +import java.math.BigDecimal; | ||
| 20 | +import java.util.Date; | ||
| 21 | +import java.util.HashMap; | ||
| 22 | +import java.util.List; | ||
| 23 | +import java.util.Map; | ||
| 24 | + | ||
| 25 | +/** | ||
| 26 | + * Created by mrz on 2017/8/23. | ||
| 27 | + */ | ||
| 28 | +@Controller | ||
| 29 | +@RequestMapping("/user") | ||
| 30 | +public class UserController { | ||
| 31 | + | ||
| 32 | + //service类 | ||
| 33 | + @Autowired | ||
| 34 | + private UserService userService; | ||
| 35 | + | ||
| 36 | + | ||
| 37 | + | ||
| 38 | + @RequestMapping("add") | ||
| 39 | + @RequiresRoles("admin") | ||
| 40 | + public ModelAndView addUserV(){ | ||
| 41 | + Users newUser = new Users(); | ||
| 42 | + return new ModelAndView("user/add","user",newUser); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + @RequestMapping("/edit") | ||
| 46 | + @RequiresRoles("admin") | ||
| 47 | + @RequiresPermissions({"user:edit","user:find"}) | ||
| 48 | + public ModelAndView userId(@ModelAttribute Users user){ | ||
| 49 | + | ||
| 50 | + String username = (String) SecurityUtils.getSubject().getSession().getAttribute("username"); | ||
| 51 | + //这里需要判断下,当前用户是可以编辑自己的资料的,或者再起一个ACTION,单独判断权限 | ||
| 52 | + | ||
| 53 | + return new ModelAndView("user/edit","user",user); | ||
| 54 | + | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + @RequiresRoles("admin") | ||
| 58 | + @RequestMapping("list") | ||
| 59 | + public String list(){ | ||
| 60 | + return "user/list"; | ||
| 61 | + } | ||
| 62 | +} | 
| 1 | +package com.tianbo.controller.base; | ||
| 2 | + | ||
| 3 | +public class BaseController { | ||
| 4 | + public Integer defaultDataStart = 0; | ||
| 5 | + public Integer defaultPerPage = 20; | ||
| 6 | + | ||
| 7 | + | ||
| 8 | + public Boolean checkPropertyNull(String property){ | ||
| 9 | + if(property!=null && property!=""){ | ||
| 10 | + return Boolean.TRUE; | ||
| 11 | + }else{ | ||
| 12 | + return Boolean.FALSE; | ||
| 13 | + } | ||
| 14 | + } | ||
| 15 | +} | 
| 1 | +package com.tianbo.controller.json; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.controller.base.BaseController; | ||
| 5 | +import com.tianbo.model.TKpiCargoWaybill; | ||
| 6 | +import com.tianbo.model.TKpiCargoWaybillExample; | ||
| 7 | +import com.tianbo.model.TKpiCargoWaybillExample.Criteria; | ||
| 8 | +import com.tianbo.service.KPICargoBillServcie; | ||
| 9 | +import com.tianbo.util.dao.Page; | ||
| 10 | +import com.tianbo.util.dao.Totals; | ||
| 11 | +import org.apache.shiro.authz.annotation.RequiresRoles; | ||
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 13 | +import org.springframework.stereotype.Controller; | ||
| 14 | +import org.springframework.web.bind.annotation.*; | ||
| 15 | + | ||
| 16 | +import java.math.BigDecimal; | ||
| 17 | +import java.util.List; | ||
| 18 | + | ||
| 19 | +@Controller | ||
| 20 | +@RequestMapping("/kpi") | ||
| 21 | +public class KPIJsonController extends BaseController{ | ||
| 22 | + @Autowired | ||
| 23 | + KPICargoBillServcie kpiService; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 查找所用用户控制器方法 | ||
| 27 | + * @return | ||
| 28 | + * @throws Exception | ||
| 29 | + */ | ||
| 30 | + @RequestMapping(value = "list.json",method = RequestMethod.POST) | ||
| 31 | + @RequiresRoles("admin") | ||
| 32 | + @ResponseBody | ||
| 33 | + public ModelAndPage kpiList(@ModelAttribute Page frontPage, @ModelAttribute TKpiCargoWaybill kpi) throws Exception{ | ||
| 34 | + | ||
| 35 | + if(frontPage.getBegin()>=0){ | ||
| 36 | + defaultDataStart = frontPage.getBegin(); | ||
| 37 | + } | ||
| 38 | + if (frontPage.getLength()>0){ | ||
| 39 | + defaultPerPage = frontPage.getLength(); | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + //example | ||
| 43 | + //调用mapper类中的selectByExample方法,如果传入类型为null,则表示无条件查找 | ||
| 44 | + TKpiCargoWaybillExample example = new TKpiCargoWaybillExample(); | ||
| 45 | + Criteria criteria = example.createCriteria(); | ||
| 46 | + Criteria criteria2= example.createCriteria(); | ||
| 47 | + Criteria criteria3= example.createCriteria(); | ||
| 48 | + Criteria criteria4= example.createCriteria(); | ||
| 49 | + | ||
| 50 | + //根据国内国际搜索 | ||
| 51 | + if (checkPropertyNull(kpi.getDomint())){ | ||
| 52 | + criteria.andDomintEqualTo(kpi.getDomint()); | ||
| 53 | + criteria2.andDomintEqualTo(kpi.getDomint()); | ||
| 54 | + criteria3.andDomintEqualTo(kpi.getDomint()); | ||
| 55 | + criteria4.andDomintEqualTo(kpi.getDomint()); | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + //根据运单前缀,前缀有主单的情况是三位前缀,分单的情况是主单号 | ||
| 59 | + if(checkPropertyNull(kpi.getWaybillpre())){ | ||
| 60 | + criteria.andWaybillpreEqualTo(kpi.getWaybillpre()); | ||
| 61 | + criteria2.andWaybillpreEqualTo(kpi.getWaybillpre()); | ||
| 62 | + criteria3.andWaybillpreEqualTo(kpi.getWaybillpre()); | ||
| 63 | + criteria4.andWaybillpreEqualTo(kpi.getWaybillpre()); | ||
| 64 | + } | ||
| 65 | + //根据运单类型 | ||
| 66 | + if(checkPropertyNull(kpi.getWaybilltype())){ | ||
| 67 | + criteria.andWaybilltypeEqualTo(kpi.getWaybilltype()); | ||
| 68 | + criteria2.andWaybilltypeEqualTo(kpi.getWaybilltype()); | ||
| 69 | + criteria3.andWaybilltypeEqualTo(kpi.getWaybilltype()); | ||
| 70 | + criteria4.andWaybilltypeEqualTo(kpi.getWaybilltype()); | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + //根据代理人id | ||
| 74 | + if(checkPropertyNull(kpi.getAgentid())){ | ||
| 75 | + criteria.andAgentidEqualTo(kpi.getAgentid()); | ||
| 76 | + criteria2.andAgentidEqualTo(kpi.getAgentid()); | ||
| 77 | + criteria3.andAgentidEqualTo(kpi.getAgentid()); | ||
| 78 | + criteria4.andAgentidEqualTo(kpi.getAgentid()); | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + //根据货主 | ||
| 82 | + if(checkPropertyNull(kpi.getShprname())){ | ||
| 83 | + criteria.andShprnameEqualTo(kpi.getShprname()); | ||
| 84 | + criteria2.andAgentidEqualTo(kpi.getAgentid()); | ||
| 85 | + criteria3.andAgentidEqualTo(kpi.getAgentid()); | ||
| 86 | + criteria4.andAgentidEqualTo(kpi.getAgentid()); | ||
| 87 | + } | ||
| 88 | + //根据货物id | ||
| 89 | + if(checkPropertyNull(kpi.getProductid())){ | ||
| 90 | + criteria.andProductidEqualTo(kpi.getProductid()); | ||
| 91 | + criteria2.andAgentidEqualTo(kpi.getAgentid()); | ||
| 92 | + criteria3.andAgentidEqualTo(kpi.getAgentid()); | ||
| 93 | + criteria4.andAgentidEqualTo(kpi.getAgentid()); | ||
| 94 | + } | ||
| 95 | + //根据货物名称 | ||
| 96 | + if(checkPropertyNull(kpi.getProductname())){ | ||
| 97 | + criteria.andProductnameEqualTo(kpi.getProductname()); | ||
| 98 | + criteria2.andProductnameEqualTo(kpi.getProductname()); | ||
| 99 | + criteria3.andProductnameEqualTo(kpi.getProductname()); | ||
| 100 | + criteria4.andProductnameEqualTo(kpi.getProductname()); | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + //根据进口 | ||
| 104 | + if(checkPropertyNull(kpi.getImp())){ | ||
| 105 | + criteria.andImpEqualTo(kpi.getImp()); | ||
| 106 | + criteria2.andImpEqualTo(kpi.getImp()); | ||
| 107 | + criteria3.andImpEqualTo(kpi.getImp()); | ||
| 108 | + criteria4.andImpEqualTo(kpi.getImp()); | ||
| 109 | + } | ||
| 110 | + //根据出口 | ||
| 111 | + if(checkPropertyNull(kpi.getExp())){ | ||
| 112 | + criteria.andExpEqualTo(kpi.getExp()); | ||
| 113 | + criteria2.andExpEqualTo(kpi.getExp()); | ||
| 114 | + criteria3.andExpEqualTo(kpi.getExp()); | ||
| 115 | + criteria4.andExpEqualTo(kpi.getExp()); | ||
| 116 | + } | ||
| 117 | + //根据时间段-年 | ||
| 118 | + if(kpi.getCuryear()!=null&&kpi.getEndyear()!=null){ | ||
| 119 | + criteria.andCuryearBetween(kpi.getCuryear(),kpi.getEndyear()); | ||
| 120 | + criteria2.andCuryearBetween(kpi.getCuryear(),kpi.getEndyear()); | ||
| 121 | + criteria3.andCuryearBetween(kpi.getCuryear(),kpi.getEndyear()); | ||
| 122 | + criteria4.andCuryearBetween(kpi.getCuryear(),kpi.getEndyear()); | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + //根据时间段-月 | ||
| 126 | + if(kpi.getCurmonth()!=null&&kpi.getEndmonth()!=null){ | ||
| 127 | + criteria.andCurmonthBetween(kpi.getCurmonth(),kpi.getEndmonth()); | ||
| 128 | + criteria2.andCurmonthBetween(kpi.getCurmonth(),kpi.getEndmonth()); | ||
| 129 | + criteria3.andCurmonthBetween(kpi.getCurmonth(),kpi.getEndmonth()); | ||
| 130 | + criteria4.andCurmonthBetween(kpi.getCurmonth(),kpi.getEndmonth()); | ||
| 131 | + } | ||
| 132 | + | ||
| 133 | + //根据时间段-日 | ||
| 134 | + if(kpi.getCurweek()!=null&&kpi.getEndweek()!=null){ | ||
| 135 | + criteria.andCurweekBetween(kpi.getCurweek(),kpi.getEndweek()); | ||
| 136 | + criteria2.andCurweekBetween(kpi.getCurweek(),kpi.getEndweek()); | ||
| 137 | + criteria3.andCurweekBetween(kpi.getCurweek(),kpi.getEndweek()); | ||
| 138 | + criteria4.andCurweekBetween(kpi.getCurweek(),kpi.getEndweek()); | ||
| 139 | + } | ||
| 140 | + | ||
| 141 | + | ||
| 142 | + //根据承运人搜索 | ||
| 143 | + if (checkPropertyNull(kpi.getAirline1())){ | ||
| 144 | + String carrier = kpi.getAirline1(); | ||
| 145 | + | ||
| 146 | + criteria.andAirline1EqualTo(carrier); | ||
| 147 | + criteria2.andAirline2EqualTo(carrier); | ||
| 148 | + criteria3.andAirline3EqualTo(carrier); | ||
| 149 | + criteria4.andAirline4EqualTo(carrier); | ||
| 150 | + | ||
| 151 | + | ||
| 152 | + | ||
| 153 | + example.or(criteria2); | ||
| 154 | + example.or(criteria3); | ||
| 155 | + example.or(criteria4); | ||
| 156 | + } | ||
| 157 | + | ||
| 158 | + //example.setOrderByClause("user_id"); //设置order 字段 | ||
| 159 | + | ||
| 160 | + //没加入分页前的搜索总数据数 | ||
| 161 | + int count = kpiService.countByExample(example); | ||
| 162 | + BigDecimal weight = kpiService.sumWeightByExample(example); | ||
| 163 | + BigDecimal pcs= kpiService.sumPcsByExample(example); | ||
| 164 | + BigDecimal vol= kpiService.sumVolByExample(example); | ||
| 165 | + BigDecimal hbillqty= kpiService.sumHbillqtyByExample(example); | ||
| 166 | + Totals totals = new Totals(weight,pcs,vol,hbillqty); | ||
| 167 | + | ||
| 168 | + Page page = new Page(defaultDataStart,defaultPerPage); | ||
| 169 | + page.setCount(count); | ||
| 170 | + | ||
| 171 | + example.setPage(page); //oracle 用这个 | ||
| 172 | + | ||
| 173 | + List<TKpiCargoWaybill> kpilist = kpiService.selectByExample(example); | ||
| 174 | + | ||
| 175 | + ModelAndPage<TKpiCargoWaybill> modelAndPage = new ModelAndPage(kpilist,page,totals); | ||
| 176 | + | ||
| 177 | + return modelAndPage; | ||
| 178 | + } | ||
| 179 | +} | 
| 1 | +package com.tianbo.controller.json; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.controller.base.BaseController; | ||
| 5 | +import com.tianbo.model.TKpiCargoManifest; | ||
| 6 | +import com.tianbo.model.TKpiCargoManifestExample; | ||
| 7 | +import com.tianbo.model.TKpiCargoManifestExample.Criteria; | ||
| 8 | +import com.tianbo.service.ManiFestService; | ||
| 9 | +import com.tianbo.util.dao.Page; | ||
| 10 | +import com.tianbo.util.dao.Totals; | ||
| 11 | +import org.apache.shiro.authz.annotation.RequiresRoles; | ||
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 13 | +import org.springframework.stereotype.Controller; | ||
| 14 | +import org.springframework.web.bind.annotation.ModelAttribute; | ||
| 15 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 16 | +import org.springframework.web.bind.annotation.RequestMethod; | ||
| 17 | +import org.springframework.web.bind.annotation.ResponseBody; | ||
| 18 | +import org.springframework.web.servlet.ModelAndView; | ||
| 19 | + | ||
| 20 | +import java.math.BigDecimal; | ||
| 21 | +import java.util.List; | ||
| 22 | + | ||
| 23 | +@Controller | ||
| 24 | +@RequestMapping("/man") | ||
| 25 | +public class ManiFestJsonController extends BaseController{ | ||
| 26 | + | ||
| 27 | + @Autowired | ||
| 28 | + ManiFestService maniFestService; | ||
| 29 | + | ||
| 30 | + | ||
| 31 | + @RequestMapping(value = "list.json",method = RequestMethod.POST) | ||
| 32 | + @RequiresRoles("admin") | ||
| 33 | + @ResponseBody | ||
| 34 | + public ModelAndPage<TKpiCargoManifest> maniList(@ModelAttribute TKpiCargoManifest manifest, @ModelAttribute Page frontPage){ | ||
| 35 | + if(frontPage.getBegin()>=0){ | ||
| 36 | + defaultDataStart = frontPage.getBegin(); | ||
| 37 | + } | ||
| 38 | + if (frontPage.getLength()>0){ | ||
| 39 | + defaultPerPage = frontPage.getLength(); | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + TKpiCargoManifestExample example = new TKpiCargoManifestExample(); | ||
| 43 | + Criteria criteria = example.createCriteria(); | ||
| 44 | + | ||
| 45 | + //根据时间段-年 | ||
| 46 | + if(manifest.getCuryear()!=null&&manifest.getEndyear()!=null){ | ||
| 47 | + criteria.andCuryearBetween(manifest.getCuryear(),manifest.getEndyear()); | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + //根据时间段-月 | ||
| 51 | + if(manifest.getCurmonth()!=null&&manifest.getEndmonth()!=null){ | ||
| 52 | + criteria.andCurmonthBetween(manifest.getCurmonth(),manifest.getEndmonth()); | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | + //根据时间段-日 | ||
| 56 | + if(manifest.getCurweek()!=null&&manifest.getEndweek()!=null){ | ||
| 57 | + criteria.andCurweekBetween(manifest.getCurweek(),manifest.getEndweek()); | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + //根据机号 | ||
| 61 | + if(checkPropertyNull(manifest.getPlaneno())){ | ||
| 62 | + criteria.andPlanenoEqualTo(manifest.getPlaneno()); | ||
| 63 | + } | ||
| 64 | + //根据航班号 | ||
| 65 | + if(checkPropertyNull(manifest.getFlightno())){ | ||
| 66 | + criteria.andFlightnoEqualTo(manifest.getFlightno()); | ||
| 67 | + } | ||
| 68 | + //根据机型 | ||
| 69 | + if(checkPropertyNull(manifest.getPlanetype())){ | ||
| 70 | + criteria.andPlanetypeEqualTo(manifest.getPlanetype()); | ||
| 71 | + } | ||
| 72 | + //根据航空公司 | ||
| 73 | + if(checkPropertyNull(manifest.getAircorpid())){ | ||
| 74 | + criteria.andAircorpidEqualTo(manifest.getAircorpid()); | ||
| 75 | + } | ||
| 76 | + //进出港 | ||
| 77 | + if(checkPropertyNull(manifest.getExpimp())){ | ||
| 78 | + criteria.andExpimpEqualTo(manifest.getExpimp()); | ||
| 79 | + } | ||
| 80 | + //国内国际 | ||
| 81 | + if(checkPropertyNull(manifest.getDomint())){ | ||
| 82 | + criteria.andDomintEqualTo(manifest.getDomint()); | ||
| 83 | + } | ||
| 84 | + //运单类型 | ||
| 85 | + if(checkPropertyNull(manifest.getWaybilltype())){ | ||
| 86 | + criteria.andWaybilltypeEqualTo(manifest.getWaybilltype()); | ||
| 87 | + } | ||
| 88 | + //营业点 | ||
| 89 | + if(checkPropertyNull(manifest.getOperdepartid())){ | ||
| 90 | + criteria.andOperdepartidEqualTo(manifest.getOperdepartid()); | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + int count = maniFestService.countByExample(example); | ||
| 94 | + BigDecimal weight = maniFestService.sumWeightByExample(example); | ||
| 95 | + BigDecimal pcs= maniFestService.sumPcsByExample(example); | ||
| 96 | + BigDecimal vol= maniFestService.sumVolByExample(example); | ||
| 97 | + Totals totals = new Totals(weight,pcs,vol); | ||
| 98 | + | ||
| 99 | + Page page = new Page(defaultDataStart,defaultPerPage); | ||
| 100 | + page.setCount(count); | ||
| 101 | + example.setPage(page); //oracle 用这个 | ||
| 102 | + | ||
| 103 | + List<TKpiCargoManifest> maniList = maniFestService.selectByExample(example); | ||
| 104 | + ModelAndPage<TKpiCargoManifest> modelAndPage = new ModelAndPage<TKpiCargoManifest>(maniList,page,totals); | ||
| 105 | + return modelAndPage; | ||
| 106 | + } | ||
| 107 | +} | 
| 1 | +package com.tianbo.controller.json; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.model.*; | ||
| 5 | +import com.tianbo.service.PermissionService; | ||
| 6 | +import com.tianbo.service.RolePermissionService; | ||
| 7 | +import com.tianbo.util.dao.Page; | ||
| 8 | +import com.tianbo.util.json.ResponseModel; | ||
| 9 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 10 | +import org.springframework.stereotype.Controller; | ||
| 11 | +import org.springframework.web.bind.annotation.*; | ||
| 12 | + | ||
| 13 | +import javax.servlet.http.HttpServletRequest; | ||
| 14 | +import java.math.BigDecimal; | ||
| 15 | +import java.util.List; | ||
| 16 | + | ||
| 17 | +@Controller | ||
| 18 | +@RequestMapping("/permission") | ||
| 19 | +public class PermissionJsonContorller { | ||
| 20 | + //service类 | ||
| 21 | + @Autowired | ||
| 22 | + private PermissionService permissionService; | ||
| 23 | + | ||
| 24 | + @Autowired | ||
| 25 | + private RolePermissionService rolePermissionService; | ||
| 26 | + | ||
| 27 | + @RequestMapping("list.json") | ||
| 28 | + @ResponseBody | ||
| 29 | + public ModelAndPage Permissionlist(){ //所有权限列表 | ||
| 30 | + PermissionExample example = new PermissionExample(); | ||
| 31 | + //调用service方法得到用户列表 | ||
| 32 | + List<Permission> pms = permissionService.selectByExample(example); | ||
| 33 | + | ||
| 34 | + ModelAndPage modelAndPage = new ModelAndPage(pms,new Page()); | ||
| 35 | + | ||
| 36 | + return modelAndPage; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + @RequestMapping(value = "listByRole.json",method = RequestMethod.POST) | ||
| 40 | + @ResponseBody | ||
| 41 | + public ModelAndPage listByRole(@RequestBody RolePermission rolePermission){ //角色权限列表 | ||
| 42 | + BigDecimal testID = new BigDecimal(1); | ||
| 43 | + RolePermissionExample example = new RolePermissionExample(); | ||
| 44 | + example.createCriteria().andRoleIdEqualTo(testID); | ||
| 45 | + //调用service方法得到用户列表 | ||
| 46 | + List<RolePermission> rp = rolePermissionService.selectByExample(example); | ||
| 47 | + | ||
| 48 | + ModelAndPage modelAndPage = new ModelAndPage(rp,new Page()); | ||
| 49 | + | ||
| 50 | + return modelAndPage; | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + @RequestMapping("update.json") | ||
| 54 | + @ResponseBody | ||
| 55 | + public ResponseModel insertByroleID(@RequestBody RolePermission rolePermission){ | ||
| 56 | + BigDecimal roleId = rolePermission.getRoleId(); | ||
| 57 | + | ||
| 58 | + //先删除以前的权限绑定。 | ||
| 59 | + //再插入新的权限绑定. | ||
| 60 | + RolePermissionExample delExample = new RolePermissionExample(); | ||
| 61 | + | ||
| 62 | + delExample.createCriteria().andRoleIdEqualTo(roleId); | ||
| 63 | + int delSuccess = rolePermissionService.deleteByExample(delExample); | ||
| 64 | + | ||
| 65 | + if (delSuccess>0){ | ||
| 66 | + //循环取出提交的已选择的Permission id列表,再插入 | ||
| 67 | + for(Integer PmsId:rolePermission.getPmList()){ | ||
| 68 | + RolePermission rolePermission1 = new RolePermission(); | ||
| 69 | + rolePermission1.setRoleId(roleId); | ||
| 70 | + rolePermission1.setPermissionId(new BigDecimal(PmsId)); | ||
| 71 | + int i = rolePermissionService.insert(rolePermission1); | ||
| 72 | + | ||
| 73 | + if (i<=0){ | ||
| 74 | + return new ResponseModel(500,"权限更新失败"); | ||
| 75 | + } | ||
| 76 | + } | ||
| 77 | + }else { | ||
| 78 | + return new ResponseModel(500,"权限更新失败"); | ||
| 79 | + } | ||
| 80 | + return new ResponseModel(200,"权限更新成功"); | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + @RequestMapping("edit.json") | ||
| 84 | + @ResponseBody | ||
| 85 | + public ModelAndPage edit(){ | ||
| 86 | + PermissionExample example = new PermissionExample(); | ||
| 87 | + //调用service方法得到用户列表 | ||
| 88 | + List<Permission> pms = permissionService.selectByExample(example); | ||
| 89 | + | ||
| 90 | + ModelAndPage modelAndPage = new ModelAndPage(pms,new Page()); | ||
| 91 | + | ||
| 92 | + return modelAndPage; | ||
| 93 | + } | ||
| 94 | +} | 
| 1 | +package com.tianbo.controller.json; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.controller.base.BaseController; | ||
| 5 | +import com.tianbo.model.Role; | ||
| 6 | +import com.tianbo.model.RoleExample; | ||
| 7 | +import com.tianbo.service.RoleService; | ||
| 8 | +import com.tianbo.util.dao.Page; | ||
| 9 | +import com.tianbo.util.json.ResponseModel; | ||
| 10 | +import com.tianbo.util.tools.MD5Tools; | ||
| 11 | +import org.apache.shiro.authz.annotation.RequiresRoles; | ||
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 13 | +import org.springframework.stereotype.Controller; | ||
| 14 | +import org.springframework.web.bind.annotation.*; | ||
| 15 | + | ||
| 16 | +import java.util.Date; | ||
| 17 | +import java.util.List; | ||
| 18 | + | ||
| 19 | +@Controller | ||
| 20 | +@RequestMapping("/role") | ||
| 21 | +public class RoleJsonController extends BaseController{ | ||
| 22 | + | ||
| 23 | + //service类 | ||
| 24 | + @Autowired | ||
| 25 | + private RoleService roleService; | ||
| 26 | + | ||
| 27 | + @RequestMapping("list.json") | ||
| 28 | + @RequiresRoles("admin") | ||
| 29 | + @ResponseBody | ||
| 30 | + public ModelAndPage list(@ModelAttribute Page frontPage, @ModelAttribute Role role) throws Exception{ | ||
| 31 | + | ||
| 32 | + RoleExample example = new RoleExample(); | ||
| 33 | + example.setOrderByClause("role_id"); | ||
| 34 | + //调用service方法得到用户列表 | ||
| 35 | + List<Role> roles = roleService.selectByExample(example); | ||
| 36 | + | ||
| 37 | + ModelAndPage modelAndPage = new ModelAndPage(roles,new Page()); | ||
| 38 | + | ||
| 39 | + return modelAndPage; | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + @RequestMapping("roleExamlpe.json") | ||
| 43 | + @ResponseBody | ||
| 44 | + public Role example(){ | ||
| 45 | + return new Role(); | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + @RequestMapping(value = "add.json",method = RequestMethod.POST) | ||
| 49 | + @RequiresRoles("admin") | ||
| 50 | + @ResponseBody | ||
| 51 | + public ResponseModel add(@RequestBody Role role){ | ||
| 52 | + | ||
| 53 | + ResponseModel responseModel = new ResponseModel(); | ||
| 54 | + | ||
| 55 | + if (checkRole(role)){ | ||
| 56 | + int i = roleService.insert(role); | ||
| 57 | + if(i>0){ | ||
| 58 | + responseModel.setStatus(200); | ||
| 59 | + responseModel.setMsg("添加角色成功"); | ||
| 60 | + }else { | ||
| 61 | + responseModel.setStatus(500); | ||
| 62 | + responseModel.setMsg("添加角色失败"); | ||
| 63 | + } | ||
| 64 | + }else { | ||
| 65 | + responseModel.setStatus(500); | ||
| 66 | + responseModel.setMsg("添加角色失败,已存在相同名称的角色"); | ||
| 67 | + } | ||
| 68 | + return responseModel; | ||
| 69 | + | ||
| 70 | + | ||
| 71 | + | ||
| 72 | + | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + private Boolean checkRole( Role role){ | ||
| 76 | + if (roleService.checkRole(role)){ | ||
| 77 | + return Boolean.FALSE; //存在用户,返回false | ||
| 78 | + }else { | ||
| 79 | + return Boolean.TRUE; //不存在用户,返回true,可以添加用户 | ||
| 80 | + } | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | +} | 
| 1 | +package com.tianbo.controller.json; | ||
| 2 | + | ||
| 3 | +import com.tianbo.common.ModelAndPage; | ||
| 4 | +import com.tianbo.controller.base.BaseController; | ||
| 5 | +import com.tianbo.model.Users; | ||
| 6 | +import com.tianbo.model.UsersExample; | ||
| 7 | +import com.tianbo.service.UserService; | ||
| 8 | +import com.tianbo.util.dao.Page; | ||
| 9 | +import com.tianbo.util.json.ResponseModel; | ||
| 10 | +import com.tianbo.util.tools.MD5Tools; | ||
| 11 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | ||
| 12 | +import org.apache.shiro.authz.annotation.RequiresRoles; | ||
| 13 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 14 | +import org.springframework.stereotype.Controller; | ||
| 15 | +import org.springframework.web.bind.annotation.*; | ||
| 16 | +import org.springframework.web.servlet.ModelAndView; | ||
| 17 | + | ||
| 18 | +import java.text.SimpleDateFormat; | ||
| 19 | +import java.util.Date; | ||
| 20 | + | ||
| 21 | +/** | ||
| 22 | + * Created by mrz on 2017/8/23. | ||
| 23 | + */ | ||
| 24 | +@Controller | ||
| 25 | +@RequestMapping("/user") | ||
| 26 | +public class UserJsonController extends BaseController{ | ||
| 27 | + | ||
| 28 | + //service类 | ||
| 29 | + @Autowired | ||
| 30 | + private UserService userService; | ||
| 31 | + | ||
| 32 | + @RequestMapping("userExample.json") | ||
| 33 | + @RequiresRoles("admin") | ||
| 34 | + @ResponseBody | ||
| 35 | + public Users userExample() { | ||
| 36 | + | ||
| 37 | + Users users = new Users(); | ||
| 38 | + return users; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + @RequestMapping("userById.json") | ||
| 42 | + @RequiresRoles("admin") | ||
| 43 | + @ResponseBody | ||
| 44 | + public Users userList(@ModelAttribute Users user) throws Exception{ | ||
| 45 | + | ||
| 46 | + Users users = userService.selectByUserId(user.getUserId()); | ||
| 47 | + return users; | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + | ||
| 51 | + /** | ||
| 52 | + * 查找所用用户控制器方法 | ||
| 53 | + * @return | ||
| 54 | + * @throws Exception | ||
| 55 | + */ | ||
| 56 | + @RequestMapping("list.json") | ||
| 57 | + @RequiresRoles("admin") | ||
| 58 | + @ResponseBody | ||
| 59 | + public ModelAndPage userList(@ModelAttribute Page frontPage,@ModelAttribute Users user) throws Exception{ | ||
| 60 | + | ||
| 61 | + if(frontPage.getBegin()>=0){ defaultDataStart = frontPage.getBegin();} | ||
| 62 | + if (frontPage.getLength()>0){ defaultPerPage = frontPage.getLength();} | ||
| 63 | + //调用service方法得到用户列表 | ||
| 64 | + ModelAndPage users = userService.userList(defaultDataStart,defaultPerPage,user); | ||
| 65 | + | ||
| 66 | + return users; | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + @RequestMapping(value = "baseUpdate.json",method = RequestMethod.POST) | ||
| 70 | + @RequiresRoles("admin") | ||
| 71 | + @RequiresPermissions("user:edit") | ||
| 72 | + @ResponseBody | ||
| 73 | + public ResponseModel baseUpdate(@RequestBody Users user){ | ||
| 74 | + user.setUpdatetime(new Date()); | ||
| 75 | + int n = userService.updateByPrimaryKey(user); | ||
| 76 | + ResponseModel responseModel = new ResponseModel(); | ||
| 77 | + | ||
| 78 | + if (n>0){ | ||
| 79 | + responseModel.setStatus(200); | ||
| 80 | + responseModel.setMsg("用户资料更新成功"); | ||
| 81 | + return responseModel; | ||
| 82 | + }else { | ||
| 83 | + responseModel.setStatus(500); | ||
| 84 | + responseModel.setMsg("用户资料更新失败"); | ||
| 85 | + return responseModel; | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + @RequestMapping(value = "add.json",method = RequestMethod.POST) | ||
| 91 | + @RequiresRoles("admin") | ||
| 92 | + @ResponseBody | ||
| 93 | + public ResponseModel add(@RequestBody Users user){ | ||
| 94 | + | ||
| 95 | + ResponseModel responseModel = new ResponseModel(); | ||
| 96 | + | ||
| 97 | + if(checkUser(user)){ | ||
| 98 | + String userPW = user.getPassword(); | ||
| 99 | + String PWMD5 = MD5Tools.MD5(userPW); | ||
| 100 | + user.setPassword(PWMD5); | ||
| 101 | + user.setCreattime(new Date()); | ||
| 102 | + int n = userService.insert(user); | ||
| 103 | + | ||
| 104 | + if (n>0){ | ||
| 105 | + responseModel.setStatus(200); | ||
| 106 | + responseModel.setMsg("用户添加成功"); | ||
| 107 | + }else { | ||
| 108 | + | ||
| 109 | + } | ||
| 110 | + }else { | ||
| 111 | + responseModel.setStatus(500); | ||
| 112 | + responseModel.setMsg("用户添加失败,已存在用户"); | ||
| 113 | + } | ||
| 114 | + return responseModel; | ||
| 115 | + } | ||
| 116 | + | ||
| 117 | + @RequestMapping(value = "del.json",method = RequestMethod.POST) | ||
| 118 | + @RequiresRoles("admin") | ||
| 119 | + @ResponseBody | ||
| 120 | + public ResponseModel del(@ModelAttribute Users user){ | ||
| 121 | + | ||
| 122 | + ResponseModel responseModel = new ResponseModel(); | ||
| 123 | + | ||
| 124 | + int n = userService.deleteByPrimaryKey(user.getUserId()); | ||
| 125 | + | ||
| 126 | + if (n>0){ | ||
| 127 | + responseModel.setStatus(200); | ||
| 128 | + responseModel.setMsg("用户删除成功"); | ||
| 129 | + }else { | ||
| 130 | + responseModel.setStatus(500); | ||
| 131 | + responseModel.setMsg("用户删除失败"); | ||
| 132 | + } | ||
| 133 | + return responseModel; | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + private Boolean checkUser( Users user){ | ||
| 137 | + if (userService.checkUser(user)){ | ||
| 138 | + return Boolean.FALSE; //存在用户,返回false | ||
| 139 | + }else { | ||
| 140 | + return Boolean.TRUE; //不存在用户,返回true,可以添加用户 | ||
| 141 | + } | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + | ||
| 145 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.MessageBak; | ||
| 4 | +import com.tianbo.model.MessageBakExample; | ||
| 5 | +import java.util.List; | ||
| 6 | +import org.apache.ibatis.annotations.Param; | ||
| 7 | +import org.springframework.stereotype.Component; | ||
| 8 | + | ||
| 9 | +public interface MessageBakMapper { | ||
| 10 | + int countByExample(MessageBakExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(MessageBakExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(Short fid); | ||
| 15 | + | ||
| 16 | + int insert(MessageBak record); | ||
| 17 | + | ||
| 18 | + int insertSelective(MessageBak record); | ||
| 19 | + | ||
| 20 | + List<MessageBak> selectByExampleWithBLOBs(MessageBakExample example); | ||
| 21 | + | ||
| 22 | + List<MessageBak> selectByExample(MessageBakExample example); | ||
| 23 | + | ||
| 24 | + MessageBak selectByPrimaryKey(Short fid); | ||
| 25 | + | ||
| 26 | + int updateByExampleSelective(@Param("record") MessageBak record, @Param("example") MessageBakExample example); | ||
| 27 | + | ||
| 28 | + int updateByExampleWithBLOBs(@Param("record") MessageBak record, @Param("example") MessageBakExample example); | ||
| 29 | + | ||
| 30 | + int updateByExample(@Param("record") MessageBak record, @Param("example") MessageBakExample example); | ||
| 31 | + | ||
| 32 | + int updateByPrimaryKeySelective(MessageBak record); | ||
| 33 | + | ||
| 34 | + int updateByPrimaryKeyWithBLOBs(MessageBak record); | ||
| 35 | + | ||
| 36 | + int updateByPrimaryKey(MessageBak record); | ||
| 37 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.Permission; | ||
| 4 | +import com.tianbo.model.PermissionExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface PermissionMapper { | ||
| 10 | + int countByExample(PermissionExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(PermissionExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal permissionId); | ||
| 15 | + | ||
| 16 | + int insert(Permission record); | ||
| 17 | + | ||
| 18 | + int insertSelective(Permission record); | ||
| 19 | + | ||
| 20 | + List<Permission> selectByExample(PermissionExample example); | ||
| 21 | + | ||
| 22 | + Permission selectByPrimaryKey(BigDecimal permissionId); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") Permission record, @Param("example") PermissionExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") Permission record, @Param("example") PermissionExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(Permission record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(Permission record); | ||
| 31 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.Role; | ||
| 4 | +import com.tianbo.model.RoleExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface RoleMapper { | ||
| 10 | + int countByExample(RoleExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(RoleExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal roleId); | ||
| 15 | + | ||
| 16 | + int insert(Role record); | ||
| 17 | + | ||
| 18 | + int insertSelective(Role record); | ||
| 19 | + | ||
| 20 | + List<Role> selectByExample(RoleExample example); | ||
| 21 | + | ||
| 22 | + Role selectByPrimaryKey(BigDecimal roleId); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") Role record, @Param("example") RoleExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(Role record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(Role record); | ||
| 31 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.RolePermission; | ||
| 4 | +import com.tianbo.model.RolePermissionExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface RolePermissionMapper { | ||
| 10 | + int countByExample(RolePermissionExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(RolePermissionExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal id); | ||
| 15 | + | ||
| 16 | + int insert(RolePermission record); | ||
| 17 | + | ||
| 18 | + int insertSelective(RolePermission record); | ||
| 19 | + | ||
| 20 | + List<RolePermission> selectByExample(RolePermissionExample example); | ||
| 21 | + | ||
| 22 | + RolePermission selectByPrimaryKey(BigDecimal id); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") RolePermission record, @Param("example") RolePermissionExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") RolePermission record, @Param("example") RolePermissionExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(RolePermission record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(RolePermission record); | ||
| 31 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.TEtlMessage; | ||
| 4 | +import com.tianbo.model.TEtlMessageExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface TEtlMessageMapper { | ||
| 10 | + int countByExample(TEtlMessageExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(TEtlMessageExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal fid); | ||
| 15 | + | ||
| 16 | + int insert(TEtlMessage record); | ||
| 17 | + | ||
| 18 | + int insertSelective(TEtlMessage record); | ||
| 19 | + | ||
| 20 | + List<TEtlMessage> selectByExampleWithBLOBs(TEtlMessageExample example); | ||
| 21 | + | ||
| 22 | + List<TEtlMessage> selectByExample(TEtlMessageExample example); | ||
| 23 | + | ||
| 24 | + TEtlMessage selectByPrimaryKey(BigDecimal fid); | ||
| 25 | + | ||
| 26 | + int updateByExampleSelective(@Param("record") TEtlMessage record, @Param("example") TEtlMessageExample example); | ||
| 27 | + | ||
| 28 | + int updateByExampleWithBLOBs(@Param("record") TEtlMessage record, @Param("example") TEtlMessageExample example); | ||
| 29 | + | ||
| 30 | + int updateByExample(@Param("record") TEtlMessage record, @Param("example") TEtlMessageExample example); | ||
| 31 | + | ||
| 32 | + int updateByPrimaryKeySelective(TEtlMessage record); | ||
| 33 | + | ||
| 34 | + int updateByPrimaryKeyWithBLOBs(TEtlMessage record); | ||
| 35 | + | ||
| 36 | + int updateByPrimaryKey(TEtlMessage record); | ||
| 37 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.TKpiCargoManifest; | ||
| 4 | +import com.tianbo.model.TKpiCargoManifestExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface TKpiCargoManifestMapper { | ||
| 10 | + int countByExample(TKpiCargoManifestExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(TKpiCargoManifestExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal fid); | ||
| 15 | + | ||
| 16 | + int insert(TKpiCargoManifest record); | ||
| 17 | + | ||
| 18 | + int insertSelective(TKpiCargoManifest record); | ||
| 19 | + | ||
| 20 | + List<TKpiCargoManifest> selectByExample(TKpiCargoManifestExample example); | ||
| 21 | + | ||
| 22 | + TKpiCargoManifest selectByPrimaryKey(BigDecimal fid); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") TKpiCargoManifest record, @Param("example") TKpiCargoManifestExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") TKpiCargoManifest record, @Param("example") TKpiCargoManifestExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(TKpiCargoManifest record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(TKpiCargoManifest record); | ||
| 31 | + | ||
| 32 | + BigDecimal sumWeightByExample(TKpiCargoManifestExample example); | ||
| 33 | + | ||
| 34 | + BigDecimal sumPcsByExample(TKpiCargoManifestExample example); | ||
| 35 | + | ||
| 36 | + BigDecimal sumVolByExample(TKpiCargoManifestExample example); | ||
| 37 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.TKpiCargoWaybill; | ||
| 4 | +import com.tianbo.model.TKpiCargoWaybillExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface TKpiCargoWaybillMapper { | ||
| 10 | + int countByExample(TKpiCargoWaybillExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(TKpiCargoWaybillExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal fid); | ||
| 15 | + | ||
| 16 | + int insert(TKpiCargoWaybill record); | ||
| 17 | + | ||
| 18 | + int insertSelective(TKpiCargoWaybill record); | ||
| 19 | + | ||
| 20 | + List<TKpiCargoWaybill> selectByExample(TKpiCargoWaybillExample example); | ||
| 21 | + | ||
| 22 | + TKpiCargoWaybill selectByPrimaryKey(BigDecimal fid); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") TKpiCargoWaybill record, @Param("example") TKpiCargoWaybillExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") TKpiCargoWaybill record, @Param("example") TKpiCargoWaybillExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(TKpiCargoWaybill record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(TKpiCargoWaybill record); | ||
| 31 | + | ||
| 32 | + BigDecimal sumWeightByExample(TKpiCargoWaybillExample example); | ||
| 33 | + | ||
| 34 | + BigDecimal sumPcsByExample(TKpiCargoWaybillExample example); | ||
| 35 | + | ||
| 36 | + BigDecimal sumVolByExample(TKpiCargoWaybillExample example); | ||
| 37 | + | ||
| 38 | + BigDecimal sumHbillqtyByExample(TKpiCargoWaybillExample example); | ||
| 39 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.TOlapColumn; | ||
| 4 | +import com.tianbo.model.TOlapColumnExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface TOlapColumnMapper { | ||
| 10 | + int countByExample(TOlapColumnExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(TOlapColumnExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal columnid); | ||
| 15 | + | ||
| 16 | + int insert(TOlapColumn record); | ||
| 17 | + | ||
| 18 | + int insertSelective(TOlapColumn record); | ||
| 19 | + | ||
| 20 | + List<TOlapColumn> selectByExample(TOlapColumnExample example); | ||
| 21 | + | ||
| 22 | + TOlapColumn selectByPrimaryKey(BigDecimal columnid); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") TOlapColumn record, @Param("example") TOlapColumnExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") TOlapColumn record, @Param("example") TOlapColumnExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(TOlapColumn record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(TOlapColumn record); | ||
| 31 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.TOlapDataset; | ||
| 4 | +import com.tianbo.model.TOlapDatasetExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface TOlapDatasetMapper { | ||
| 10 | + int countByExample(TOlapDatasetExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(TOlapDatasetExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal datasetid); | ||
| 15 | + | ||
| 16 | + int insert(TOlapDataset record); | ||
| 17 | + | ||
| 18 | + int insertSelective(TOlapDataset record); | ||
| 19 | + | ||
| 20 | + List<TOlapDataset> selectByExample(TOlapDatasetExample example); | ||
| 21 | + | ||
| 22 | + TOlapDataset selectByPrimaryKey(BigDecimal datasetid); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") TOlapDataset record, @Param("example") TOlapDatasetExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") TOlapDataset record, @Param("example") TOlapDatasetExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(TOlapDataset record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(TOlapDataset record); | ||
| 31 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.TOlapXmldoc; | ||
| 4 | +import com.tianbo.model.TOlapXmldocExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface TOlapXmldocMapper { | ||
| 10 | + int countByExample(TOlapXmldocExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(TOlapXmldocExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal docid); | ||
| 15 | + | ||
| 16 | + int insert(TOlapXmldoc record); | ||
| 17 | + | ||
| 18 | + int insertSelective(TOlapXmldoc record); | ||
| 19 | + | ||
| 20 | + List<TOlapXmldoc> selectByExample(TOlapXmldocExample example); | ||
| 21 | + | ||
| 22 | + TOlapXmldoc selectByPrimaryKey(BigDecimal docid); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") TOlapXmldoc record, @Param("example") TOlapXmldocExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") TOlapXmldoc record, @Param("example") TOlapXmldocExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(TOlapXmldoc record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(TOlapXmldoc record); | ||
| 31 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.TOlapXmlnode; | ||
| 4 | +import com.tianbo.model.TOlapXmlnodeExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface TOlapXmlnodeMapper { | ||
| 10 | + int countByExample(TOlapXmlnodeExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(TOlapXmlnodeExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal nodeid); | ||
| 15 | + | ||
| 16 | + int insert(TOlapXmlnode record); | ||
| 17 | + | ||
| 18 | + int insertSelective(TOlapXmlnode record); | ||
| 19 | + | ||
| 20 | + List<TOlapXmlnode> selectByExample(TOlapXmlnodeExample example); | ||
| 21 | + | ||
| 22 | + TOlapXmlnode selectByPrimaryKey(BigDecimal nodeid); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") TOlapXmlnode record, @Param("example") TOlapXmlnodeExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") TOlapXmlnode record, @Param("example") TOlapXmlnodeExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(TOlapXmlnode record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(TOlapXmlnode record); | ||
| 31 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.UserRole; | ||
| 4 | +import com.tianbo.model.UserRoleExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface UserRoleMapper { | ||
| 10 | + int countByExample(UserRoleExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(UserRoleExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal id); | ||
| 15 | + | ||
| 16 | + int insert(UserRole record); | ||
| 17 | + | ||
| 18 | + int insertSelective(UserRole record); | ||
| 19 | + | ||
| 20 | + List<UserRole> selectByExample(UserRoleExample example); | ||
| 21 | + | ||
| 22 | + UserRole selectByPrimaryKey(BigDecimal id); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") UserRole record, @Param("example") UserRoleExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") UserRole record, @Param("example") UserRoleExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(UserRole record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(UserRole record); | ||
| 31 | +} | 
| 1 | +package com.tianbo.mapper; | ||
| 2 | + | ||
| 3 | +import com.tianbo.model.Users; | ||
| 4 | +import com.tianbo.model.UsersExample; | ||
| 5 | +import java.math.BigDecimal; | ||
| 6 | +import java.util.List; | ||
| 7 | +import org.apache.ibatis.annotations.Param; | ||
| 8 | + | ||
| 9 | +public interface UsersMapper { | ||
| 10 | + int countByExample(UsersExample example); | ||
| 11 | + | ||
| 12 | + int deleteByExample(UsersExample example); | ||
| 13 | + | ||
| 14 | + int deleteByPrimaryKey(BigDecimal userId); | ||
| 15 | + | ||
| 16 | + int insert(Users record); | ||
| 17 | + | ||
| 18 | + int insertSelective(Users record); | ||
| 19 | + | ||
| 20 | + List<Users> selectByExample(UsersExample example); | ||
| 21 | + | ||
| 22 | + Users selectByPrimaryKey(BigDecimal userId); | ||
| 23 | + | ||
| 24 | + int updateByExampleSelective(@Param("record") Users record, @Param("example") UsersExample example); | ||
| 25 | + | ||
| 26 | + int updateByExample(@Param("record") Users record, @Param("example") UsersExample example); | ||
| 27 | + | ||
| 28 | + int updateByPrimaryKeySelective(Users record); | ||
| 29 | + | ||
| 30 | + int updateByPrimaryKey(Users record); | ||
| 31 | +} | 
| 1 | +package com.tianbo.model; | ||
| 2 | + | ||
| 3 | +import java.math.BigDecimal; | ||
| 4 | +import java.util.Date; | ||
| 5 | + | ||
| 6 | +public class MessageBak { | ||
| 7 | + private Short fid; | ||
| 8 | + | ||
| 9 | + private String messtype; | ||
| 10 | + | ||
| 11 | + private String sndr; | ||
| 12 | + | ||
| 13 | + private String seqn; | ||
| 14 | + | ||
| 15 | + private Date sntm; | ||
| 16 | + | ||
| 17 | + private String type; | ||
| 18 | + | ||
| 19 | + private Date btime; | ||
| 20 | + | ||
| 21 | + private String reasoncode; | ||
| 22 | + | ||
| 23 | + private String styp; | ||
| 24 | + | ||
| 25 | + private Short isinsert; | ||
| 26 | + | ||
| 27 | + private Short ishistroy; | ||
| 28 | + | ||
| 29 | + private BigDecimal isshipmentstatus; | ||
| 30 | + | ||
| 31 | + private String content; | ||
| 32 | + | ||
| 33 | + public Short getFid() { | ||
| 34 | + return fid; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + public void setFid(Short fid) { | ||
| 38 | + this.fid = fid; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public String getMesstype() { | ||
| 42 | + return messtype; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public void setMesstype(String messtype) { | ||
| 46 | + this.messtype = messtype == null ? null : messtype.trim(); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + public String getSndr() { | ||
| 50 | + return sndr; | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + public void setSndr(String sndr) { | ||
| 54 | + this.sndr = sndr == null ? null : sndr.trim(); | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + public String getSeqn() { | ||
| 58 | + return seqn; | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + public void setSeqn(String seqn) { | ||
| 62 | + this.seqn = seqn == null ? null : seqn.trim(); | ||
| 63 | + } | ||
| 64 | + | ||
| 65 | + public Date getSntm() { | ||
| 66 | + return sntm; | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + public void setSntm(Date sntm) { | ||
| 70 | + this.sntm = sntm; | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + public String getType() { | ||
| 74 | + return type; | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | + public void setType(String type) { | ||
| 78 | + this.type = type == null ? null : type.trim(); | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + public Date getBtime() { | ||
| 82 | + return btime; | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + public void setBtime(Date btime) { | ||
| 86 | + this.btime = btime; | ||
| 87 | + } | ||
| 88 | + | ||
| 89 | + public String getReasoncode() { | ||
| 90 | + return reasoncode; | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + public void setReasoncode(String reasoncode) { | ||
| 94 | + this.reasoncode = reasoncode == null ? null : reasoncode.trim(); | ||
| 95 | + } | ||
| 96 | + | ||
| 97 | + public String getStyp() { | ||
| 98 | + return styp; | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + public void setStyp(String styp) { | ||
| 102 | + this.styp = styp == null ? null : styp.trim(); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + public Short getIsinsert() { | ||
| 106 | + return isinsert; | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | + public void setIsinsert(Short isinsert) { | ||
| 110 | + this.isinsert = isinsert; | ||
| 111 | + } | ||
| 112 | + | ||
| 113 | + public Short getIshistroy() { | ||
| 114 | + return ishistroy; | ||
| 115 | + } | ||
| 116 | + | ||
| 117 | + public void setIshistroy(Short ishistroy) { | ||
| 118 | + this.ishistroy = ishistroy; | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + public BigDecimal getIsshipmentstatus() { | ||
| 122 | + return isshipmentstatus; | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + public void setIsshipmentstatus(BigDecimal isshipmentstatus) { | ||
| 126 | + this.isshipmentstatus = isshipmentstatus; | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + public String getContent() { | ||
| 130 | + return content; | ||
| 131 | + } | ||
| 132 | + | ||
| 133 | + public void setContent(String content) { | ||
| 134 | + this.content = content == null ? null : content.trim(); | ||
| 135 | + } | ||
| 136 | +} | 
| 1 | +package com.tianbo.model; | ||
| 2 | + | ||
| 3 | +import com.tianbo.util.dao.Page; | ||
| 4 | +import java.math.BigDecimal; | ||
| 5 | +import java.util.ArrayList; | ||
| 6 | +import java.util.Date; | ||
| 7 | +import java.util.List; | ||
| 8 | + | ||
| 9 | +public class MessageBakExample { | ||
| 10 | + protected String orderByClause; | ||
| 11 | + | ||
| 12 | + protected boolean distinct; | ||
| 13 | + | ||
| 14 | + protected List<Criteria> oredCriteria; | ||
| 15 | + | ||
| 16 | + protected Page page; | ||
| 17 | + | ||
| 18 | + public MessageBakExample() { | ||
| 19 | + oredCriteria = new ArrayList<Criteria>(); | ||
| 20 | + } | ||
| 21 | + | ||
| 22 | + public void setOrderByClause(String orderByClause) { | ||
| 23 | + this.orderByClause = orderByClause; | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + public String getOrderByClause() { | ||
| 27 | + return orderByClause; | ||
| 28 | + } | ||
| 29 | + | ||
| 30 | + public void setDistinct(boolean distinct) { | ||
| 31 | + this.distinct = distinct; | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | + public boolean isDistinct() { | ||
| 35 | + return distinct; | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + public List<Criteria> getOredCriteria() { | ||
| 39 | + return oredCriteria; | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + public void or(Criteria criteria) { | ||
| 43 | + oredCriteria.add(criteria); | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + public Criteria or() { | ||
| 47 | + Criteria criteria = createCriteriaInternal(); | ||
| 48 | + oredCriteria.add(criteria); | ||
| 49 | + return criteria; | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + public Criteria createCriteria() { | ||
| 53 | + Criteria criteria = createCriteriaInternal(); | ||
| 54 | + if (oredCriteria.size() == 0) { | ||
| 55 | + oredCriteria.add(criteria); | ||
| 56 | + } | ||
| 57 | + return criteria; | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + protected Criteria createCriteriaInternal() { | ||
| 61 | + Criteria criteria = new Criteria(); | ||
| 62 | + return criteria; | ||
| 63 | + } | ||
| 64 | + | ||
| 65 | + public void clear() { | ||
| 66 | + oredCriteria.clear(); | ||
| 67 | + orderByClause = null; | ||
| 68 | + distinct = false; | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + public void setPage(Page page) { | ||
| 72 | + this.page=page; | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + public Page getPage() { | ||
| 76 | + return page; | ||
| 77 | + } | ||
| 78 | + | ||
| 79 | + protected abstract static class GeneratedCriteria { | ||
| 80 | + protected List<Criterion> criteria; | ||
| 81 | + | ||
| 82 | + protected GeneratedCriteria() { | ||
| 83 | + super(); | ||
| 84 | + criteria = new ArrayList<Criterion>(); | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + public boolean isValid() { | ||
| 88 | + return criteria.size() > 0; | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + public List<Criterion> getAllCriteria() { | ||
| 92 | + return criteria; | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + public List<Criterion> getCriteria() { | ||
| 96 | + return criteria; | ||
| 97 | + } | ||
| 98 | + | ||
| 99 | + protected void addCriterion(String condition) { | ||
| 100 | + if (condition == null) { | ||
| 101 | + throw new RuntimeException("Value for condition cannot be null"); | ||
| 102 | + } | ||
| 103 | + criteria.add(new Criterion(condition)); | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + protected void addCriterion(String condition, Object value, String property) { | ||
| 107 | + if (value == null) { | ||
| 108 | + throw new RuntimeException("Value for " + property + " cannot be null"); | ||
| 109 | + } | ||
| 110 | + criteria.add(new Criterion(condition, value)); | ||
| 111 | + } | ||
| 112 | + | ||
| 113 | + protected void addCriterion(String condition, Object value1, Object value2, String property) { | ||
| 114 | + if (value1 == null || value2 == null) { | ||
| 115 | + throw new RuntimeException("Between values for " + property + " cannot be null"); | ||
| 116 | + } | ||
| 117 | + criteria.add(new Criterion(condition, value1, value2)); | ||
| 118 | + } | ||
| 119 | + | ||
| 120 | + public Criteria andFidIsNull() { | ||
| 121 | + addCriterion("FID is null"); | ||
| 122 | + return (Criteria) this; | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + public Criteria andFidIsNotNull() { | ||
| 126 | + addCriterion("FID is not null"); | ||
| 127 | + return (Criteria) this; | ||
| 128 | + } | ||
| 129 | + | ||
| 130 | + public Criteria andFidEqualTo(Short value) { | ||
| 131 | + addCriterion("FID =", value, "fid"); | ||
| 132 | + return (Criteria) this; | ||
| 133 | + } | ||
| 134 | + | ||
| 135 | + public Criteria andFidNotEqualTo(Short value) { | ||
| 136 | + addCriterion("FID <>", value, "fid"); | ||
| 137 | + return (Criteria) this; | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + public Criteria andFidGreaterThan(Short value) { | ||
| 141 | + addCriterion("FID >", value, "fid"); | ||
| 142 | + return (Criteria) this; | ||
| 143 | + } | ||
| 144 | + | ||
| 145 | + public Criteria andFidGreaterThanOrEqualTo(Short value) { | ||
| 146 | + addCriterion("FID >=", value, "fid"); | ||
| 147 | + return (Criteria) this; | ||
| 148 | + } | ||
| 149 | + | ||
| 150 | + public Criteria andFidLessThan(Short value) { | ||
| 151 | + addCriterion("FID <", value, "fid"); | ||
| 152 | + return (Criteria) this; | ||
| 153 | + } | ||
| 154 | + | ||
| 155 | + public Criteria andFidLessThanOrEqualTo(Short value) { | ||
| 156 | + addCriterion("FID <=", value, "fid"); | ||
| 157 | + return (Criteria) this; | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + public Criteria andFidIn(List<Short> values) { | ||
| 161 | + addCriterion("FID in", values, "fid"); | ||
| 162 | + return (Criteria) this; | ||
| 163 | + } | ||
| 164 | + | ||
| 165 | + public Criteria andFidNotIn(List<Short> values) { | ||
| 166 | + addCriterion("FID not in", values, "fid"); | ||
| 167 | + return (Criteria) this; | ||
| 168 | + } | ||
| 169 | + | ||
| 170 | + public Criteria andFidBetween(Short value1, Short value2) { | ||
| 171 | + addCriterion("FID between", value1, value2, "fid"); | ||
| 172 | + return (Criteria) this; | ||
| 173 | + } | ||
| 174 | + | ||
| 175 | + public Criteria andFidNotBetween(Short value1, Short value2) { | ||
| 176 | + addCriterion("FID not between", value1, value2, "fid"); | ||
| 177 | + return (Criteria) this; | ||
| 178 | + } | ||
| 179 | + | ||
| 180 | + public Criteria andMesstypeIsNull() { | ||
| 181 | + addCriterion("MESSTYPE is null"); | ||
| 182 | + return (Criteria) this; | ||
| 183 | + } | ||
| 184 | + | ||
| 185 | + public Criteria andMesstypeIsNotNull() { | ||
| 186 | + addCriterion("MESSTYPE is not null"); | ||
| 187 | + return (Criteria) this; | ||
| 188 | + } | ||
| 189 | + | ||
| 190 | + public Criteria andMesstypeEqualTo(String value) { | ||
| 191 | + addCriterion("MESSTYPE =", value, "messtype"); | ||
| 192 | + return (Criteria) this; | ||
| 193 | + } | ||
| 194 | + | ||
| 195 | + public Criteria andMesstypeNotEqualTo(String value) { | ||
| 196 | + addCriterion("MESSTYPE <>", value, "messtype"); | ||
| 197 | + return (Criteria) this; | ||
| 198 | + } | ||
| 199 | + | ||
| 200 | + public Criteria andMesstypeGreaterThan(String value) { | ||
| 201 | + addCriterion("MESSTYPE >", value, "messtype"); | ||
| 202 | + return (Criteria) this; | ||
| 203 | + } | ||
| 204 | + | ||
| 205 | + public Criteria andMesstypeGreaterThanOrEqualTo(String value) { | ||
| 206 | + addCriterion("MESSTYPE >=", value, "messtype"); | ||
| 207 | + return (Criteria) this; | ||
| 208 | + } | ||
| 209 | + | ||
| 210 | + public Criteria andMesstypeLessThan(String value) { | ||
| 211 | + addCriterion("MESSTYPE <", value, "messtype"); | ||
| 212 | + return (Criteria) this; | ||
| 213 | + } | ||
| 214 | + | ||
| 215 | + public Criteria andMesstypeLessThanOrEqualTo(String value) { | ||
| 216 | + addCriterion("MESSTYPE <=", value, "messtype"); | ||
| 217 | + return (Criteria) this; | ||
| 218 | + } | ||
| 219 | + | ||
| 220 | + public Criteria andMesstypeLike(String value) { | ||
| 221 | + addCriterion("MESSTYPE like", value, "messtype"); | ||
| 222 | + return (Criteria) this; | ||
| 223 | + } | ||
| 224 | + | ||
| 225 | + public Criteria andMesstypeNotLike(String value) { | ||
| 226 | + addCriterion("MESSTYPE not like", value, "messtype"); | ||
| 227 | + return (Criteria) this; | ||
| 228 | + } | ||
| 229 | + | ||
| 230 | + public Criteria andMesstypeIn(List<String> values) { | ||
| 231 | + addCriterion("MESSTYPE in", values, "messtype"); | ||
| 232 | + return (Criteria) this; | ||
| 233 | + } | ||
| 234 | + | ||
| 235 | + public Criteria andMesstypeNotIn(List<String> values) { | ||
| 236 | + addCriterion("MESSTYPE not in", values, "messtype"); | ||
| 237 | + return (Criteria) this; | ||
| 238 | + } | ||
| 239 | + | ||
| 240 | + public Criteria andMesstypeBetween(String value1, String value2) { | ||
| 241 | + addCriterion("MESSTYPE between", value1, value2, "messtype"); | ||
| 242 | + return (Criteria) this; | ||
| 243 | + } | ||
| 244 | + | ||
| 245 | + public Criteria andMesstypeNotBetween(String value1, String value2) { | ||
| 246 | + addCriterion("MESSTYPE not between", value1, value2, "messtype"); | ||
| 247 | + return (Criteria) this; | ||
| 248 | + } | ||
| 249 | + | ||
| 250 | + public Criteria andSndrIsNull() { | ||
| 251 | + addCriterion("SNDR is null"); | ||
| 252 | + return (Criteria) this; | ||
| 253 | + } | ||
| 254 | + | ||
| 255 | + public Criteria andSndrIsNotNull() { | ||
| 256 | + addCriterion("SNDR is not null"); | ||
| 257 | + return (Criteria) this; | ||
| 258 | + } | ||
| 259 | + | ||
| 260 | + public Criteria andSndrEqualTo(String value) { | ||
| 261 | + addCriterion("SNDR =", value, "sndr"); | ||
| 262 | + return (Criteria) this; | ||
| 263 | + } | ||
| 264 | + | ||
| 265 | + public Criteria andSndrNotEqualTo(String value) { | ||
| 266 | + addCriterion("SNDR <>", value, "sndr"); | ||
| 267 | + return (Criteria) this; | ||
| 268 | + } | ||
| 269 | + | ||
| 270 | + public Criteria andSndrGreaterThan(String value) { | ||
| 271 | + addCriterion("SNDR >", value, "sndr"); | ||
| 272 | + return (Criteria) this; | ||
| 273 | + } | ||
| 274 | + | ||
| 275 | + public Criteria andSndrGreaterThanOrEqualTo(String value) { | ||
| 276 | + addCriterion("SNDR >=", value, "sndr"); | ||
| 277 | + return (Criteria) this; | ||
| 278 | + } | ||
| 279 | + | ||
| 280 | + public Criteria andSndrLessThan(String value) { | ||
| 281 | + addCriterion("SNDR <", value, "sndr"); | ||
| 282 | + return (Criteria) this; | ||
| 283 | + } | ||
| 284 | + | ||
| 285 | + public Criteria andSndrLessThanOrEqualTo(String value) { | ||
| 286 | + addCriterion("SNDR <=", value, "sndr"); | ||
| 287 | + return (Criteria) this; | ||
| 288 | + } | ||
| 289 | + | ||
| 290 | + public Criteria andSndrLike(String value) { | ||
| 291 | + addCriterion("SNDR like", value, "sndr"); | ||
| 292 | + return (Criteria) this; | ||
| 293 | + } | ||
| 294 | + | ||
| 295 | + public Criteria andSndrNotLike(String value) { | ||
| 296 | + addCriterion("SNDR not like", value, "sndr"); | ||
| 297 | + return (Criteria) this; | ||
| 298 | + } | ||
| 299 | + | ||
| 300 | + public Criteria andSndrIn(List<String> values) { | ||
| 301 | + addCriterion("SNDR in", values, "sndr"); | ||
| 302 | + return (Criteria) this; | ||
| 303 | + } | ||
| 304 | + | ||
| 305 | + public Criteria andSndrNotIn(List<String> values) { | ||
| 306 | + addCriterion("SNDR not in", values, "sndr"); | ||
| 307 | + return (Criteria) this; | ||
| 308 | + } | ||
| 309 | + | ||
| 310 | + public Criteria andSndrBetween(String value1, String value2) { | ||
| 311 | + addCriterion("SNDR between", value1, value2, "sndr"); | ||
| 312 | + return (Criteria) this; | ||
| 313 | + } | ||
| 314 | + | ||
| 315 | + public Criteria andSndrNotBetween(String value1, String value2) { | ||
| 316 | + addCriterion("SNDR not between", value1, value2, "sndr"); | ||
| 317 | + return (Criteria) this; | ||
| 318 | + } | ||
| 319 | + | ||
| 320 | + public Criteria andSeqnIsNull() { | ||
| 321 | + addCriterion("SEQN is null"); | ||
| 322 | + return (Criteria) this; | ||
| 323 | + } | ||
| 324 | + | ||
| 325 | + public Criteria andSeqnIsNotNull() { | ||
| 326 | + addCriterion("SEQN is not null"); | ||
| 327 | + return (Criteria) this; | ||
| 328 | + } | ||
| 329 | + | ||
| 330 | + public Criteria andSeqnEqualTo(String value) { | ||
| 331 | + addCriterion("SEQN =", value, "seqn"); | ||
| 332 | + return (Criteria) this; | ||
| 333 | + } | ||
| 334 | + | ||
| 335 | + public Criteria andSeqnNotEqualTo(String value) { | ||
| 336 | + addCriterion("SEQN <>", value, "seqn"); | ||
| 337 | + return (Criteria) this; | ||
| 338 | + } | ||
| 339 | + | ||
| 340 | + public Criteria andSeqnGreaterThan(String value) { | ||
| 341 | + addCriterion("SEQN >", value, "seqn"); | ||
| 342 | + return (Criteria) this; | ||
| 343 | + } | ||
| 344 | + | ||
| 345 | + public Criteria andSeqnGreaterThanOrEqualTo(String value) { | ||
| 346 | + addCriterion("SEQN >=", value, "seqn"); | ||
| 347 | + return (Criteria) this; | ||
| 348 | + } | ||
| 349 | + | ||
| 350 | + public Criteria andSeqnLessThan(String value) { | ||
| 351 | + addCriterion("SEQN <", value, "seqn"); | ||
| 352 | + return (Criteria) this; | ||
| 353 | + } | ||
| 354 | + | ||
| 355 | + public Criteria andSeqnLessThanOrEqualTo(String value) { | ||
| 356 | + addCriterion("SEQN <=", value, "seqn"); | ||
| 357 | + return (Criteria) this; | ||
| 358 | + } | ||
| 359 | + | ||
| 360 | + public Criteria andSeqnLike(String value) { | ||
| 361 | + addCriterion("SEQN like", value, "seqn"); | ||
| 362 | + return (Criteria) this; | ||
| 363 | + } | ||
| 364 | + | ||
| 365 | + public Criteria andSeqnNotLike(String value) { | ||
| 366 | + addCriterion("SEQN not like", value, "seqn"); | ||
| 367 | + return (Criteria) this; | ||
| 368 | + } | ||
| 369 | + | ||
| 370 | + public Criteria andSeqnIn(List<String> values) { | ||
| 371 | + addCriterion("SEQN in", values, "seqn"); | ||
| 372 | + return (Criteria) this; | ||
| 373 | + } | ||
| 374 | + | ||
| 375 | + public Criteria andSeqnNotIn(List<String> values) { | ||
| 376 | + addCriterion("SEQN not in", values, "seqn"); | ||
| 377 | + return (Criteria) this; | ||
| 378 | + } | ||
| 379 | + | ||
| 380 | + public Criteria andSeqnBetween(String value1, String value2) { | ||
| 381 | + addCriterion("SEQN between", value1, value2, "seqn"); | ||
| 382 | + return (Criteria) this; | ||
| 383 | + } | ||
| 384 | + | ||
| 385 | + public Criteria andSeqnNotBetween(String value1, String value2) { | ||
| 386 | + addCriterion("SEQN not between", value1, value2, "seqn"); | ||
| 387 | + return (Criteria) this; | ||
| 388 | + } | ||
| 389 | + | ||
| 390 | + public Criteria andSntmIsNull() { | ||
| 391 | + addCriterion("SNTM is null"); | ||
| 392 | + return (Criteria) this; | ||
| 393 | + } | ||
| 394 | + | ||
| 395 | + public Criteria andSntmIsNotNull() { | ||
| 396 | + addCriterion("SNTM is not null"); | ||
| 397 | + return (Criteria) this; | ||
| 398 | + } | ||
| 399 | + | ||
| 400 | + public Criteria andSntmEqualTo(Date value) { | ||
| 401 | + addCriterion("SNTM =", value, "sntm"); | ||
| 402 | + return (Criteria) this; | ||
| 403 | + } | ||
| 404 | + | ||
| 405 | + public Criteria andSntmNotEqualTo(Date value) { | ||
| 406 | + addCriterion("SNTM <>", value, "sntm"); | ||
| 407 | + return (Criteria) this; | ||
| 408 | + } | ||
| 409 | + | ||
| 410 | + public Criteria andSntmGreaterThan(Date value) { | ||
| 411 | + addCriterion("SNTM >", value, "sntm"); | ||
| 412 | + return (Criteria) this; | ||
| 413 | + } | ||
| 414 | + | ||
| 415 | + public Criteria andSntmGreaterThanOrEqualTo(Date value) { | ||
| 416 | + addCriterion("SNTM >=", value, "sntm"); | ||
| 417 | + return (Criteria) this; | ||
| 418 | + } | ||
| 419 | + | ||
| 420 | + public Criteria andSntmLessThan(Date value) { | ||
| 421 | + addCriterion("SNTM <", value, "sntm"); | ||
| 422 | + return (Criteria) this; | ||
| 423 | + } | ||
| 424 | + | ||
| 425 | + public Criteria andSntmLessThanOrEqualTo(Date value) { | ||
| 426 | + addCriterion("SNTM <=", value, "sntm"); | ||
| 427 | + return (Criteria) this; | ||
| 428 | + } | ||
| 429 | + | ||
| 430 | + public Criteria andSntmIn(List<Date> values) { | ||
| 431 | + addCriterion("SNTM in", values, "sntm"); | ||
| 432 | + return (Criteria) this; | ||
| 433 | + } | ||
| 434 | + | ||
| 435 | + public Criteria andSntmNotIn(List<Date> values) { | ||
| 436 | + addCriterion("SNTM not in", values, "sntm"); | ||
| 437 | + return (Criteria) this; | ||
| 438 | + } | ||
| 439 | + | ||
| 440 | + public Criteria andSntmBetween(Date value1, Date value2) { | ||
| 441 | + addCriterion("SNTM between", value1, value2, "sntm"); | ||
| 442 | + return (Criteria) this; | ||
| 443 | + } | ||
| 444 | + | ||
| 445 | + public Criteria andSntmNotBetween(Date value1, Date value2) { | ||
| 446 | + addCriterion("SNTM not between", value1, value2, "sntm"); | ||
| 447 | + return (Criteria) this; | ||
| 448 | + } | ||
| 449 | + | ||
| 450 | + public Criteria andTypeIsNull() { | ||
| 451 | + addCriterion("TYPE is null"); | ||
| 452 | + return (Criteria) this; | ||
| 453 | + } | ||
| 454 | + | ||
| 455 | + public Criteria andTypeIsNotNull() { | ||
| 456 | + addCriterion("TYPE is not null"); | ||
| 457 | + return (Criteria) this; | ||
| 458 | + } | ||
| 459 | + | ||
| 460 | + public Criteria andTypeEqualTo(String value) { | ||
| 461 | + addCriterion("TYPE =", value, "type"); | ||
| 462 | + return (Criteria) this; | ||
| 463 | + } | ||
| 464 | + | ||
| 465 | + public Criteria andTypeNotEqualTo(String value) { | ||
| 466 | + addCriterion("TYPE <>", value, "type"); | ||
| 467 | + return (Criteria) this; | ||
| 468 | + } | ||
| 469 | + | ||
| 470 | + public Criteria andTypeGreaterThan(String value) { | ||
| 471 | + addCriterion("TYPE >", value, "type"); | ||
| 472 | + return (Criteria) this; | ||
| 473 | + } | ||
| 474 | + | ||
| 475 | + public Criteria andTypeGreaterThanOrEqualTo(String value) { | ||
| 476 | + addCriterion("TYPE >=", value, "type"); | ||
| 477 | + return (Criteria) this; | ||
| 478 | + } | ||
| 479 | + | ||
| 480 | + public Criteria andTypeLessThan(String value) { | ||
| 481 | + addCriterion("TYPE <", value, "type"); | ||
| 482 | + return (Criteria) this; | ||
| 483 | + } | ||
| 484 | + | ||
| 485 | + public Criteria andTypeLessThanOrEqualTo(String value) { | ||
| 486 | + addCriterion("TYPE <=", value, "type"); | ||
| 487 | + return (Criteria) this; | ||
| 488 | + } | ||
| 489 | + | ||
| 490 | + public Criteria andTypeLike(String value) { | ||
| 491 | + addCriterion("TYPE like", value, "type"); | ||
| 492 | + return (Criteria) this; | ||
| 493 | + } | ||
| 494 | + | ||
| 495 | + public Criteria andTypeNotLike(String value) { | ||
| 496 | + addCriterion("TYPE not like", value, "type"); | ||
| 497 | + return (Criteria) this; | ||
| 498 | + } | ||
| 499 | + | ||
| 500 | + public Criteria andTypeIn(List<String> values) { | ||
| 501 | + addCriterion("TYPE in", values, "type"); | ||
| 502 | + return (Criteria) this; | ||
| 503 | + } | ||
| 504 | + | ||
| 505 | + public Criteria andTypeNotIn(List<String> values) { | ||
| 506 | + addCriterion("TYPE not in", values, "type"); | ||
| 507 | + return (Criteria) this; | ||
| 508 | + } | ||
| 509 | + | ||
| 510 | + public Criteria andTypeBetween(String value1, String value2) { | ||
| 511 | + addCriterion("TYPE between", value1, value2, "type"); | ||
| 512 | + return (Criteria) this; | ||
| 513 | + } | ||
| 514 | + | ||
| 515 | + public Criteria andTypeNotBetween(String value1, String value2) { | ||
| 516 | + addCriterion("TYPE not between", value1, value2, "type"); | ||
| 517 | + return (Criteria) this; | ||
| 518 | + } | ||
| 519 | + | ||
| 520 | + public Criteria andBtimeIsNull() { | ||
| 521 | + addCriterion("BTIME is null"); | ||
| 522 | + return (Criteria) this; | ||
| 523 | + } | ||
| 524 | + | ||
| 525 | + public Criteria andBtimeIsNotNull() { | ||
| 526 | + addCriterion("BTIME is not null"); | ||
| 527 | + return (Criteria) this; | ||
| 528 | + } | ||
| 529 | + | ||
| 530 | + public Criteria andBtimeEqualTo(Date value) { | ||
| 531 | + addCriterion("BTIME =", value, "btime"); | ||
| 532 | + return (Criteria) this; | ||
| 533 | + } | ||
| 534 | + | ||
| 535 | + public Criteria andBtimeNotEqualTo(Date value) { | ||
| 536 | + addCriterion("BTIME <>", value, "btime"); | ||
| 537 | + return (Criteria) this; | ||
| 538 | + } | ||
| 539 | + | ||
| 540 | + public Criteria andBtimeGreaterThan(Date value) { | ||
| 541 | + addCriterion("BTIME >", value, "btime"); | ||
| 542 | + return (Criteria) this; | ||
| 543 | + } | ||
| 544 | + | ||
| 545 | + public Criteria andBtimeGreaterThanOrEqualTo(Date value) { | ||
| 546 | + addCriterion("BTIME >=", value, "btime"); | ||
| 547 | + return (Criteria) this; | ||
| 548 | + } | ||
| 549 | + | ||
| 550 | + public Criteria andBtimeLessThan(Date value) { | ||
| 551 | + addCriterion("BTIME <", value, "btime"); | ||
| 552 | + return (Criteria) this; | ||
| 553 | + } | ||
| 554 | + | ||
| 555 | + public Criteria andBtimeLessThanOrEqualTo(Date value) { | ||
| 556 | + addCriterion("BTIME <=", value, "btime"); | ||
| 557 | + return (Criteria) this; | ||
| 558 | + } | ||
| 559 | + | ||
| 560 | + public Criteria andBtimeIn(List<Date> values) { | ||
| 561 | + addCriterion("BTIME in", values, "btime"); | ||
| 562 | + return (Criteria) this; | ||
| 563 | + } | ||
| 564 | + | ||
| 565 | + public Criteria andBtimeNotIn(List<Date> values) { | ||
| 566 | + addCriterion("BTIME not in", values, "btime"); | ||
| 567 | + return (Criteria) this; | ||
| 568 | + } | ||
| 569 | + | ||
| 570 | + public Criteria andBtimeBetween(Date value1, Date value2) { | ||
| 571 | + addCriterion("BTIME between", value1, value2, "btime"); | ||
| 572 | + return (Criteria) this; | ||
| 573 | + } | ||
| 574 | + | ||
| 575 | + public Criteria andBtimeNotBetween(Date value1, Date value2) { | ||
| 576 | + addCriterion("BTIME not between", value1, value2, "btime"); | ||
| 577 | + return (Criteria) this; | ||
| 578 | + } | ||
| 579 | + | ||
| 580 | + public Criteria andReasoncodeIsNull() { | ||
| 581 | + addCriterion("REASONCODE is null"); | ||
| 582 | + return (Criteria) this; | ||
| 583 | + } | ||
| 584 | + | ||
| 585 | + public Criteria andReasoncodeIsNotNull() { | ||
| 586 | + addCriterion("REASONCODE is not null"); | ||
| 587 | + return (Criteria) this; | ||
| 588 | + } | ||
| 589 | + | ||
| 590 | + public Criteria andReasoncodeEqualTo(String value) { | ||
| 591 | + addCriterion("REASONCODE =", value, "reasoncode"); | ||
| 592 | + return (Criteria) this; | ||
| 593 | + } | ||
| 594 | + | ||
| 595 | + public Criteria andReasoncodeNotEqualTo(String value) { | ||
| 596 | + addCriterion("REASONCODE <>", value, "reasoncode"); | ||
| 597 | + return (Criteria) this; | ||
| 598 | + } | ||
| 599 | + | ||
| 600 | + public Criteria andReasoncodeGreaterThan(String value) { | ||
| 601 | + addCriterion("REASONCODE >", value, "reasoncode"); | ||
| 602 | + return (Criteria) this; | ||
| 603 | + } | ||
| 604 | + | ||
| 605 | + public Criteria andReasoncodeGreaterThanOrEqualTo(String value) { | ||
| 606 | + addCriterion("REASONCODE >=", value, "reasoncode"); | ||
| 607 | + return (Criteria) this; | ||
| 608 | + } | ||
| 609 | + | ||
| 610 | + public Criteria andReasoncodeLessThan(String value) { | ||
| 611 | + addCriterion("REASONCODE <", value, "reasoncode"); | ||
| 612 | + return (Criteria) this; | ||
| 613 | + } | ||
| 614 | + | ||
| 615 | + public Criteria andReasoncodeLessThanOrEqualTo(String value) { | ||
| 616 | + addCriterion("REASONCODE <=", value, "reasoncode"); | ||
| 617 | + return (Criteria) this; | ||
| 618 | + } | ||
| 619 | + | ||
| 620 | + public Criteria andReasoncodeLike(String value) { | ||
| 621 | + addCriterion("REASONCODE like", value, "reasoncode"); | ||
| 622 | + return (Criteria) this; | ||
| 623 | + } | ||
| 624 | + | ||
| 625 | + public Criteria andReasoncodeNotLike(String value) { | ||
| 626 | + addCriterion("REASONCODE not like", value, "reasoncode"); | ||
| 627 | + return (Criteria) this; | ||
| 628 | + } | ||
| 629 | + | ||
| 630 | + public Criteria andReasoncodeIn(List<String> values) { | ||
| 631 | + addCriterion("REASONCODE in", values, "reasoncode"); | ||
| 632 | + return (Criteria) this; | ||
| 633 | + } | ||
| 634 | + | ||
| 635 | + public Criteria andReasoncodeNotIn(List<String> values) { | ||
| 636 | + addCriterion("REASONCODE not in", values, "reasoncode"); | ||
| 637 | + return (Criteria) this; | ||
| 638 | + } | ||
| 639 | + | ||
| 640 | + public Criteria andReasoncodeBetween(String value1, String value2) { | ||
| 641 | + addCriterion("REASONCODE between", value1, value2, "reasoncode"); | ||
| 642 | + return (Criteria) this; | ||
| 643 | + } | ||
| 644 | + | ||
| 645 | + public Criteria andReasoncodeNotBetween(String value1, String value2) { | ||
| 646 | + addCriterion("REASONCODE not between", value1, value2, "reasoncode"); | ||
| 647 | + return (Criteria) this; | ||
| 648 | + } | ||
| 649 | + | ||
| 650 | + public Criteria andStypIsNull() { | ||
| 651 | + addCriterion("STYP is null"); | ||
| 652 | + return (Criteria) this; | ||
| 653 | + } | ||
| 654 | + | ||
| 655 | + public Criteria andStypIsNotNull() { | ||
| 656 | + addCriterion("STYP is not null"); | ||
| 657 | + return (Criteria) this; | ||
| 658 | + } | ||
| 659 | + | ||
| 660 | + public Criteria andStypEqualTo(String value) { | ||
| 661 | + addCriterion("STYP =", value, "styp"); | ||
| 662 | + return (Criteria) this; | ||
| 663 | + } | ||
| 664 | + | ||
| 665 | + public Criteria andStypNotEqualTo(String value) { | ||
| 666 | + addCriterion("STYP <>", value, "styp"); | ||
| 667 | + return (Criteria) this; | ||
| 668 | + } | ||
| 669 | + | ||
| 670 | + public Criteria andStypGreaterThan(String value) { | ||
| 671 | + addCriterion("STYP >", value, "styp"); | ||
| 672 | + return (Criteria) this; | ||
| 673 | + } | ||
| 674 | + | ||
| 675 | + public Criteria andStypGreaterThanOrEqualTo(String value) { | ||
| 676 | + addCriterion("STYP >=", value, "styp"); | ||
| 677 | + return (Criteria) this; | ||
| 678 | + } | ||
| 679 | + | ||
| 680 | + public Criteria andStypLessThan(String value) { | ||
| 681 | + addCriterion("STYP <", value, "styp"); | ||
| 682 | + return (Criteria) this; | ||
| 683 | + } | ||
| 684 | + | ||
| 685 | + public Criteria andStypLessThanOrEqualTo(String value) { | ||
| 686 | + addCriterion("STYP <=", value, "styp"); | ||
| 687 | + return (Criteria) this; | ||
| 688 | + } | ||
| 689 | + | ||
| 690 | + public Criteria andStypLike(String value) { | ||
| 691 | + addCriterion("STYP like", value, "styp"); | ||
| 692 | + return (Criteria) this; | ||
| 693 | + } | ||
| 694 | + | ||
| 695 | + public Criteria andStypNotLike(String value) { | ||
| 696 | + addCriterion("STYP not like", value, "styp"); | ||
| 697 | + return (Criteria) this; | ||
| 698 | + } | ||
| 699 | + | ||
| 700 | + public Criteria andStypIn(List<String> values) { | ||
| 701 | + addCriterion("STYP in", values, "styp"); | ||
| 702 | + return (Criteria) this; | ||
| 703 | + } | ||
| 704 | + | ||
| 705 | + public Criteria andStypNotIn(List<String> values) { | ||
| 706 | + addCriterion("STYP not in", values, "styp"); | ||
| 707 | + return (Criteria) this; | ||
| 708 | + } | ||
| 709 | + | ||
| 710 | + public Criteria andStypBetween(String value1, String value2) { | ||
| 711 | + addCriterion("STYP between", value1, value2, "styp"); | ||
| 712 | + return (Criteria) this; | ||
| 713 | + } | ||
| 714 | + | ||
| 715 | + public Criteria andStypNotBetween(String value1, String value2) { | ||
| 716 | + addCriterion("STYP not between", value1, value2, "styp"); | ||
| 717 | + return (Criteria) this; | ||
| 718 | + } | ||
| 719 | + | ||
| 720 | + public Criteria andIsinsertIsNull() { | ||
| 721 | + addCriterion("ISINSERT is null"); | ||
| 722 | + return (Criteria) this; | ||
| 723 | + } | ||
| 724 | + | ||
| 725 | + public Criteria andIsinsertIsNotNull() { | ||
| 726 | + addCriterion("ISINSERT is not null"); | ||
| 727 | + return (Criteria) this; | ||
| 728 | + } | ||
| 729 | + | ||
| 730 | + public Criteria andIsinsertEqualTo(Short value) { | ||
| 731 | + addCriterion("ISINSERT =", value, "isinsert"); | ||
| 732 | + return (Criteria) this; | ||
| 733 | + } | ||
| 734 | + | ||
| 735 | + public Criteria andIsinsertNotEqualTo(Short value) { | ||
| 736 | + addCriterion("ISINSERT <>", value, "isinsert"); | ||
| 737 | + return (Criteria) this; | ||
| 738 | + } | ||
| 739 | + | ||
| 740 | + public Criteria andIsinsertGreaterThan(Short value) { | ||
| 741 | + addCriterion("ISINSERT >", value, "isinsert"); | ||
| 742 | + return (Criteria) this; | ||
| 743 | + } | ||
| 744 | + | ||
| 745 | + public Criteria andIsinsertGreaterThanOrEqualTo(Short value) { | ||
| 746 | + addCriterion("ISINSERT >=", value, "isinsert"); | ||
| 747 | + return (Criteria) this; | ||
| 748 | + } | ||
| 749 | + | ||
| 750 | + public Criteria andIsinsertLessThan(Short value) { | ||
| 751 | + addCriterion("ISINSERT <", value, "isinsert"); | ||
| 752 | + return (Criteria) this; | ||
| 753 | + } | ||
| 754 | + | ||
| 755 | + public Criteria andIsinsertLessThanOrEqualTo(Short value) { | ||
| 756 | + addCriterion("ISINSERT <=", value, "isinsert"); | ||
| 757 | + return (Criteria) this; | ||
| 758 | + } | ||
| 759 | + | ||
| 760 | + public Criteria andIsinsertIn(List<Short> values) { | ||
| 761 | + addCriterion("ISINSERT in", values, "isinsert"); | ||
| 762 | + return (Criteria) this; | ||
| 763 | + } | ||
| 764 | + | ||
| 765 | + public Criteria andIsinsertNotIn(List<Short> values) { | ||
| 766 | + addCriterion("ISINSERT not in", values, "isinsert"); | ||
| 767 | + return (Criteria) this; | ||
| 768 | + } | ||
| 769 | + | ||
| 770 | + public Criteria andIsinsertBetween(Short value1, Short value2) { | ||
| 771 | + addCriterion("ISINSERT between", value1, value2, "isinsert"); | ||
| 772 | + return (Criteria) this; | ||
| 773 | + } | ||
| 774 | + | ||
| 775 | + public Criteria andIsinsertNotBetween(Short value1, Short value2) { | ||
| 776 | + addCriterion("ISINSERT not between", value1, value2, "isinsert"); | ||
| 777 | + return (Criteria) this; | ||
| 778 | + } | ||
| 779 | + | ||
| 780 | + public Criteria andIshistroyIsNull() { | ||
| 781 | + addCriterion("ISHISTROY is null"); | ||
| 782 | + return (Criteria) this; | ||
| 783 | + } | ||
| 784 | + | ||
| 785 | + public Criteria andIshistroyIsNotNull() { | ||
| 786 | + addCriterion("ISHISTROY is not null"); | ||
| 787 | + return (Criteria) this; | ||
| 788 | + } | ||
| 789 | + | ||
| 790 | + public Criteria andIshistroyEqualTo(Short value) { | ||
| 791 | + addCriterion("ISHISTROY =", value, "ishistroy"); | ||
| 792 | + return (Criteria) this; | ||
| 793 | + } | ||
| 794 | + | ||
| 795 | + public Criteria andIshistroyNotEqualTo(Short value) { | ||
| 796 | + addCriterion("ISHISTROY <>", value, "ishistroy"); | ||
| 797 | + return (Criteria) this; | ||
| 798 | + } | ||
| 799 | + | ||
| 800 | + public Criteria andIshistroyGreaterThan(Short value) { | ||
| 801 | + addCriterion("ISHISTROY >", value, "ishistroy"); | ||
| 802 | + return (Criteria) this; | ||
| 803 | + } | ||
| 804 | + | ||
| 805 | + public Criteria andIshistroyGreaterThanOrEqualTo(Short value) { | ||
| 806 | + addCriterion("ISHISTROY >=", value, "ishistroy"); | ||
| 807 | + return (Criteria) this; | ||
| 808 | + } | ||
| 809 | + | ||
| 810 | + public Criteria andIshistroyLessThan(Short value) { | ||
| 811 | + addCriterion("ISHISTROY <", value, "ishistroy"); | ||
| 812 | + return (Criteria) this; | ||
| 813 | + } | ||
| 814 | + | ||
| 815 | + public Criteria andIshistroyLessThanOrEqualTo(Short value) { | ||
| 816 | + addCriterion("ISHISTROY <=", value, "ishistroy"); | ||
| 817 | + return (Criteria) this; | ||
| 818 | + } | ||
| 819 | + | ||
| 820 | + public Criteria andIshistroyIn(List<Short> values) { | ||
| 821 | + addCriterion("ISHISTROY in", values, "ishistroy"); | ||
| 822 | + return (Criteria) this; | ||
| 823 | + } | ||
| 824 | + | ||
| 825 | + public Criteria andIshistroyNotIn(List<Short> values) { | ||
| 826 | + addCriterion("ISHISTROY not in", values, "ishistroy"); | ||
| 827 | + return (Criteria) this; | ||
| 828 | + } | ||
| 829 | + | ||
| 830 | + public Criteria andIshistroyBetween(Short value1, Short value2) { | ||
| 831 | + addCriterion("ISHISTROY between", value1, value2, "ishistroy"); | ||
| 832 | + return (Criteria) this; | ||
| 833 | + } | ||
| 834 | + | ||
| 835 | + public Criteria andIshistroyNotBetween(Short value1, Short value2) { | ||
| 836 | + addCriterion("ISHISTROY not between", value1, value2, "ishistroy"); | ||
| 837 | + return (Criteria) this; | ||
| 838 | + } | ||
| 839 | + | ||
| 840 | + public Criteria andIsshipmentstatusIsNull() { | ||
| 841 | + addCriterion("ISSHIPMENTSTATUS is null"); | ||
| 842 | + return (Criteria) this; | ||
| 843 | + } | ||
| 844 | + | ||
| 845 | + public Criteria andIsshipmentstatusIsNotNull() { | ||
| 846 | + addCriterion("ISSHIPMENTSTATUS is not null"); | ||
| 847 | + return (Criteria) this; | ||
| 848 | + } | ||
| 849 | + | ||
| 850 | + public Criteria andIsshipmentstatusEqualTo(BigDecimal value) { | ||
| 851 | + addCriterion("ISSHIPMENTSTATUS =", value, "isshipmentstatus"); | ||
| 852 | + return (Criteria) this; | ||
| 853 | + } | ||
| 854 | + | ||
| 855 | + public Criteria andIsshipmentstatusNotEqualTo(BigDecimal value) { | ||
| 856 | + addCriterion("ISSHIPMENTSTATUS <>", value, "isshipmentstatus"); | ||
| 857 | + return (Criteria) this; | ||
| 858 | + } | ||
| 859 | + | ||
| 860 | + public Criteria andIsshipmentstatusGreaterThan(BigDecimal value) { | ||
| 861 | + addCriterion("ISSHIPMENTSTATUS >", value, "isshipmentstatus"); | ||
| 862 | + return (Criteria) this; | ||
| 863 | + } | ||
| 864 | + | ||
| 865 | + public Criteria andIsshipmentstatusGreaterThanOrEqualTo(BigDecimal value) { | ||
| 866 | + addCriterion("ISSHIPMENTSTATUS >=", value, "isshipmentstatus"); | ||
| 867 | + return (Criteria) this; | ||
| 868 | + } | ||
| 869 | + | ||
| 870 | + public Criteria andIsshipmentstatusLessThan(BigDecimal value) { | ||
| 871 | + addCriterion("ISSHIPMENTSTATUS <", value, "isshipmentstatus"); | ||
| 872 | + return (Criteria) this; | ||
| 873 | + } | ||
| 874 | + | ||
| 875 | + public Criteria andIsshipmentstatusLessThanOrEqualTo(BigDecimal value) { | ||
| 876 | + addCriterion("ISSHIPMENTSTATUS <=", value, "isshipmentstatus"); | ||
| 877 | + return (Criteria) this; | ||
| 878 | + } | ||
| 879 | + | ||
| 880 | + public Criteria andIsshipmentstatusIn(List<BigDecimal> values) { | ||
| 881 | + addCriterion("ISSHIPMENTSTATUS in", values, "isshipmentstatus"); | ||
| 882 | + return (Criteria) this; | ||
| 883 | + } | ||
| 884 | + | ||
| 885 | + public Criteria andIsshipmentstatusNotIn(List<BigDecimal> values) { | ||
| 886 | + addCriterion("ISSHIPMENTSTATUS not in", values, "isshipmentstatus"); | ||
| 887 | + return (Criteria) this; | ||
| 888 | + } | ||
| 889 | + | ||
| 890 | + public Criteria andIsshipmentstatusBetween(BigDecimal value1, BigDecimal value2) { | ||
| 891 | + addCriterion("ISSHIPMENTSTATUS between", value1, value2, "isshipmentstatus"); | ||
| 892 | + return (Criteria) this; | ||
| 893 | + } | ||
| 894 | + | ||
| 895 | + public Criteria andIsshipmentstatusNotBetween(BigDecimal value1, BigDecimal value2) { | ||
| 896 | + addCriterion("ISSHIPMENTSTATUS not between", value1, value2, "isshipmentstatus"); | ||
| 897 | + return (Criteria) this; | ||
| 898 | + } | ||
| 899 | + } | ||
| 900 | + | ||
| 901 | + public static class Criteria extends GeneratedCriteria { | ||
| 902 | + | ||
| 903 | + protected Criteria() { | ||
| 904 | + super(); | ||
| 905 | + } | ||
| 906 | + } | ||
| 907 | + | ||
| 908 | + public static class Criterion { | ||
| 909 | + private String condition; | ||
| 910 | + | ||
| 911 | + private Object value; | ||
| 912 | + | ||
| 913 | + private Object secondValue; | ||
| 914 | + | ||
| 915 | + private boolean noValue; | ||
| 916 | + | ||
| 917 | + private boolean singleValue; | ||
| 918 | + | ||
| 919 | + private boolean betweenValue; | ||
| 920 | + | ||
| 921 | + private boolean listValue; | ||
| 922 | + | ||
| 923 | + private String typeHandler; | ||
| 924 | + | ||
| 925 | + public String getCondition() { | ||
| 926 | + return condition; | ||
| 927 | + } | ||
| 928 | + | ||
| 929 | + public Object getValue() { | ||
| 930 | + return value; | ||
| 931 | + } | ||
| 932 | + | ||
| 933 | + public Object getSecondValue() { | ||
| 934 | + return secondValue; | ||
| 935 | + } | ||
| 936 | + | ||
| 937 | + public boolean isNoValue() { | ||
| 938 | + return noValue; | ||
| 939 | + } | ||
| 940 | + | ||
| 941 | + public boolean isSingleValue() { | ||
| 942 | + return singleValue; | ||
| 943 | + } | ||
| 944 | + | ||
| 945 | + public boolean isBetweenValue() { | ||
| 946 | + return betweenValue; | ||
| 947 | + } | ||
| 948 | + | ||
| 949 | + public boolean isListValue() { | ||
| 950 | + return listValue; | ||
| 951 | + } | ||
| 952 | + | ||
| 953 | + public String getTypeHandler() { | ||
| 954 | + return typeHandler; | ||
| 955 | + } | ||
| 956 | + | ||
| 957 | + protected Criterion(String condition) { | ||
| 958 | + super(); | ||
| 959 | + this.condition = condition; | ||
| 960 | + this.typeHandler = null; | ||
| 961 | + this.noValue = true; | ||
| 962 | + } | ||
| 963 | + | ||
| 964 | + protected Criterion(String condition, Object value, String typeHandler) { | ||
| 965 | + super(); | ||
| 966 | + this.condition = condition; | ||
| 967 | + this.value = value; | ||
| 968 | + this.typeHandler = typeHandler; | ||
| 969 | + if (value instanceof List<?>) { | ||
| 970 | + this.listValue = true; | ||
| 971 | + } else { | ||
| 972 | + this.singleValue = true; | ||
| 973 | + } | ||
| 974 | + } | ||
| 975 | + | ||
| 976 | + protected Criterion(String condition, Object value) { | ||
| 977 | + this(condition, value, null); | ||
| 978 | + } | ||
| 979 | + | ||
| 980 | + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | ||
| 981 | + super(); | ||
| 982 | + this.condition = condition; | ||
| 983 | + this.value = value; | ||
| 984 | + this.secondValue = secondValue; | ||
| 985 | + this.typeHandler = typeHandler; | ||
| 986 | + this.betweenValue = true; | ||
| 987 | + } | ||
| 988 | + | ||
| 989 | + protected Criterion(String condition, Object value, Object secondValue) { | ||
| 990 | + this(condition, value, secondValue, null); | ||
| 991 | + } | ||
| 992 | + } | ||
| 993 | +} | 
| 1 | +package com.tianbo.model; | ||
| 2 | + | ||
| 3 | +import java.math.BigDecimal; | ||
| 4 | + | ||
| 5 | +public class Permission { | ||
| 6 | + private BigDecimal permissionId; | ||
| 7 | + | ||
| 8 | + private String permissionName; | ||
| 9 | + | ||
| 10 | + private String permissionSign; | ||
| 11 | + | ||
| 12 | + private String description; | ||
| 13 | + | ||
| 14 | + private String groupName; | ||
| 15 | + | ||
| 16 | + public BigDecimal getPermissionId() { | ||
| 17 | + return permissionId; | ||
| 18 | + } | ||
| 19 | + | ||
| 20 | + public void setPermissionId(BigDecimal permissionId) { | ||
| 21 | + this.permissionId = permissionId; | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + public String getPermissionName() { | ||
| 25 | + return permissionName; | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + public void setPermissionName(String permissionName) { | ||
| 29 | + this.permissionName = permissionName == null ? null : permissionName.trim(); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + public String getPermissionSign() { | ||
| 33 | + return permissionSign; | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + public void setPermissionSign(String permissionSign) { | ||
| 37 | + this.permissionSign = permissionSign == null ? null : permissionSign.trim(); | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + public String getDescription() { | ||
| 41 | + return description; | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + public void setDescription(String description) { | ||
| 45 | + this.description = description == null ? null : description.trim(); | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + public String getGroupName() { | ||
| 49 | + return groupName; | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + public void setGroupName(String groupName) { | ||
| 53 | + this.groupName = groupName == null ? null : groupName.trim(); | ||
| 54 | + } | ||
| 55 | +} | 
| 1 | +package com.tianbo.model; | ||
| 2 | + | ||
| 3 | +import com.tianbo.util.dao.Page; | ||
| 4 | +import java.math.BigDecimal; | ||
| 5 | +import java.util.ArrayList; | ||
| 6 | +import java.util.List; | ||
| 7 | + | ||
| 8 | +public class PermissionExample { | ||
| 9 | + protected String orderByClause; | ||
| 10 | + | ||
| 11 | + protected boolean distinct; | ||
| 12 | + | ||
| 13 | + protected List<Criteria> oredCriteria; | ||
| 14 | + | ||
| 15 | + protected Page page; | ||
| 16 | + | ||
| 17 | + public PermissionExample() { | ||
| 18 | + oredCriteria = new ArrayList<Criteria>(); | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + public void setOrderByClause(String orderByClause) { | ||
| 22 | + this.orderByClause = orderByClause; | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + public String getOrderByClause() { | ||
| 26 | + return orderByClause; | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + public void setDistinct(boolean distinct) { | ||
| 30 | + this.distinct = distinct; | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + public boolean isDistinct() { | ||
| 34 | + return distinct; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + public List<Criteria> getOredCriteria() { | ||
| 38 | + return oredCriteria; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public void or(Criteria criteria) { | ||
| 42 | + oredCriteria.add(criteria); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public Criteria or() { | ||
| 46 | + Criteria criteria = createCriteriaInternal(); | ||
| 47 | + oredCriteria.add(criteria); | ||
| 48 | + return criteria; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + public Criteria createCriteria() { | ||
| 52 | + Criteria criteria = createCriteriaInternal(); | ||
| 53 | + if (oredCriteria.size() == 0) { | ||
| 54 | + oredCriteria.add(criteria); | ||
| 55 | + } | ||
| 56 | + return criteria; | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + protected Criteria createCriteriaInternal() { | ||
| 60 | + Criteria criteria = new Criteria(); | ||
| 61 | + return criteria; | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + public void clear() { | ||
| 65 | + oredCriteria.clear(); | ||
| 66 | + orderByClause = null; | ||
| 67 | + distinct = false; | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + public void setPage(Page page) { | ||
| 71 | + this.page=page; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + public Page getPage() { | ||
| 75 | + return page; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + protected abstract static class GeneratedCriteria { | ||
| 79 | + protected List<Criterion> criteria; | ||
| 80 | + | ||
| 81 | + protected GeneratedCriteria() { | ||
| 82 | + super(); | ||
| 83 | + criteria = new ArrayList<Criterion>(); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + public boolean isValid() { | ||
| 87 | + return criteria.size() > 0; | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + public List<Criterion> getAllCriteria() { | ||
| 91 | + return criteria; | ||
| 92 | + } | ||
| 93 | + | ||
| 94 | + public List<Criterion> getCriteria() { | ||
| 95 | + return criteria; | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + protected void addCriterion(String condition) { | ||
| 99 | + if (condition == null) { | ||
| 100 | + throw new RuntimeException("Value for condition cannot be null"); | ||
| 101 | + } | ||
| 102 | + criteria.add(new Criterion(condition)); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + protected void addCriterion(String condition, Object value, String property) { | ||
| 106 | + if (value == null) { | ||
| 107 | + throw new RuntimeException("Value for " + property + " cannot be null"); | ||
| 108 | + } | ||
| 109 | + criteria.add(new Criterion(condition, value)); | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + protected void addCriterion(String condition, Object value1, Object value2, String property) { | ||
| 113 | + if (value1 == null || value2 == null) { | ||
| 114 | + throw new RuntimeException("Between values for " + property + " cannot be null"); | ||
| 115 | + } | ||
| 116 | + criteria.add(new Criterion(condition, value1, value2)); | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + public Criteria andPermissionIdIsNull() { | ||
| 120 | + addCriterion("PERMISSION_ID is null"); | ||
| 121 | + return (Criteria) this; | ||
| 122 | + } | ||
| 123 | + | ||
| 124 | + public Criteria andPermissionIdIsNotNull() { | ||
| 125 | + addCriterion("PERMISSION_ID is not null"); | ||
| 126 | + return (Criteria) this; | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + public Criteria andPermissionIdEqualTo(BigDecimal value) { | ||
| 130 | + addCriterion("PERMISSION_ID =", value, "permissionId"); | ||
| 131 | + return (Criteria) this; | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + public Criteria andPermissionIdNotEqualTo(BigDecimal value) { | ||
| 135 | + addCriterion("PERMISSION_ID <>", value, "permissionId"); | ||
| 136 | + return (Criteria) this; | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + public Criteria andPermissionIdGreaterThan(BigDecimal value) { | ||
| 140 | + addCriterion("PERMISSION_ID >", value, "permissionId"); | ||
| 141 | + return (Criteria) this; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + public Criteria andPermissionIdGreaterThanOrEqualTo(BigDecimal value) { | ||
| 145 | + addCriterion("PERMISSION_ID >=", value, "permissionId"); | ||
| 146 | + return (Criteria) this; | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + public Criteria andPermissionIdLessThan(BigDecimal value) { | ||
| 150 | + addCriterion("PERMISSION_ID <", value, "permissionId"); | ||
| 151 | + return (Criteria) this; | ||
| 152 | + } | ||
| 153 | + | ||
| 154 | + public Criteria andPermissionIdLessThanOrEqualTo(BigDecimal value) { | ||
| 155 | + addCriterion("PERMISSION_ID <=", value, "permissionId"); | ||
| 156 | + return (Criteria) this; | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + public Criteria andPermissionIdIn(List<BigDecimal> values) { | ||
| 160 | + addCriterion("PERMISSION_ID in", values, "permissionId"); | ||
| 161 | + return (Criteria) this; | ||
| 162 | + } | ||
| 163 | + | ||
| 164 | + public Criteria andPermissionIdNotIn(List<BigDecimal> values) { | ||
| 165 | + addCriterion("PERMISSION_ID not in", values, "permissionId"); | ||
| 166 | + return (Criteria) this; | ||
| 167 | + } | ||
| 168 | + | ||
| 169 | + public Criteria andPermissionIdBetween(BigDecimal value1, BigDecimal value2) { | ||
| 170 | + addCriterion("PERMISSION_ID between", value1, value2, "permissionId"); | ||
| 171 | + return (Criteria) this; | ||
| 172 | + } | ||
| 173 | + | ||
| 174 | + public Criteria andPermissionIdNotBetween(BigDecimal value1, BigDecimal value2) { | ||
| 175 | + addCriterion("PERMISSION_ID not between", value1, value2, "permissionId"); | ||
| 176 | + return (Criteria) this; | ||
| 177 | + } | ||
| 178 | + | ||
| 179 | + public Criteria andPermissionNameIsNull() { | ||
| 180 | + addCriterion("PERMISSION_NAME is null"); | ||
| 181 | + return (Criteria) this; | ||
| 182 | + } | ||
| 183 | + | ||
| 184 | + public Criteria andPermissionNameIsNotNull() { | ||
| 185 | + addCriterion("PERMISSION_NAME is not null"); | ||
| 186 | + return (Criteria) this; | ||
| 187 | + } | ||
| 188 | + | ||
| 189 | + public Criteria andPermissionNameEqualTo(String value) { | ||
| 190 | + addCriterion("PERMISSION_NAME =", value, "permissionName"); | ||
| 191 | + return (Criteria) this; | ||
| 192 | + } | ||
| 193 | + | ||
| 194 | + public Criteria andPermissionNameNotEqualTo(String value) { | ||
| 195 | + addCriterion("PERMISSION_NAME <>", value, "permissionName"); | ||
| 196 | + return (Criteria) this; | ||
| 197 | + } | ||
| 198 | + | ||
| 199 | + public Criteria andPermissionNameGreaterThan(String value) { | ||
| 200 | + addCriterion("PERMISSION_NAME >", value, "permissionName"); | ||
| 201 | + return (Criteria) this; | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + public Criteria andPermissionNameGreaterThanOrEqualTo(String value) { | ||
| 205 | + addCriterion("PERMISSION_NAME >=", value, "permissionName"); | ||
| 206 | + return (Criteria) this; | ||
| 207 | + } | ||
| 208 | + | ||
| 209 | + public Criteria andPermissionNameLessThan(String value) { | ||
| 210 | + addCriterion("PERMISSION_NAME <", value, "permissionName"); | ||
| 211 | + return (Criteria) this; | ||
| 212 | + } | ||
| 213 | + | ||
| 214 | + public Criteria andPermissionNameLessThanOrEqualTo(String value) { | ||
| 215 | + addCriterion("PERMISSION_NAME <=", value, "permissionName"); | ||
| 216 | + return (Criteria) this; | ||
| 217 | + } | ||
| 218 | + | ||
| 219 | + public Criteria andPermissionNameLike(String value) { | ||
| 220 | + addCriterion("PERMISSION_NAME like", value, "permissionName"); | ||
| 221 | + return (Criteria) this; | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + public Criteria andPermissionNameNotLike(String value) { | ||
| 225 | + addCriterion("PERMISSION_NAME not like", value, "permissionName"); | ||
| 226 | + return (Criteria) this; | ||
| 227 | + } | ||
| 228 | + | ||
| 229 | + public Criteria andPermissionNameIn(List<String> values) { | ||
| 230 | + addCriterion("PERMISSION_NAME in", values, "permissionName"); | ||
| 231 | + return (Criteria) this; | ||
| 232 | + } | ||
| 233 | + | ||
| 234 | + public Criteria andPermissionNameNotIn(List<String> values) { | ||
| 235 | + addCriterion("PERMISSION_NAME not in", values, "permissionName"); | ||
| 236 | + return (Criteria) this; | ||
| 237 | + } | ||
| 238 | + | ||
| 239 | + public Criteria andPermissionNameBetween(String value1, String value2) { | ||
| 240 | + addCriterion("PERMISSION_NAME between", value1, value2, "permissionName"); | ||
| 241 | + return (Criteria) this; | ||
| 242 | + } | ||
| 243 | + | ||
| 244 | + public Criteria andPermissionNameNotBetween(String value1, String value2) { | ||
| 245 | + addCriterion("PERMISSION_NAME not between", value1, value2, "permissionName"); | ||
| 246 | + return (Criteria) this; | ||
| 247 | + } | ||
| 248 | + | ||
| 249 | + public Criteria andPermissionSignIsNull() { | ||
| 250 | + addCriterion("PERMISSION_SIGN is null"); | ||
| 251 | + return (Criteria) this; | ||
| 252 | + } | ||
| 253 | + | ||
| 254 | + public Criteria andPermissionSignIsNotNull() { | ||
| 255 | + addCriterion("PERMISSION_SIGN is not null"); | ||
| 256 | + return (Criteria) this; | ||
| 257 | + } | ||
| 258 | + | ||
| 259 | + public Criteria andPermissionSignEqualTo(String value) { | ||
| 260 | + addCriterion("PERMISSION_SIGN =", value, "permissionSign"); | ||
| 261 | + return (Criteria) this; | ||
| 262 | + } | ||
| 263 | + | ||
| 264 | + public Criteria andPermissionSignNotEqualTo(String value) { | ||
| 265 | + addCriterion("PERMISSION_SIGN <>", value, "permissionSign"); | ||
| 266 | + return (Criteria) this; | ||
| 267 | + } | ||
| 268 | + | ||
| 269 | + public Criteria andPermissionSignGreaterThan(String value) { | ||
| 270 | + addCriterion("PERMISSION_SIGN >", value, "permissionSign"); | ||
| 271 | + return (Criteria) this; | ||
| 272 | + } | ||
| 273 | + | ||
| 274 | + public Criteria andPermissionSignGreaterThanOrEqualTo(String value) { | ||
| 275 | + addCriterion("PERMISSION_SIGN >=", value, "permissionSign"); | ||
| 276 | + return (Criteria) this; | ||
| 277 | + } | ||
| 278 | + | ||
| 279 | + public Criteria andPermissionSignLessThan(String value) { | ||
| 280 | + addCriterion("PERMISSION_SIGN <", value, "permissionSign"); | ||
| 281 | + return (Criteria) this; | ||
| 282 | + } | ||
| 283 | + | ||
| 284 | + public Criteria andPermissionSignLessThanOrEqualTo(String value) { | ||
| 285 | + addCriterion("PERMISSION_SIGN <=", value, "permissionSign"); | ||
| 286 | + return (Criteria) this; | ||
| 287 | + } | ||
| 288 | + | ||
| 289 | + public Criteria andPermissionSignLike(String value) { | ||
| 290 | + addCriterion("PERMISSION_SIGN like", value, "permissionSign"); | ||
| 291 | + return (Criteria) this; | ||
| 292 | + } | ||
| 293 | + | ||
| 294 | + public Criteria andPermissionSignNotLike(String value) { | ||
| 295 | + addCriterion("PERMISSION_SIGN not like", value, "permissionSign"); | ||
| 296 | + return (Criteria) this; | ||
| 297 | + } | ||
| 298 | + | ||
| 299 | + public Criteria andPermissionSignIn(List<String> values) { | ||
| 300 | + addCriterion("PERMISSION_SIGN in", values, "permissionSign"); | ||
| 301 | + return (Criteria) this; | ||
| 302 | + } | ||
| 303 | + | ||
| 304 | + public Criteria andPermissionSignNotIn(List<String> values) { | ||
| 305 | + addCriterion("PERMISSION_SIGN not in", values, "permissionSign"); | ||
| 306 | + return (Criteria) this; | ||
| 307 | + } | ||
| 308 | + | ||
| 309 | + public Criteria andPermissionSignBetween(String value1, String value2) { | ||
| 310 | + addCriterion("PERMISSION_SIGN between", value1, value2, "permissionSign"); | ||
| 311 | + return (Criteria) this; | ||
| 312 | + } | ||
| 313 | + | ||
| 314 | + public Criteria andPermissionSignNotBetween(String value1, String value2) { | ||
| 315 | + addCriterion("PERMISSION_SIGN not between", value1, value2, "permissionSign"); | ||
| 316 | + return (Criteria) this; | ||
| 317 | + } | ||
| 318 | + | ||
| 319 | + public Criteria andDescriptionIsNull() { | ||
| 320 | + addCriterion("DESCRIPTION is null"); | ||
| 321 | + return (Criteria) this; | ||
| 322 | + } | ||
| 323 | + | ||
| 324 | + public Criteria andDescriptionIsNotNull() { | ||
| 325 | + addCriterion("DESCRIPTION is not null"); | ||
| 326 | + return (Criteria) this; | ||
| 327 | + } | ||
| 328 | + | ||
| 329 | + public Criteria andDescriptionEqualTo(String value) { | ||
| 330 | + addCriterion("DESCRIPTION =", value, "description"); | ||
| 331 | + return (Criteria) this; | ||
| 332 | + } | ||
| 333 | + | ||
| 334 | + public Criteria andDescriptionNotEqualTo(String value) { | ||
| 335 | + addCriterion("DESCRIPTION <>", value, "description"); | ||
| 336 | + return (Criteria) this; | ||
| 337 | + } | ||
| 338 | + | ||
| 339 | + public Criteria andDescriptionGreaterThan(String value) { | ||
| 340 | + addCriterion("DESCRIPTION >", value, "description"); | ||
| 341 | + return (Criteria) this; | ||
| 342 | + } | ||
| 343 | + | ||
| 344 | + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { | ||
| 345 | + addCriterion("DESCRIPTION >=", value, "description"); | ||
| 346 | + return (Criteria) this; | ||
| 347 | + } | ||
| 348 | + | ||
| 349 | + public Criteria andDescriptionLessThan(String value) { | ||
| 350 | + addCriterion("DESCRIPTION <", value, "description"); | ||
| 351 | + return (Criteria) this; | ||
| 352 | + } | ||
| 353 | + | ||
| 354 | + public Criteria andDescriptionLessThanOrEqualTo(String value) { | ||
| 355 | + addCriterion("DESCRIPTION <=", value, "description"); | ||
| 356 | + return (Criteria) this; | ||
| 357 | + } | ||
| 358 | + | ||
| 359 | + public Criteria andDescriptionLike(String value) { | ||
| 360 | + addCriterion("DESCRIPTION like", value, "description"); | ||
| 361 | + return (Criteria) this; | ||
| 362 | + } | ||
| 363 | + | ||
| 364 | + public Criteria andDescriptionNotLike(String value) { | ||
| 365 | + addCriterion("DESCRIPTION not like", value, "description"); | ||
| 366 | + return (Criteria) this; | ||
| 367 | + } | ||
| 368 | + | ||
| 369 | + public Criteria andDescriptionIn(List<String> values) { | ||
| 370 | + addCriterion("DESCRIPTION in", values, "description"); | ||
| 371 | + return (Criteria) this; | ||
| 372 | + } | ||
| 373 | + | ||
| 374 | + public Criteria andDescriptionNotIn(List<String> values) { | ||
| 375 | + addCriterion("DESCRIPTION not in", values, "description"); | ||
| 376 | + return (Criteria) this; | ||
| 377 | + } | ||
| 378 | + | ||
| 379 | + public Criteria andDescriptionBetween(String value1, String value2) { | ||
| 380 | + addCriterion("DESCRIPTION between", value1, value2, "description"); | ||
| 381 | + return (Criteria) this; | ||
| 382 | + } | ||
| 383 | + | ||
| 384 | + public Criteria andDescriptionNotBetween(String value1, String value2) { | ||
| 385 | + addCriterion("DESCRIPTION not between", value1, value2, "description"); | ||
| 386 | + return (Criteria) this; | ||
| 387 | + } | ||
| 388 | + | ||
| 389 | + public Criteria andGroupNameIsNull() { | ||
| 390 | + addCriterion("GROUP_NAME is null"); | ||
| 391 | + return (Criteria) this; | ||
| 392 | + } | ||
| 393 | + | ||
| 394 | + public Criteria andGroupNameIsNotNull() { | ||
| 395 | + addCriterion("GROUP_NAME is not null"); | ||
| 396 | + return (Criteria) this; | ||
| 397 | + } | ||
| 398 | + | ||
| 399 | + public Criteria andGroupNameEqualTo(String value) { | ||
| 400 | + addCriterion("GROUP_NAME =", value, "groupName"); | ||
| 401 | + return (Criteria) this; | ||
| 402 | + } | ||
| 403 | + | ||
| 404 | + public Criteria andGroupNameNotEqualTo(String value) { | ||
| 405 | + addCriterion("GROUP_NAME <>", value, "groupName"); | ||
| 406 | + return (Criteria) this; | ||
| 407 | + } | ||
| 408 | + | ||
| 409 | + public Criteria andGroupNameGreaterThan(String value) { | ||
| 410 | + addCriterion("GROUP_NAME >", value, "groupName"); | ||
| 411 | + return (Criteria) this; | ||
| 412 | + } | ||
| 413 | + | ||
| 414 | + public Criteria andGroupNameGreaterThanOrEqualTo(String value) { | ||
| 415 | + addCriterion("GROUP_NAME >=", value, "groupName"); | ||
| 416 | + return (Criteria) this; | ||
| 417 | + } | ||
| 418 | + | ||
| 419 | + public Criteria andGroupNameLessThan(String value) { | ||
| 420 | + addCriterion("GROUP_NAME <", value, "groupName"); | ||
| 421 | + return (Criteria) this; | ||
| 422 | + } | ||
| 423 | + | ||
| 424 | + public Criteria andGroupNameLessThanOrEqualTo(String value) { | ||
| 425 | + addCriterion("GROUP_NAME <=", value, "groupName"); | ||
| 426 | + return (Criteria) this; | ||
| 427 | + } | ||
| 428 | + | ||
| 429 | + public Criteria andGroupNameLike(String value) { | ||
| 430 | + addCriterion("GROUP_NAME like", value, "groupName"); | ||
| 431 | + return (Criteria) this; | ||
| 432 | + } | ||
| 433 | + | ||
| 434 | + public Criteria andGroupNameNotLike(String value) { | ||
| 435 | + addCriterion("GROUP_NAME not like", value, "groupName"); | ||
| 436 | + return (Criteria) this; | ||
| 437 | + } | ||
| 438 | + | ||
| 439 | + public Criteria andGroupNameIn(List<String> values) { | ||
| 440 | + addCriterion("GROUP_NAME in", values, "groupName"); | ||
| 441 | + return (Criteria) this; | ||
| 442 | + } | ||
| 443 | + | ||
| 444 | + public Criteria andGroupNameNotIn(List<String> values) { | ||
| 445 | + addCriterion("GROUP_NAME not in", values, "groupName"); | ||
| 446 | + return (Criteria) this; | ||
| 447 | + } | ||
| 448 | + | ||
| 449 | + public Criteria andGroupNameBetween(String value1, String value2) { | ||
| 450 | + addCriterion("GROUP_NAME between", value1, value2, "groupName"); | ||
| 451 | + return (Criteria) this; | ||
| 452 | + } | ||
| 453 | + | ||
| 454 | + public Criteria andGroupNameNotBetween(String value1, String value2) { | ||
| 455 | + addCriterion("GROUP_NAME not between", value1, value2, "groupName"); | ||
| 456 | + return (Criteria) this; | ||
| 457 | + } | ||
| 458 | + } | ||
| 459 | + | ||
| 460 | + public static class Criteria extends GeneratedCriteria { | ||
| 461 | + | ||
| 462 | + protected Criteria() { | ||
| 463 | + super(); | ||
| 464 | + } | ||
| 465 | + } | ||
| 466 | + | ||
| 467 | + public static class Criterion { | ||
| 468 | + private String condition; | ||
| 469 | + | ||
| 470 | + private Object value; | ||
| 471 | + | ||
| 472 | + private Object secondValue; | ||
| 473 | + | ||
| 474 | + private boolean noValue; | ||
| 475 | + | ||
| 476 | + private boolean singleValue; | ||
| 477 | + | ||
| 478 | + private boolean betweenValue; | ||
| 479 | + | ||
| 480 | + private boolean listValue; | ||
| 481 | + | ||
| 482 | + private String typeHandler; | ||
| 483 | + | ||
| 484 | + public String getCondition() { | ||
| 485 | + return condition; | ||
| 486 | + } | ||
| 487 | + | ||
| 488 | + public Object getValue() { | ||
| 489 | + return value; | ||
| 490 | + } | ||
| 491 | + | ||
| 492 | + public Object getSecondValue() { | ||
| 493 | + return secondValue; | ||
| 494 | + } | ||
| 495 | + | ||
| 496 | + public boolean isNoValue() { | ||
| 497 | + return noValue; | ||
| 498 | + } | ||
| 499 | + | ||
| 500 | + public boolean isSingleValue() { | ||
| 501 | + return singleValue; | ||
| 502 | + } | ||
| 503 | + | ||
| 504 | + public boolean isBetweenValue() { | ||
| 505 | + return betweenValue; | ||
| 506 | + } | ||
| 507 | + | ||
| 508 | + public boolean isListValue() { | ||
| 509 | + return listValue; | ||
| 510 | + } | ||
| 511 | + | ||
| 512 | + public String getTypeHandler() { | ||
| 513 | + return typeHandler; | ||
| 514 | + } | ||
| 515 | + | ||
| 516 | + protected Criterion(String condition) { | ||
| 517 | + super(); | ||
| 518 | + this.condition = condition; | ||
| 519 | + this.typeHandler = null; | ||
| 520 | + this.noValue = true; | ||
| 521 | + } | ||
| 522 | + | ||
| 523 | + protected Criterion(String condition, Object value, String typeHandler) { | ||
| 524 | + super(); | ||
| 525 | + this.condition = condition; | ||
| 526 | + this.value = value; | ||
| 527 | + this.typeHandler = typeHandler; | ||
| 528 | + if (value instanceof List<?>) { | ||
| 529 | + this.listValue = true; | ||
| 530 | + } else { | ||
| 531 | + this.singleValue = true; | ||
| 532 | + } | ||
| 533 | + } | ||
| 534 | + | ||
| 535 | + protected Criterion(String condition, Object value) { | ||
| 536 | + this(condition, value, null); | ||
| 537 | + } | ||
| 538 | + | ||
| 539 | + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | ||
| 540 | + super(); | ||
| 541 | + this.condition = condition; | ||
| 542 | + this.value = value; | ||
| 543 | + this.secondValue = secondValue; | ||
| 544 | + this.typeHandler = typeHandler; | ||
| 545 | + this.betweenValue = true; | ||
| 546 | + } | ||
| 547 | + | ||
| 548 | + protected Criterion(String condition, Object value, Object secondValue) { | ||
| 549 | + this(condition, value, secondValue, null); | ||
| 550 | + } | ||
| 551 | + } | ||
| 552 | +} | 
src/main/java/com/tianbo/model/Role.java
0 → 100644
| 1 | +package com.tianbo.model; | ||
| 2 | + | ||
| 3 | +import java.math.BigDecimal; | ||
| 4 | + | ||
| 5 | +public class Role { | ||
| 6 | + private BigDecimal roleId; | ||
| 7 | + | ||
| 8 | + private String roleName; | ||
| 9 | + | ||
| 10 | + private String roleSign; | ||
| 11 | + | ||
| 12 | + private String description; | ||
| 13 | + | ||
| 14 | + public BigDecimal getRoleId() { | ||
| 15 | + return roleId; | ||
| 16 | + } | ||
| 17 | + | ||
| 18 | + public void setRoleId(BigDecimal roleId) { | ||
| 19 | + this.roleId = roleId; | ||
| 20 | + } | ||
| 21 | + | ||
| 22 | + public String getRoleName() { | ||
| 23 | + return roleName; | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + public void setRoleName(String roleName) { | ||
| 27 | + this.roleName = roleName == null ? null : roleName.trim(); | ||
| 28 | + } | ||
| 29 | + | ||
| 30 | + public String getRoleSign() { | ||
| 31 | + return roleSign; | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | + public void setRoleSign(String roleSign) { | ||
| 35 | + this.roleSign = roleSign == null ? null : roleSign.trim(); | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + public String getDescription() { | ||
| 39 | + return description; | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + public void setDescription(String description) { | ||
| 43 | + this.description = description == null ? null : description.trim(); | ||
| 44 | + } | ||
| 45 | +} | 
| 1 | +package com.tianbo.model; | ||
| 2 | + | ||
| 3 | +import com.tianbo.util.dao.Page; | ||
| 4 | +import java.math.BigDecimal; | ||
| 5 | +import java.util.ArrayList; | ||
| 6 | +import java.util.List; | ||
| 7 | + | ||
| 8 | +public class RoleExample { | ||
| 9 | + protected String orderByClause; | ||
| 10 | + | ||
| 11 | + protected boolean distinct; | ||
| 12 | + | ||
| 13 | + protected List<Criteria> oredCriteria; | ||
| 14 | + | ||
| 15 | + protected Page page; | ||
| 16 | + | ||
| 17 | + public RoleExample() { | ||
| 18 | + oredCriteria = new ArrayList<Criteria>(); | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + public void setOrderByClause(String orderByClause) { | ||
| 22 | + this.orderByClause = orderByClause; | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + public String getOrderByClause() { | ||
| 26 | + return orderByClause; | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + public void setDistinct(boolean distinct) { | ||
| 30 | + this.distinct = distinct; | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + public boolean isDistinct() { | ||
| 34 | + return distinct; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + public List<Criteria> getOredCriteria() { | ||
| 38 | + return oredCriteria; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public void or(Criteria criteria) { | ||
| 42 | + oredCriteria.add(criteria); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public Criteria or() { | ||
| 46 | + Criteria criteria = createCriteriaInternal(); | ||
| 47 | + oredCriteria.add(criteria); | ||
| 48 | + return criteria; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + public Criteria createCriteria() { | ||
| 52 | + Criteria criteria = createCriteriaInternal(); | ||
| 53 | + if (oredCriteria.size() == 0) { | ||
| 54 | + oredCriteria.add(criteria); | ||
| 55 | + } | ||
| 56 | + return criteria; | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + protected Criteria createCriteriaInternal() { | ||
| 60 | + Criteria criteria = new Criteria(); | ||
| 61 | + return criteria; | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + public void clear() { | ||
| 65 | + oredCriteria.clear(); | ||
| 66 | + orderByClause = null; | ||
| 67 | + distinct = false; | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + public void setPage(Page page) { | ||
| 71 | + this.page=page; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + public Page getPage() { | ||
| 75 | + return page; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + protected abstract static class GeneratedCriteria { | ||
| 79 | + protected List<Criterion> criteria; | ||
| 80 | + | ||
| 81 | + protected GeneratedCriteria() { | ||
| 82 | + super(); | ||
| 83 | + criteria = new ArrayList<Criterion>(); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + public boolean isValid() { | ||
| 87 | + return criteria.size() > 0; | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + public List<Criterion> getAllCriteria() { | ||
| 91 | + return criteria; | ||
| 92 | + } | ||
| 93 | + | ||
| 94 | + public List<Criterion> getCriteria() { | ||
| 95 | + return criteria; | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + protected void addCriterion(String condition) { | ||
| 99 | + if (condition == null) { | ||
| 100 | + throw new RuntimeException("Value for condition cannot be null"); | ||
| 101 | + } | ||
| 102 | + criteria.add(new Criterion(condition)); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + protected void addCriterion(String condition, Object value, String property) { | ||
| 106 | + if (value == null) { | ||
| 107 | + throw new RuntimeException("Value for " + property + " cannot be null"); | ||
| 108 | + } | ||
| 109 | + criteria.add(new Criterion(condition, value)); | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + protected void addCriterion(String condition, Object value1, Object value2, String property) { | ||
| 113 | + if (value1 == null || value2 == null) { | ||
| 114 | + throw new RuntimeException("Between values for " + property + " cannot be null"); | ||
| 115 | + } | ||
| 116 | + criteria.add(new Criterion(condition, value1, value2)); | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + public Criteria andRoleIdIsNull() { | ||
| 120 | + addCriterion("ROLE_ID is null"); | ||
| 121 | + return (Criteria) this; | ||
| 122 | + } | ||
| 123 | + | ||
| 124 | + public Criteria andRoleIdIsNotNull() { | ||
| 125 | + addCriterion("ROLE_ID is not null"); | ||
| 126 | + return (Criteria) this; | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + public Criteria andRoleIdEqualTo(BigDecimal value) { | ||
| 130 | + addCriterion("ROLE_ID =", value, "roleId"); | ||
| 131 | + return (Criteria) this; | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + public Criteria andRoleIdNotEqualTo(BigDecimal value) { | ||
| 135 | + addCriterion("ROLE_ID <>", value, "roleId"); | ||
| 136 | + return (Criteria) this; | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + public Criteria andRoleIdGreaterThan(BigDecimal value) { | ||
| 140 | + addCriterion("ROLE_ID >", value, "roleId"); | ||
| 141 | + return (Criteria) this; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + public Criteria andRoleIdGreaterThanOrEqualTo(BigDecimal value) { | ||
| 145 | + addCriterion("ROLE_ID >=", value, "roleId"); | ||
| 146 | + return (Criteria) this; | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + public Criteria andRoleIdLessThan(BigDecimal value) { | ||
| 150 | + addCriterion("ROLE_ID <", value, "roleId"); | ||
| 151 | + return (Criteria) this; | ||
| 152 | + } | ||
| 153 | + | ||
| 154 | + public Criteria andRoleIdLessThanOrEqualTo(BigDecimal value) { | ||
| 155 | + addCriterion("ROLE_ID <=", value, "roleId"); | ||
| 156 | + return (Criteria) this; | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + public Criteria andRoleIdIn(List<BigDecimal> values) { | ||
| 160 | + addCriterion("ROLE_ID in", values, "roleId"); | ||
| 161 | + return (Criteria) this; | ||
| 162 | + } | ||
| 163 | + | ||
| 164 | + public Criteria andRoleIdNotIn(List<BigDecimal> values) { | ||
| 165 | + addCriterion("ROLE_ID not in", values, "roleId"); | ||
| 166 | + return (Criteria) this; | ||
| 167 | + } | ||
| 168 | + | ||
| 169 | + public Criteria andRoleIdBetween(BigDecimal value1, BigDecimal value2) { | ||
| 170 | + addCriterion("ROLE_ID between", value1, value2, "roleId"); | ||
| 171 | + return (Criteria) this; | ||
| 172 | + } | ||
| 173 | + | ||
| 174 | + public Criteria andRoleIdNotBetween(BigDecimal value1, BigDecimal value2) { | ||
| 175 | + addCriterion("ROLE_ID not between", value1, value2, "roleId"); | ||
| 176 | + return (Criteria) this; | ||
| 177 | + } | ||
| 178 | + | ||
| 179 | + public Criteria andRoleNameIsNull() { | ||
| 180 | + addCriterion("ROLE_NAME is null"); | ||
| 181 | + return (Criteria) this; | ||
| 182 | + } | ||
| 183 | + | ||
| 184 | + public Criteria andRoleNameIsNotNull() { | ||
| 185 | + addCriterion("ROLE_NAME is not null"); | ||
| 186 | + return (Criteria) this; | ||
| 187 | + } | ||
| 188 | + | ||
| 189 | + public Criteria andRoleNameEqualTo(String value) { | ||
| 190 | + addCriterion("ROLE_NAME =", value, "roleName"); | ||
| 191 | + return (Criteria) this; | ||
| 192 | + } | ||
| 193 | + | ||
| 194 | + public Criteria andRoleNameNotEqualTo(String value) { | ||
| 195 | + addCriterion("ROLE_NAME <>", value, "roleName"); | ||
| 196 | + return (Criteria) this; | ||
| 197 | + } | ||
| 198 | + | ||
| 199 | + public Criteria andRoleNameGreaterThan(String value) { | ||
| 200 | + addCriterion("ROLE_NAME >", value, "roleName"); | ||
| 201 | + return (Criteria) this; | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + public Criteria andRoleNameGreaterThanOrEqualTo(String value) { | ||
| 205 | + addCriterion("ROLE_NAME >=", value, "roleName"); | ||
| 206 | + return (Criteria) this; | ||
| 207 | + } | ||
| 208 | + | ||
| 209 | + public Criteria andRoleNameLessThan(String value) { | ||
| 210 | + addCriterion("ROLE_NAME <", value, "roleName"); | ||
| 211 | + return (Criteria) this; | ||
| 212 | + } | ||
| 213 | + | ||
| 214 | + public Criteria andRoleNameLessThanOrEqualTo(String value) { | ||
| 215 | + addCriterion("ROLE_NAME <=", value, "roleName"); | ||
| 216 | + return (Criteria) this; | ||
| 217 | + } | ||
| 218 | + | ||
| 219 | + public Criteria andRoleNameLike(String value) { | ||
| 220 | + addCriterion("ROLE_NAME like", value, "roleName"); | ||
| 221 | + return (Criteria) this; | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + public Criteria andRoleNameNotLike(String value) { | ||
| 225 | + addCriterion("ROLE_NAME not like", value, "roleName"); | ||
| 226 | + return (Criteria) this; | ||
| 227 | + } | ||
| 228 | + | ||
| 229 | + public Criteria andRoleNameIn(List<String> values) { | ||
| 230 | + addCriterion("ROLE_NAME in", values, "roleName"); | ||
| 231 | + return (Criteria) this; | ||
| 232 | + } | ||
| 233 | + | ||
| 234 | + public Criteria andRoleNameNotIn(List<String> values) { | ||
| 235 | + addCriterion("ROLE_NAME not in", values, "roleName"); | ||
| 236 | + return (Criteria) this; | ||
| 237 | + } | ||
| 238 | + | ||
| 239 | + public Criteria andRoleNameBetween(String value1, String value2) { | ||
| 240 | + addCriterion("ROLE_NAME between", value1, value2, "roleName"); | ||
| 241 | + return (Criteria) this; | ||
| 242 | + } | ||
| 243 | + | ||
| 244 | + public Criteria andRoleNameNotBetween(String value1, String value2) { | ||
| 245 | + addCriterion("ROLE_NAME not between", value1, value2, "roleName"); | ||
| 246 | + return (Criteria) this; | ||
| 247 | + } | ||
| 248 | + | ||
| 249 | + public Criteria andRoleSignIsNull() { | ||
| 250 | + addCriterion("ROLE_SIGN is null"); | ||
| 251 | + return (Criteria) this; | ||
| 252 | + } | ||
| 253 | + | ||
| 254 | + public Criteria andRoleSignIsNotNull() { | ||
| 255 | + addCriterion("ROLE_SIGN is not null"); | ||
| 256 | + return (Criteria) this; | ||
| 257 | + } | ||
| 258 | + | ||
| 259 | + public Criteria andRoleSignEqualTo(String value) { | ||
| 260 | + addCriterion("ROLE_SIGN =", value, "roleSign"); | ||
| 261 | + return (Criteria) this; | ||
| 262 | + } | ||
| 263 | + | ||
| 264 | + public Criteria andRoleSignNotEqualTo(String value) { | ||
| 265 | + addCriterion("ROLE_SIGN <>", value, "roleSign"); | ||
| 266 | + return (Criteria) this; | ||
| 267 | + } | ||
| 268 | + | ||
| 269 | + public Criteria andRoleSignGreaterThan(String value) { | ||
| 270 | + addCriterion("ROLE_SIGN >", value, "roleSign"); | ||
| 271 | + return (Criteria) this; | ||
| 272 | + } | ||
| 273 | + | ||
| 274 | + public Criteria andRoleSignGreaterThanOrEqualTo(String value) { | ||
| 275 | + addCriterion("ROLE_SIGN >=", value, "roleSign"); | ||
| 276 | + return (Criteria) this; | ||
| 277 | + } | ||
| 278 | + | ||
| 279 | + public Criteria andRoleSignLessThan(String value) { | ||
| 280 | + addCriterion("ROLE_SIGN <", value, "roleSign"); | ||
| 281 | + return (Criteria) this; | ||
| 282 | + } | ||
| 283 | + | ||
| 284 | + public Criteria andRoleSignLessThanOrEqualTo(String value) { | ||
| 285 | + addCriterion("ROLE_SIGN <=", value, "roleSign"); | ||
| 286 | + return (Criteria) this; | ||
| 287 | + } | ||
| 288 | + | ||
| 289 | + public Criteria andRoleSignLike(String value) { | ||
| 290 | + addCriterion("ROLE_SIGN like", value, "roleSign"); | ||
| 291 | + return (Criteria) this; | ||
| 292 | + } | ||
| 293 | + | ||
| 294 | + public Criteria andRoleSignNotLike(String value) { | ||
| 295 | + addCriterion("ROLE_SIGN not like", value, "roleSign"); | ||
| 296 | + return (Criteria) this; | ||
| 297 | + } | ||
| 298 | + | ||
| 299 | + public Criteria andRoleSignIn(List<String> values) { | ||
| 300 | + addCriterion("ROLE_SIGN in", values, "roleSign"); | ||
| 301 | + return (Criteria) this; | ||
| 302 | + } | ||
| 303 | + | ||
| 304 | + public Criteria andRoleSignNotIn(List<String> values) { | ||
| 305 | + addCriterion("ROLE_SIGN not in", values, "roleSign"); | ||
| 306 | + return (Criteria) this; | ||
| 307 | + } | ||
| 308 | + | ||
| 309 | + public Criteria andRoleSignBetween(String value1, String value2) { | ||
| 310 | + addCriterion("ROLE_SIGN between", value1, value2, "roleSign"); | ||
| 311 | + return (Criteria) this; | ||
| 312 | + } | ||
| 313 | + | ||
| 314 | + public Criteria andRoleSignNotBetween(String value1, String value2) { | ||
| 315 | + addCriterion("ROLE_SIGN not between", value1, value2, "roleSign"); | ||
| 316 | + return (Criteria) this; | ||
| 317 | + } | ||
| 318 | + | ||
| 319 | + public Criteria andDescriptionIsNull() { | ||
| 320 | + addCriterion("DESCRIPTION is null"); | ||
| 321 | + return (Criteria) this; | ||
| 322 | + } | ||
| 323 | + | ||
| 324 | + public Criteria andDescriptionIsNotNull() { | ||
| 325 | + addCriterion("DESCRIPTION is not null"); | ||
| 326 | + return (Criteria) this; | ||
| 327 | + } | ||
| 328 | + | ||
| 329 | + public Criteria andDescriptionEqualTo(String value) { | ||
| 330 | + addCriterion("DESCRIPTION =", value, "description"); | ||
| 331 | + return (Criteria) this; | ||
| 332 | + } | ||
| 333 | + | ||
| 334 | + public Criteria andDescriptionNotEqualTo(String value) { | ||
| 335 | + addCriterion("DESCRIPTION <>", value, "description"); | ||
| 336 | + return (Criteria) this; | ||
| 337 | + } | ||
| 338 | + | ||
| 339 | + public Criteria andDescriptionGreaterThan(String value) { | ||
| 340 | + addCriterion("DESCRIPTION >", value, "description"); | ||
| 341 | + return (Criteria) this; | ||
| 342 | + } | ||
| 343 | + | ||
| 344 | + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { | ||
| 345 | + addCriterion("DESCRIPTION >=", value, "description"); | ||
| 346 | + return (Criteria) this; | ||
| 347 | + } | ||
| 348 | + | ||
| 349 | + public Criteria andDescriptionLessThan(String value) { | ||
| 350 | + addCriterion("DESCRIPTION <", value, "description"); | ||
| 351 | + return (Criteria) this; | ||
| 352 | + } | ||
| 353 | + | ||
| 354 | + public Criteria andDescriptionLessThanOrEqualTo(String value) { | ||
| 355 | + addCriterion("DESCRIPTION <=", value, "description"); | ||
| 356 | + return (Criteria) this; | ||
| 357 | + } | ||
| 358 | + | ||
| 359 | + public Criteria andDescriptionLike(String value) { | ||
| 360 | + addCriterion("DESCRIPTION like", value, "description"); | ||
| 361 | + return (Criteria) this; | ||
| 362 | + } | ||
| 363 | + | ||
| 364 | + public Criteria andDescriptionNotLike(String value) { | ||
| 365 | + addCriterion("DESCRIPTION not like", value, "description"); | ||
| 366 | + return (Criteria) this; | ||
| 367 | + } | ||
| 368 | + | ||
| 369 | + public Criteria andDescriptionIn(List<String> values) { | ||
| 370 | + addCriterion("DESCRIPTION in", values, "description"); | ||
| 371 | + return (Criteria) this; | ||
| 372 | + } | ||
| 373 | + | ||
| 374 | + public Criteria andDescriptionNotIn(List<String> values) { | ||
| 375 | + addCriterion("DESCRIPTION not in", values, "description"); | ||
| 376 | + return (Criteria) this; | ||
| 377 | + } | ||
| 378 | + | ||
| 379 | + public Criteria andDescriptionBetween(String value1, String value2) { | ||
| 380 | + addCriterion("DESCRIPTION between", value1, value2, "description"); | ||
| 381 | + return (Criteria) this; | ||
| 382 | + } | ||
| 383 | + | ||
| 384 | + public Criteria andDescriptionNotBetween(String value1, String value2) { | ||
| 385 | + addCriterion("DESCRIPTION not between", value1, value2, "description"); | ||
| 386 | + return (Criteria) this; | ||
| 387 | + } | ||
| 388 | + } | ||
| 389 | + | ||
| 390 | + public static class Criteria extends GeneratedCriteria { | ||
| 391 | + | ||
| 392 | + protected Criteria() { | ||
| 393 | + super(); | ||
| 394 | + } | ||
| 395 | + } | ||
| 396 | + | ||
| 397 | + public static class Criterion { | ||
| 398 | + private String condition; | ||
| 399 | + | ||
| 400 | + private Object value; | ||
| 401 | + | ||
| 402 | + private Object secondValue; | ||
| 403 | + | ||
| 404 | + private boolean noValue; | ||
| 405 | + | ||
| 406 | + private boolean singleValue; | ||
| 407 | + | ||
| 408 | + private boolean betweenValue; | ||
| 409 | + | ||
| 410 | + private boolean listValue; | ||
| 411 | + | ||
| 412 | + private String typeHandler; | ||
| 413 | + | ||
| 414 | + public String getCondition() { | ||
| 415 | + return condition; | ||
| 416 | + } | ||
| 417 | + | ||
| 418 | + public Object getValue() { | ||
| 419 | + return value; | ||
| 420 | + } | ||
| 421 | + | ||
| 422 | + public Object getSecondValue() { | ||
| 423 | + return secondValue; | ||
| 424 | + } | ||
| 425 | + | ||
| 426 | + public boolean isNoValue() { | ||
| 427 | + return noValue; | ||
| 428 | + } | ||
| 429 | + | ||
| 430 | + public boolean isSingleValue() { | ||
| 431 | + return singleValue; | ||
| 432 | + } | ||
| 433 | + | ||
| 434 | + public boolean isBetweenValue() { | ||
| 435 | + return betweenValue; | ||
| 436 | + } | ||
| 437 | + | ||
| 438 | + public boolean isListValue() { | ||
| 439 | + return listValue; | ||
| 440 | + } | ||
| 441 | + | ||
| 442 | + public String getTypeHandler() { | ||
| 443 | + return typeHandler; | ||
| 444 | + } | ||
| 445 | + | ||
| 446 | + protected Criterion(String condition) { | ||
| 447 | + super(); | ||
| 448 | + this.condition = condition; | ||
| 449 | + this.typeHandler = null; | ||
| 450 | + this.noValue = true; | ||
| 451 | + } | ||
| 452 | + | ||
| 453 | + protected Criterion(String condition, Object value, String typeHandler) { | ||
| 454 | + super(); | ||
| 455 | + this.condition = condition; | ||
| 456 | + this.value = value; | ||
| 457 | + this.typeHandler = typeHandler; | ||
| 458 | + if (value instanceof List<?>) { | ||
| 459 | + this.listValue = true; | ||
| 460 | + } else { | ||
| 461 | + this.singleValue = true; | ||
| 462 | + } | ||
| 463 | + } | ||
| 464 | + | ||
| 465 | + protected Criterion(String condition, Object value) { | ||
| 466 | + this(condition, value, null); | ||
| 467 | + } | ||
| 468 | + | ||
| 469 | + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | ||
| 470 | + super(); | ||
| 471 | + this.condition = condition; | ||
| 472 | + this.value = value; | ||
| 473 | + this.secondValue = secondValue; | ||
| 474 | + this.typeHandler = typeHandler; | ||
| 475 | + this.betweenValue = true; | ||
| 476 | + } | ||
| 477 | + | ||
| 478 | + protected Criterion(String condition, Object value, Object secondValue) { | ||
| 479 | + this(condition, value, secondValue, null); | ||
| 480 | + } | ||
| 481 | + } | ||
| 482 | +} | 
| 1 | +package com.tianbo.model; | ||
| 2 | + | ||
| 3 | +import java.math.BigDecimal; | ||
| 4 | +import java.util.List; | ||
| 5 | + | ||
| 6 | +public class RolePermission { | ||
| 7 | + private BigDecimal id; | ||
| 8 | + | ||
| 9 | + private BigDecimal roleId; | ||
| 10 | + | ||
| 11 | + private BigDecimal permissionId; | ||
| 12 | + | ||
| 13 | + public List<Integer> pmList; | ||
| 14 | + | ||
| 15 | + public BigDecimal getId() { | ||
| 16 | + return id; | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + public void setId(BigDecimal id) { | ||
| 20 | + this.id = id; | ||
| 21 | + } | ||
| 22 | + | ||
| 23 | + public BigDecimal getRoleId() { | ||
| 24 | + return roleId; | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | + public void setRoleId(BigDecimal roleId) { | ||
| 28 | + this.roleId = roleId; | ||
| 29 | + } | ||
| 30 | + | ||
| 31 | + public BigDecimal getPermissionId() { | ||
| 32 | + return permissionId; | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + public void setPermissionId(BigDecimal permissionId) { | ||
| 36 | + this.permissionId = permissionId; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + public List<Integer> getPmList() { | ||
| 40 | + return pmList; | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + public void setPmList(List<Integer> pmList) { | ||
| 44 | + this.pmList = pmList; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + | ||
| 48 | +} | 
| 1 | +package com.tianbo.model; | ||
| 2 | + | ||
| 3 | +import com.tianbo.util.dao.Page; | ||
| 4 | +import java.math.BigDecimal; | ||
| 5 | +import java.util.ArrayList; | ||
| 6 | +import java.util.List; | ||
| 7 | + | ||
| 8 | +public class RolePermissionExample { | ||
| 9 | + protected String orderByClause; | ||
| 10 | + | ||
| 11 | + protected boolean distinct; | ||
| 12 | + | ||
| 13 | + protected List<Criteria> oredCriteria; | ||
| 14 | + | ||
| 15 | + protected Page page; | ||
| 16 | + | ||
| 17 | + public RolePermissionExample() { | ||
| 18 | + oredCriteria = new ArrayList<Criteria>(); | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + public void setOrderByClause(String orderByClause) { | ||
| 22 | + this.orderByClause = orderByClause; | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + public String getOrderByClause() { | ||
| 26 | + return orderByClause; | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + public void setDistinct(boolean distinct) { | ||
| 30 | + this.distinct = distinct; | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + public boolean isDistinct() { | ||
| 34 | + return distinct; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + public List<Criteria> getOredCriteria() { | ||
| 38 | + return oredCriteria; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public void or(Criteria criteria) { | ||
| 42 | + oredCriteria.add(criteria); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public Criteria or() { | ||
| 46 | + Criteria criteria = createCriteriaInternal(); | ||
| 47 | + oredCriteria.add(criteria); | ||
| 48 | + return criteria; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + public Criteria createCriteria() { | ||
| 52 | + Criteria criteria = createCriteriaInternal(); | ||
| 53 | + if (oredCriteria.size() == 0) { | ||
| 54 | + oredCriteria.add(criteria); | ||
| 55 | + } | ||
| 56 | + return criteria; | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + protected Criteria createCriteriaInternal() { | ||
| 60 | + Criteria criteria = new Criteria(); | ||
| 61 | + return criteria; | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + public void clear() { | ||
| 65 | + oredCriteria.clear(); | ||
| 66 | + orderByClause = null; | ||
| 67 | + distinct = false; | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + public void setPage(Page page) { | ||
| 71 | + this.page=page; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + public Page getPage() { | ||
| 75 | + return page; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + protected abstract static class GeneratedCriteria { | ||
| 79 | + protected List<Criterion> criteria; | ||
| 80 | + | ||
| 81 | + protected GeneratedCriteria() { | ||
| 82 | + super(); | ||
| 83 | + criteria = new ArrayList<Criterion>(); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + public boolean isValid() { | ||
| 87 | + return criteria.size() > 0; | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + public List<Criterion> getAllCriteria() { | ||
| 91 | + return criteria; | ||
| 92 | + } | ||
| 93 | + | ||
| 94 | + public List<Criterion> getCriteria() { | ||
| 95 | + return criteria; | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + protected void addCriterion(String condition) { | ||
| 99 | + if (condition == null) { | ||
| 100 | + throw new RuntimeException("Value for condition cannot be null"); | ||
| 101 | + } | ||
| 102 | + criteria.add(new Criterion(condition)); | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + protected void addCriterion(String condition, Object value, String property) { | ||
| 106 | + if (value == null) { | ||
| 107 | + throw new RuntimeException("Value for " + property + " cannot be null"); | ||
| 108 | + } | ||
| 109 | + criteria.add(new Criterion(condition, value)); | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + protected void addCriterion(String condition, Object value1, Object value2, String property) { | ||
| 113 | + if (value1 == null || value2 == null) { | ||
| 114 | + throw new RuntimeException("Between values for " + property + " cannot be null"); | ||
| 115 | + } | ||
| 116 | + criteria.add(new Criterion(condition, value1, value2)); | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + public Criteria andIdIsNull() { | ||
| 120 | + addCriterion("ID is null"); | ||
| 121 | + return (Criteria) this; | ||
| 122 | + } | ||
| 123 | + | ||
| 124 | + public Criteria andIdIsNotNull() { | ||
| 125 | + addCriterion("ID is not null"); | ||
| 126 | + return (Criteria) this; | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + public Criteria andIdEqualTo(BigDecimal value) { | ||
| 130 | + addCriterion("ID =", value, "id"); | ||
| 131 | + return (Criteria) this; | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + public Criteria andIdNotEqualTo(BigDecimal value) { | ||
| 135 | + addCriterion("ID <>", value, "id"); | ||
| 136 | + return (Criteria) this; | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + public Criteria andIdGreaterThan(BigDecimal value) { | ||
| 140 | + addCriterion("ID >", value, "id"); | ||
| 141 | + return (Criteria) this; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + public Criteria andIdGreaterThanOrEqualTo(BigDecimal value) { | ||
| 145 | + addCriterion("ID >=", value, "id"); | ||
| 146 | + return (Criteria) this; | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + public Criteria andIdLessThan(BigDecimal value) { | ||
| 150 | + addCriterion("ID <", value, "id"); | ||
| 151 | + return (Criteria) this; | ||
| 152 | + } | ||
| 153 | + | ||
| 154 | + public Criteria andIdLessThanOrEqualTo(BigDecimal value) { | ||
| 155 | + addCriterion("ID <=", value, "id"); | ||
| 156 | + return (Criteria) this; | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + public Criteria andIdIn(List<BigDecimal> values) { | ||
| 160 | + addCriterion("ID in", values, "id"); | ||
| 161 | + return (Criteria) this; | ||
| 162 | + } | ||
| 163 | + | ||
| 164 | + public Criteria andIdNotIn(List<BigDecimal> values) { | ||
| 165 | + addCriterion("ID not in", values, "id"); | ||
| 166 | + return (Criteria) this; | ||
| 167 | + } | ||
| 168 | + | ||
| 169 | + public Criteria andIdBetween(BigDecimal value1, BigDecimal value2) { | ||
| 170 | + addCriterion("ID between", value1, value2, "id"); | ||
| 171 | + return (Criteria) this; | ||
| 172 | + } | ||
| 173 | + | ||
| 174 | + public Criteria andIdNotBetween(BigDecimal value1, BigDecimal value2) { | ||
| 175 | + addCriterion("ID not between", value1, value2, "id"); | ||
| 176 | + return (Criteria) this; | ||
| 177 | + } | ||
| 178 | + | ||
| 179 | + public Criteria andRoleIdIsNull() { | ||
| 180 | + addCriterion("ROLE_ID is null"); | ||
| 181 | + return (Criteria) this; | ||
| 182 | + } | ||
| 183 | + | ||
| 184 | + public Criteria andRoleIdIsNotNull() { | ||
| 185 | + addCriterion("ROLE_ID is not null"); | ||
| 186 | + return (Criteria) this; | ||
| 187 | + } | ||
| 188 | + | ||
| 189 | + public Criteria andRoleIdEqualTo(BigDecimal value) { | ||
| 190 | + addCriterion("ROLE_ID =", value, "roleId"); | ||
| 191 | + return (Criteria) this; | ||
| 192 | + } | ||
| 193 | + | ||
| 194 | + public Criteria andRoleIdNotEqualTo(BigDecimal value) { | ||
| 195 | + addCriterion("ROLE_ID <>", value, "roleId"); | ||
| 196 | + return (Criteria) this; | ||
| 197 | + } | ||
| 198 | + | ||
| 199 | + public Criteria andRoleIdGreaterThan(BigDecimal value) { | ||
| 200 | + addCriterion("ROLE_ID >", value, "roleId"); | ||
| 201 | + return (Criteria) this; | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + public Criteria andRoleIdGreaterThanOrEqualTo(BigDecimal value) { | ||
| 205 | + addCriterion("ROLE_ID >=", value, "roleId"); | ||
| 206 | + return (Criteria) this; | ||
| 207 | + } | ||
| 208 | + | ||
| 209 | + public Criteria andRoleIdLessThan(BigDecimal value) { | ||
| 210 | + addCriterion("ROLE_ID <", value, "roleId"); | ||
| 211 | + return (Criteria) this; | ||
| 212 | + } | ||
| 213 | + | ||
| 214 | + public Criteria andRoleIdLessThanOrEqualTo(BigDecimal value) { | ||
| 215 | + addCriterion("ROLE_ID <=", value, "roleId"); | ||
| 216 | + return (Criteria) this; | ||
| 217 | + } | ||
| 218 | + | ||
| 219 | + public Criteria andRoleIdIn(List<BigDecimal> values) { | ||
| 220 | + addCriterion("ROLE_ID in", values, "roleId"); | ||
| 221 | + return (Criteria) this; | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + public Criteria andRoleIdNotIn(List<BigDecimal> values) { | ||
| 225 | + addCriterion("ROLE_ID not in", values, "roleId"); | ||
| 226 | + return (Criteria) this; | ||
| 227 | + } | ||
| 228 | + | ||
| 229 | + public Criteria andRoleIdBetween(BigDecimal value1, BigDecimal value2) { | ||
| 230 | + addCriterion("ROLE_ID between", value1, value2, "roleId"); | ||
| 231 | + return (Criteria) this; | ||
| 232 | + } | ||
| 233 | + | ||
| 234 | + public Criteria andRoleIdNotBetween(BigDecimal value1, BigDecimal value2) { | ||
| 235 | + addCriterion("ROLE_ID not between", value1, value2, "roleId"); | ||
| 236 | + return (Criteria) this; | ||
| 237 | + } | ||
| 238 | + | ||
| 239 | + public Criteria andPermissionIdIsNull() { | ||
| 240 | + addCriterion("PERMISSION_ID is null"); | ||
| 241 | + return (Criteria) this; | ||
| 242 | + } | ||
| 243 | + | ||
| 244 | + public Criteria andPermissionIdIsNotNull() { | ||
| 245 | + addCriterion("PERMISSION_ID is not null"); | ||
| 246 | + return (Criteria) this; | ||
| 247 | + } | ||
| 248 | + | ||
| 249 | + public Criteria andPermissionIdEqualTo(BigDecimal value) { | ||
| 250 | + addCriterion("PERMISSION_ID =", value, "permissionId"); | ||
| 251 | + return (Criteria) this; | ||
| 252 | + } | ||
| 253 | + | ||
| 254 | + public Criteria andPermissionIdNotEqualTo(BigDecimal value) { | ||
| 255 | + addCriterion("PERMISSION_ID <>", value, "permissionId"); | ||
| 256 | + return (Criteria) this; | ||
| 257 | + } | ||
| 258 | + | ||
| 259 | + public Criteria andPermissionIdGreaterThan(BigDecimal value) { | ||
| 260 | + addCriterion("PERMISSION_ID >", value, "permissionId"); | ||
| 261 | + return (Criteria) this; | ||
| 262 | + } | ||
| 263 | + | ||
| 264 | + public Criteria andPermissionIdGreaterThanOrEqualTo(BigDecimal value) { | ||
| 265 | + addCriterion("PERMISSION_ID >=", value, "permissionId"); | ||
| 266 | + return (Criteria) this; | ||
| 267 | + } | ||
| 268 | + | ||
| 269 | + public Criteria andPermissionIdLessThan(BigDecimal value) { | ||
| 270 | + addCriterion("PERMISSION_ID <", value, "permissionId"); | ||
| 271 | + return (Criteria) this; | ||
| 272 | + } | ||
| 273 | + | ||
| 274 | + public Criteria andPermissionIdLessThanOrEqualTo(BigDecimal value) { | ||
| 275 | + addCriterion("PERMISSION_ID <=", value, "permissionId"); | ||
| 276 | + return (Criteria) this; | ||
| 277 | + } | ||
| 278 | + | ||
| 279 | + public Criteria andPermissionIdIn(List<BigDecimal> values) { | ||
| 280 | + addCriterion("PERMISSION_ID in", values, "permissionId"); | ||
| 281 | + return (Criteria) this; | ||
| 282 | + } | ||
| 283 | + | ||
| 284 | + public Criteria andPermissionIdNotIn(List<BigDecimal> values) { | ||
| 285 | + addCriterion("PERMISSION_ID not in", values, "permissionId"); | ||
| 286 | + return (Criteria) this; | ||
| 287 | + } | ||
| 288 | + | ||
| 289 | + public Criteria andPermissionIdBetween(BigDecimal value1, BigDecimal value2) { | ||
| 290 | + addCriterion("PERMISSION_ID between", value1, value2, "permissionId"); | ||
| 291 | + return (Criteria) this; | ||
| 292 | + } | ||
| 293 | + | ||
| 294 | + public Criteria andPermissionIdNotBetween(BigDecimal value1, BigDecimal value2) { | ||
| 295 | + addCriterion("PERMISSION_ID not between", value1, value2, "permissionId"); | ||
| 296 | + return (Criteria) this; | ||
| 297 | + } | ||
| 298 | + } | ||
| 299 | + | ||
| 300 | + public static class Criteria extends GeneratedCriteria { | ||
| 301 | + | ||
| 302 | + protected Criteria() { | ||
| 303 | + super(); | ||
| 304 | + } | ||
| 305 | + } | ||
| 306 | + | ||
| 307 | + public static class Criterion { | ||
| 308 | + private String condition; | ||
| 309 | + | ||
| 310 | + private Object value; | ||
| 311 | + | ||
| 312 | + private Object secondValue; | ||
| 313 | + | ||
| 314 | + private boolean noValue; | ||
| 315 | + | ||
| 316 | + private boolean singleValue; | ||
| 317 | + | ||
| 318 | + private boolean betweenValue; | ||
| 319 | + | ||
| 320 | + private boolean listValue; | ||
| 321 | + | ||
| 322 | + private String typeHandler; | ||
| 323 | + | ||
| 324 | + public String getCondition() { | ||
| 325 | + return condition; | ||
| 326 | + } | ||
| 327 | + | ||
| 328 | + public Object getValue() { | ||
| 329 | + return value; | ||
| 330 | + } | ||
| 331 | + | ||
| 332 | + public Object getSecondValue() { | ||
| 333 | + return secondValue; | ||
| 334 | + } | ||
| 335 | + | ||
| 336 | + public boolean isNoValue() { | ||
| 337 | + return noValue; | ||
| 338 | + } | ||
| 339 | + | ||
| 340 | + public boolean isSingleValue() { | ||
| 341 | + return singleValue; | ||
| 342 | + } | ||
| 343 | + | ||
| 344 | + public boolean isBetweenValue() { | ||
| 345 | + return betweenValue; | ||
| 346 | + } | ||
| 347 | + | ||
| 348 | + public boolean isListValue() { | ||
| 349 | + return listValue; | ||
| 350 | + } | ||
| 351 | + | ||
| 352 | + public String getTypeHandler() { | ||
| 353 | + return typeHandler; | ||
| 354 | + } | ||
| 355 | + | ||
| 356 | + protected Criterion(String condition) { | ||
| 357 | + super(); | ||
| 358 | + this.condition = condition; | ||
| 359 | + this.typeHandler = null; | ||
| 360 | + this.noValue = true; | ||
| 361 | + } | ||
| 362 | + | ||
| 363 | + protected Criterion(String condition, Object value, String typeHandler) { | ||
| 364 | + super(); | ||
| 365 | + this.condition = condition; | ||
| 366 | + this.value = value; | ||
| 367 | + this.typeHandler = typeHandler; | ||
| 368 | + if (value instanceof List<?>) { | ||
| 369 | + this.listValue = true; | ||
| 370 | + } else { | ||
| 371 | + this.singleValue = true; | ||
| 372 | + } | ||
| 373 | + } | ||
| 374 | + | ||
| 375 | + protected Criterion(String condition, Object value) { | ||
| 376 | + this(condition, value, null); | ||
| 377 | + } | ||
| 378 | + | ||
| 379 | + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | ||
| 380 | + super(); | ||
| 381 | + this.condition = condition; | ||
| 382 | + this.value = value; | ||
| 383 | + this.secondValue = secondValue; | ||
| 384 | + this.typeHandler = typeHandler; | ||
| 385 | + this.betweenValue = true; | ||
| 386 | + } | ||
| 387 | + | ||
| 388 | + protected Criterion(String condition, Object value, Object secondValue) { | ||
| 389 | + this(condition, value, secondValue, null); | ||
| 390 | + } | ||
| 391 | + } | ||
| 392 | +} | 
- 
请 注册 或 登录 后发表评论