From ab340c8463a0fae542f96a8ce1f99f2c40cd1102 Mon Sep 17 00:00:00 2001 From: brew <76052198@qq.com> Date: Thu, 14 Apr 2016 10:52:18 +0800 Subject: [PATCH] gen new code --- .../tfg/ordbgens/tlt/dao/TLTCoreTickDao.java | 504 ---- .../tfg/ordbgens/tlt/entity/TLTCoreTick.java | 904 ------- .../tlt/entity/TLTCoreTickExample.java | 2135 ----------------- .../ordbgens/tlt/entity/TLTCoreTickKey.java | 92 - .../tlt/mapper/TLTCoreTickMapper.java | 239 -- .../tlt/mapper/TLTCoreTickSqlProvider.java | 592 ----- .../tfg/ordbgens/tlt/dao/TLTCoreTickDao.java | 504 ---- .../tfg/ordbgens/tlt/entity/TLTCoreTick.java | 904 ------- .../tlt/entity/TLTCoreTickExample.java | 2135 ----------------- .../ordbgens/tlt/entity/TLTCoreTickKey.java | 92 - .../tlt/mapper/TLTCoreTickMapper.java | 239 -- .../tlt/mapper/TLTCoreTickSqlProvider.java | 592 ----- 12 files changed, 8932 deletions(-) delete mode 100644 cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/dao/TLTCoreTickDao.java delete mode 100644 cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTick.java delete mode 100644 cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickExample.java delete mode 100644 cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickKey.java delete mode 100644 cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickMapper.java delete mode 100644 cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickSqlProvider.java delete mode 100644 mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/dao/TLTCoreTickDao.java delete mode 100644 mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTick.java delete mode 100644 mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickExample.java delete mode 100644 mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickKey.java delete mode 100644 mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickMapper.java delete mode 100644 mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickSqlProvider.java diff --git a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/dao/TLTCoreTickDao.java b/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/dao/TLTCoreTickDao.java deleted file mode 100644 index a69d825d..00000000 --- a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/dao/TLTCoreTickDao.java +++ /dev/null @@ -1,504 +0,0 @@ -package onight.tfg.ordbgens.tlt.dao; - -import java.sql.Connection; -import java.sql.SQLException; -import java.sql.Statement; -import java.util.ArrayList; -import java.util.List; - -import lombok.Data; - -import org.apache.ibatis.session.SqlSession; -import org.apache.ibatis.session.SqlSessionFactory; -//import org.springframework.transaction.annotation.Transactional; - -import onight.tfg.ordbgens.tlt.entity.TLTCoreTick; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample.Criteria; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickKey; -import onight.tfg.ordbgens.tlt.mapper.TLTCoreTickMapper; -import onight.tfw.ojpa.api.annotations.Tab; -import onight.tfw.ojpa.ordb.ExtendDaoSupper; - - -@Data -@Tab(name="TLT_CORE_TICK") -public class TLTCoreTickDao extends ExtendDaoSupper{ - - private TLTCoreTickMapper mapper; - - private SqlSessionFactory sqlSessionFactory; - - - @Override - public int countByExample(TLTCoreTickExample example) { - return mapper.countByExample(example); - } - - @Override - public int deleteByExample(TLTCoreTickExample example) throws Exception{ - return mapper.deleteByExample(example); - } - - @Override - public int deleteByPrimaryKey(TLTCoreTickKey key) throws Exception{ - return mapper.deleteByPrimaryKey(key); - } - - @Override - public int insert(TLTCoreTick record) throws Exception{ - return mapper.insert(record); - } - - @Override - public int insertSelective(TLTCoreTick record) throws Exception{ - return mapper.insertSelective(record); - } - - @Override - //@Transactional - public int batchUpdate(List records) throws Exception - { - for(TLTCoreTick record : records){ - mapper.updateByPrimaryKeySelective(record); - } - return records.size(); - } - - @Override - //@Transactional - public int batchDelete(List records) throws Exception - { - for(TLTCoreTick record : records){ - mapper.deleteByPrimaryKey(record); - } - return records.size(); - } - - @Override - public List selectByExample(TLTCoreTickExample example) - { - return mapper.selectByExample(example); - } - - @Override - public TLTCoreTick selectByPrimaryKey(TLTCoreTickKey key) - { - return mapper.selectByPrimaryKey(key); - } - - @Override - public List findAll(List records) { - if(records==null||records.size()<=0){ - return mapper.selectByExample(new TLTCoreTickExample()); - } - List list = new ArrayList(); - for(TLTCoreTick record : records){ - TLTCoreTick result = mapper.selectByPrimaryKey(record); - if(result!=null){ - list.add(result); - } - } - return list; - } - - @Override - public int updateByExampleSelective(TLTCoreTick record, TLTCoreTickExample example) throws Exception { - return mapper.updateByExampleSelective(record, example); - } - - @Override - public int updateByExample(TLTCoreTick record, TLTCoreTickExample example) throws Exception{ - return mapper.updateByExample(record, example); - } - - @Override - public int updateByPrimaryKeySelective(TLTCoreTick record) throws Exception{ - return mapper.updateByPrimaryKeySelective(record); - } - - @Override - public int updateByPrimaryKey(TLTCoreTick record) throws Exception{ - return mapper.updateByPrimaryKey(record); - } - - @Override - public int sumByExample(TLTCoreTickExample example) { - return 0; - } - - @Override - public void deleteAll() throws Exception { - mapper.deleteByExample(new TLTCoreTickExample()); - } - - @Override - public TLTCoreTickExample getExample(TLTCoreTick record) { - TLTCoreTickExample example = new TLTCoreTickExample(); - if(record!=null){ - Criteria criteria = example.createCriteria(); - if(record.getTickNo()!=null){ - criteria.andTickNoEqualTo(record.getTickNo()); - } - if(record.getLtype()!=null){ - criteria.andLtypeEqualTo(record.getLtype()); - } - if(record.getMerchantid()!=null){ - criteria.andMerchantidEqualTo(record.getMerchantid()); - } - if(record.getSerialNum()!=null){ - criteria.andSerialNumEqualTo(record.getSerialNum()); - } - if(record.getTickAmounts()!=null){ - criteria.andTickAmountsEqualTo(record.getTickAmounts()); - } - if(record.getTickBetCounts()!=null){ - criteria.andTickBetCountsEqualTo(record.getTickBetCounts()); - } - if(record.getIssueNo()!=null){ - criteria.andIssueNoEqualTo(record.getIssueNo()); - } - if(record.getBetDatetime()!=null){ - criteria.andBetDatetimeEqualTo(record.getBetDatetime()); - } - if(record.getBetIp()!=null){ - criteria.andBetIpEqualTo(record.getBetIp()); - } - if(record.getPrintTime()!=null){ - criteria.andPrintTimeEqualTo(record.getPrintTime()); - } - if(record.getTickStatus()!=null){ - criteria.andTickStatusEqualTo(record.getTickStatus()); - } - if(record.getNotifystatus()!=null){ - criteria.andNotifystatusEqualTo(record.getNotifystatus()); - } - if(record.getRegion()!=null){ - criteria.andRegionEqualTo(record.getRegion()); - } - if(record.getFailreason()!=null){ - criteria.andFailreasonEqualTo(record.getFailreason()); - } - if(record.getMerchantuserid()!=null){ - criteria.andMerchantuseridEqualTo(record.getMerchantuserid()); - } - if(record.getUserId()!=null){ - criteria.andUserIdEqualTo(record.getUserId()); - } - if(record.getAutobetNo()!=null){ - criteria.andAutobetNoEqualTo(record.getAutobetNo()); - } - if(record.getIsAuto()!=null){ - criteria.andIsAutoEqualTo(record.getIsAuto()); - } - if(record.getAutoRefTickno()!=null){ - criteria.andAutoRefTicknoEqualTo(record.getAutoRefTickno()); - } - if(record.getCostFund0()!=null){ - criteria.andCostFund0EqualTo(record.getCostFund0()); - } - if(record.getCostFund1()!=null){ - criteria.andCostFund1EqualTo(record.getCostFund1()); - } - if(record.getCostFund2()!=null){ - criteria.andCostFund2EqualTo(record.getCostFund2()); - } - if(record.getCostFund3()!=null){ - criteria.andCostFund3EqualTo(record.getCostFund3()); - } - if(record.getFundRefId()!=null){ - criteria.andFundRefIdEqualTo(record.getFundRefId()); - } - if(record.getIssueLock()!=null){ - criteria.andIssueLockEqualTo(record.getIssueLock()); - } - - } - return example; - } - - public TLTCoreTick selectOneByExample(TLTCoreTickExample example) - { - example.setLimit(1); - List list=mapper.selectByExample(example); - if(list!=null&&list.size()>0){ - return list.get(0); - } - return null; - } - - @Override - //@Transactional - public int batchInsert(List records) throws Exception { - if(records.size()<=0)return 0; - SqlSession session=sqlSessionFactory.openSession(); - Connection conn = session.getConnection(); - Statement st = null; - int result=0; - try { - conn.setAutoCommit(false); - - st = conn.createStatement(); - StringBuffer sb=new StringBuffer(); - sb.append("INSERT INTO TLT_CORE_TICK() values"); - int i=0; - for (TLTCoreTick record : records) { - if(i>0){ - sb.append(","); - } - i++; - - - sb.append("("); - - if(record.getTickNo()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getTickNo()+"'"); - } - - sb.append(","); - - if(record.getLtype()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getLtype()+"'"); - } - - sb.append(","); - - if(record.getMerchantid()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getMerchantid()+"'"); - } - - sb.append(","); - - if(record.getSerialNum()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getSerialNum()+"'"); - } - - sb.append(","); - - if(record.getTickAmounts()==null){ - sb.append("null"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getTickAmounts()+"'"); - } - - sb.append(","); - - if(record.getTickBetCounts()==null){ - sb.append("null"); - }else{ - // java type==Integer - sb.append("'"+record.getTickBetCounts()+"'"); - } - - sb.append(","); - - if(record.getIssueNo()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getIssueNo()+"'"); - } - - sb.append(","); - - if(record.getBetDatetime()==null){ - sb.append("'"+"CURRENT_TIMESTAMP"+"'"); - }else{ - // java type==Date - java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); - sb.append("'"+sdf.format(record.getBetDatetime())+"'"); - } - - sb.append(","); - - if(record.getBetIp()==null){ - sb.append("'"+""+"'"); - }else{ - // java type==String - sb.append("'"+record.getBetIp()+"'"); - } - - sb.append(","); - - if(record.getPrintTime()==null){ - sb.append("null"); - }else{ - // java type==Date - java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); - sb.append("'"+sdf.format(record.getPrintTime())+"'"); - } - - sb.append(","); - - if(record.getTickStatus()==null){ - sb.append("'"+"0"+"'"); - }else{ - // java type==String - sb.append("'"+record.getTickStatus()+"'"); - } - - sb.append(","); - - if(record.getNotifystatus()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getNotifystatus()+"'"); - } - - sb.append(","); - - if(record.getRegion()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getRegion()+"'"); - } - - sb.append(","); - - if(record.getFailreason()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getFailreason()+"'"); - } - - sb.append(","); - - if(record.getMerchantuserid()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getMerchantuserid()+"'"); - } - - sb.append(","); - - if(record.getUserId()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getUserId()+"'"); - } - - sb.append(","); - - if(record.getAutobetNo()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getAutobetNo()+"'"); - } - - sb.append(","); - - if(record.getIsAuto()==null){ - sb.append("'"+"0"+"'"); - }else{ - // java type==String - sb.append("'"+record.getIsAuto()+"'"); - } - - sb.append(","); - - if(record.getAutoRefTickno()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getAutoRefTickno()+"'"); - } - - sb.append(","); - - if(record.getCostFund0()==null){ - sb.append("'"+"0.000000"+"'"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getCostFund0()+"'"); - } - - sb.append(","); - - if(record.getCostFund1()==null){ - sb.append("'"+"0.000000"+"'"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getCostFund1()+"'"); - } - - sb.append(","); - - if(record.getCostFund2()==null){ - sb.append("'"+"0.000000"+"'"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getCostFund2()+"'"); - } - - sb.append(","); - - if(record.getCostFund3()==null){ - sb.append("'"+"0.000000"+"'"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getCostFund3()+"'"); - } - - sb.append(","); - - if(record.getFundRefId()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getFundRefId()+"'"); - } - - sb.append(","); - - if(record.getIssueLock()==null){ - sb.append("'"+"0"+"'"); - }else{ - // java type==String - sb.append("'"+record.getIssueLock()+"'"); - } - sb.append(")"); - - } - result=st.executeUpdate(sb.toString()); - conn.commit(); - } catch (SQLException e) { - try { - conn.rollback(); - } catch (SQLException e1) { - e1.printStackTrace(); - } - throw e; - }finally{ - if(st!=null){ - try { - st.close(); - } catch (Exception est) { - est.printStackTrace(); - } - } - session.close(); - } - return result; - } - - -} diff --git a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTick.java b/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTick.java deleted file mode 100644 index fe708513..00000000 --- a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTick.java +++ /dev/null @@ -1,904 +0,0 @@ -package onight.tfg.ordbgens.tlt.entity; - -import java.math.BigDecimal; -import java.util.Date; -import lombok.AllArgsConstructor; -import lombok.NoArgsConstructor; -import onight.tfw.ojpa.api.annotations.Tab; -import org.codehaus.jackson.map.annotate.JsonSerialize; - -@Tab(name="TLT_CORE_TICK") -@AllArgsConstructor -@NoArgsConstructor -public class TLTCoreTick extends TLTCoreTickKey { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.LTYPE - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String ltype; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.MERCHANTID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String merchantid; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.SERIAL_NUM - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String serialNum; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.TICK_AMOUNTS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private BigDecimal tickAmounts; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.TICK_BET_COUNTS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private Integer tickBetCounts; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.ISSUE_NO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String issueNo; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.BET_DATETIME - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private Date betDatetime; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.BET_IP - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String betIp; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.PRINT_TIME - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private Date printTime; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.TICK_STATUS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String tickStatus; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.NOTIFYSTATUS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String notifystatus; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.REGION - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String region; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.FAILREASON - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String failreason; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.MERCHANTUSERID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String merchantuserid; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.USER_ID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String userId; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.AUTOBET_NO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String autobetNo; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.IS_AUTO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String isAuto; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String autoRefTickno; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.COST_FUND0 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private BigDecimal costFund0; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.COST_FUND1 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private BigDecimal costFund1; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.COST_FUND2 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private BigDecimal costFund2; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.COST_FUND3 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private BigDecimal costFund3; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.FUND_REF_ID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String fundRefId; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.ISSUE_LOCK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String issueLock; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.LTYPE - * - * @return the value of TLT_CORE_TICK.LTYPE - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getLtype() { - return ltype; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.LTYPE - * - * @param ltype the value for TLT_CORE_TICK.LTYPE - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setLtype(String ltype) { - this.ltype = ltype; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.MERCHANTID - * - * @return the value of TLT_CORE_TICK.MERCHANTID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getMerchantid() { - return merchantid; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.MERCHANTID - * - * @param merchantid the value for TLT_CORE_TICK.MERCHANTID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setMerchantid(String merchantid) { - this.merchantid = merchantid; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.SERIAL_NUM - * - * @return the value of TLT_CORE_TICK.SERIAL_NUM - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getSerialNum() { - return serialNum; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.SERIAL_NUM - * - * @param serialNum the value for TLT_CORE_TICK.SERIAL_NUM - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setSerialNum(String serialNum) { - this.serialNum = serialNum; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.TICK_AMOUNTS - * - * @return the value of TLT_CORE_TICK.TICK_AMOUNTS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public BigDecimal getTickAmounts() { - return tickAmounts; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.TICK_AMOUNTS - * - * @param tickAmounts the value for TLT_CORE_TICK.TICK_AMOUNTS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setTickAmounts(BigDecimal tickAmounts) { - this.tickAmounts = tickAmounts; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.TICK_BET_COUNTS - * - * @return the value of TLT_CORE_TICK.TICK_BET_COUNTS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public Integer getTickBetCounts() { - return tickBetCounts; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.TICK_BET_COUNTS - * - * @param tickBetCounts the value for TLT_CORE_TICK.TICK_BET_COUNTS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setTickBetCounts(Integer tickBetCounts) { - this.tickBetCounts = tickBetCounts; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.ISSUE_NO - * - * @return the value of TLT_CORE_TICK.ISSUE_NO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getIssueNo() { - return issueNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.ISSUE_NO - * - * @param issueNo the value for TLT_CORE_TICK.ISSUE_NO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setIssueNo(String issueNo) { - this.issueNo = issueNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.BET_DATETIME - * - * @return the value of TLT_CORE_TICK.BET_DATETIME - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public Date getBetDatetime() { - return betDatetime; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.BET_DATETIME - * - * @param betDatetime the value for TLT_CORE_TICK.BET_DATETIME - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setBetDatetime(Date betDatetime) { - this.betDatetime = betDatetime; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.BET_IP - * - * @return the value of TLT_CORE_TICK.BET_IP - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getBetIp() { - return betIp; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.BET_IP - * - * @param betIp the value for TLT_CORE_TICK.BET_IP - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setBetIp(String betIp) { - this.betIp = betIp; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.PRINT_TIME - * - * @return the value of TLT_CORE_TICK.PRINT_TIME - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public Date getPrintTime() { - return printTime; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.PRINT_TIME - * - * @param printTime the value for TLT_CORE_TICK.PRINT_TIME - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setPrintTime(Date printTime) { - this.printTime = printTime; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.TICK_STATUS - * - * @return the value of TLT_CORE_TICK.TICK_STATUS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getTickStatus() { - return tickStatus; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.TICK_STATUS - * - * @param tickStatus the value for TLT_CORE_TICK.TICK_STATUS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setTickStatus(String tickStatus) { - this.tickStatus = tickStatus; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.NOTIFYSTATUS - * - * @return the value of TLT_CORE_TICK.NOTIFYSTATUS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getNotifystatus() { - return notifystatus; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.NOTIFYSTATUS - * - * @param notifystatus the value for TLT_CORE_TICK.NOTIFYSTATUS - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setNotifystatus(String notifystatus) { - this.notifystatus = notifystatus; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.REGION - * - * @return the value of TLT_CORE_TICK.REGION - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getRegion() { - return region; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.REGION - * - * @param region the value for TLT_CORE_TICK.REGION - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setRegion(String region) { - this.region = region; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.FAILREASON - * - * @return the value of TLT_CORE_TICK.FAILREASON - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getFailreason() { - return failreason; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.FAILREASON - * - * @param failreason the value for TLT_CORE_TICK.FAILREASON - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setFailreason(String failreason) { - this.failreason = failreason; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.MERCHANTUSERID - * - * @return the value of TLT_CORE_TICK.MERCHANTUSERID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getMerchantuserid() { - return merchantuserid; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.MERCHANTUSERID - * - * @param merchantuserid the value for TLT_CORE_TICK.MERCHANTUSERID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setMerchantuserid(String merchantuserid) { - this.merchantuserid = merchantuserid; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.USER_ID - * - * @return the value of TLT_CORE_TICK.USER_ID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getUserId() { - return userId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.USER_ID - * - * @param userId the value for TLT_CORE_TICK.USER_ID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setUserId(String userId) { - this.userId = userId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.AUTOBET_NO - * - * @return the value of TLT_CORE_TICK.AUTOBET_NO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getAutobetNo() { - return autobetNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.AUTOBET_NO - * - * @param autobetNo the value for TLT_CORE_TICK.AUTOBET_NO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setAutobetNo(String autobetNo) { - this.autobetNo = autobetNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.IS_AUTO - * - * @return the value of TLT_CORE_TICK.IS_AUTO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getIsAuto() { - return isAuto; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.IS_AUTO - * - * @param isAuto the value for TLT_CORE_TICK.IS_AUTO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setIsAuto(String isAuto) { - this.isAuto = isAuto; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @return the value of TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getAutoRefTickno() { - return autoRefTickno; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @param autoRefTickno the value for TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setAutoRefTickno(String autoRefTickno) { - this.autoRefTickno = autoRefTickno; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.COST_FUND0 - * - * @return the value of TLT_CORE_TICK.COST_FUND0 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public BigDecimal getCostFund0() { - return costFund0; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.COST_FUND0 - * - * @param costFund0 the value for TLT_CORE_TICK.COST_FUND0 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setCostFund0(BigDecimal costFund0) { - this.costFund0 = costFund0; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.COST_FUND1 - * - * @return the value of TLT_CORE_TICK.COST_FUND1 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public BigDecimal getCostFund1() { - return costFund1; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.COST_FUND1 - * - * @param costFund1 the value for TLT_CORE_TICK.COST_FUND1 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setCostFund1(BigDecimal costFund1) { - this.costFund1 = costFund1; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.COST_FUND2 - * - * @return the value of TLT_CORE_TICK.COST_FUND2 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public BigDecimal getCostFund2() { - return costFund2; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.COST_FUND2 - * - * @param costFund2 the value for TLT_CORE_TICK.COST_FUND2 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setCostFund2(BigDecimal costFund2) { - this.costFund2 = costFund2; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.COST_FUND3 - * - * @return the value of TLT_CORE_TICK.COST_FUND3 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public BigDecimal getCostFund3() { - return costFund3; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.COST_FUND3 - * - * @param costFund3 the value for TLT_CORE_TICK.COST_FUND3 - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setCostFund3(BigDecimal costFund3) { - this.costFund3 = costFund3; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.FUND_REF_ID - * - * @return the value of TLT_CORE_TICK.FUND_REF_ID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getFundRefId() { - return fundRefId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.FUND_REF_ID - * - * @param fundRefId the value for TLT_CORE_TICK.FUND_REF_ID - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setFundRefId(String fundRefId) { - this.fundRefId = fundRefId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.ISSUE_LOCK - * - * @return the value of TLT_CORE_TICK.ISSUE_LOCK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getIssueLock() { - return issueLock; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.ISSUE_LOCK - * - * @param issueLock the value for TLT_CORE_TICK.ISSUE_LOCK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setIssueLock(String issueLock) { - this.issueLock = issueLock; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - TLTCoreTick other = (TLTCoreTick) that; - return (this.getTickNo() == null ? other.getTickNo() == null : this.getTickNo().equals(other.getTickNo())) - && (this.getLtype() == null ? other.getLtype() == null : this.getLtype().equals(other.getLtype())) - && (this.getMerchantid() == null ? other.getMerchantid() == null : this.getMerchantid().equals(other.getMerchantid())) - && (this.getSerialNum() == null ? other.getSerialNum() == null : this.getSerialNum().equals(other.getSerialNum())) - && (this.getTickAmounts() == null ? other.getTickAmounts() == null : this.getTickAmounts().equals(other.getTickAmounts())) - && (this.getTickBetCounts() == null ? other.getTickBetCounts() == null : this.getTickBetCounts().equals(other.getTickBetCounts())) - && (this.getIssueNo() == null ? other.getIssueNo() == null : this.getIssueNo().equals(other.getIssueNo())) - && (this.getBetDatetime() == null ? other.getBetDatetime() == null : this.getBetDatetime().equals(other.getBetDatetime())) - && (this.getBetIp() == null ? other.getBetIp() == null : this.getBetIp().equals(other.getBetIp())) - && (this.getPrintTime() == null ? other.getPrintTime() == null : this.getPrintTime().equals(other.getPrintTime())) - && (this.getTickStatus() == null ? other.getTickStatus() == null : this.getTickStatus().equals(other.getTickStatus())) - && (this.getNotifystatus() == null ? other.getNotifystatus() == null : this.getNotifystatus().equals(other.getNotifystatus())) - && (this.getRegion() == null ? other.getRegion() == null : this.getRegion().equals(other.getRegion())) - && (this.getFailreason() == null ? other.getFailreason() == null : this.getFailreason().equals(other.getFailreason())) - && (this.getMerchantuserid() == null ? other.getMerchantuserid() == null : this.getMerchantuserid().equals(other.getMerchantuserid())) - && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) - && (this.getAutobetNo() == null ? other.getAutobetNo() == null : this.getAutobetNo().equals(other.getAutobetNo())) - && (this.getIsAuto() == null ? other.getIsAuto() == null : this.getIsAuto().equals(other.getIsAuto())) - && (this.getAutoRefTickno() == null ? other.getAutoRefTickno() == null : this.getAutoRefTickno().equals(other.getAutoRefTickno())) - && (this.getCostFund0() == null ? other.getCostFund0() == null : this.getCostFund0().equals(other.getCostFund0())) - && (this.getCostFund1() == null ? other.getCostFund1() == null : this.getCostFund1().equals(other.getCostFund1())) - && (this.getCostFund2() == null ? other.getCostFund2() == null : this.getCostFund2().equals(other.getCostFund2())) - && (this.getCostFund3() == null ? other.getCostFund3() == null : this.getCostFund3().equals(other.getCostFund3())) - && (this.getFundRefId() == null ? other.getFundRefId() == null : this.getFundRefId().equals(other.getFundRefId())) - && (this.getIssueLock() == null ? other.getIssueLock() == null : this.getIssueLock().equals(other.getIssueLock())); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getTickNo() == null) ? 0 : getTickNo().hashCode()); - result = prime * result + ((getLtype() == null) ? 0 : getLtype().hashCode()); - result = prime * result + ((getMerchantid() == null) ? 0 : getMerchantid().hashCode()); - result = prime * result + ((getSerialNum() == null) ? 0 : getSerialNum().hashCode()); - result = prime * result + ((getTickAmounts() == null) ? 0 : getTickAmounts().hashCode()); - result = prime * result + ((getTickBetCounts() == null) ? 0 : getTickBetCounts().hashCode()); - result = prime * result + ((getIssueNo() == null) ? 0 : getIssueNo().hashCode()); - result = prime * result + ((getBetDatetime() == null) ? 0 : getBetDatetime().hashCode()); - result = prime * result + ((getBetIp() == null) ? 0 : getBetIp().hashCode()); - result = prime * result + ((getPrintTime() == null) ? 0 : getPrintTime().hashCode()); - result = prime * result + ((getTickStatus() == null) ? 0 : getTickStatus().hashCode()); - result = prime * result + ((getNotifystatus() == null) ? 0 : getNotifystatus().hashCode()); - result = prime * result + ((getRegion() == null) ? 0 : getRegion().hashCode()); - result = prime * result + ((getFailreason() == null) ? 0 : getFailreason().hashCode()); - result = prime * result + ((getMerchantuserid() == null) ? 0 : getMerchantuserid().hashCode()); - result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); - result = prime * result + ((getAutobetNo() == null) ? 0 : getAutobetNo().hashCode()); - result = prime * result + ((getIsAuto() == null) ? 0 : getIsAuto().hashCode()); - result = prime * result + ((getAutoRefTickno() == null) ? 0 : getAutoRefTickno().hashCode()); - result = prime * result + ((getCostFund0() == null) ? 0 : getCostFund0().hashCode()); - result = prime * result + ((getCostFund1() == null) ? 0 : getCostFund1().hashCode()); - result = prime * result + ((getCostFund2() == null) ? 0 : getCostFund2().hashCode()); - result = prime * result + ((getCostFund3() == null) ? 0 : getCostFund3().hashCode()); - result = prime * result + ((getFundRefId() == null) ? 0 : getFundRefId().hashCode()); - result = prime * result + ((getIssueLock() == null) ? 0 : getIssueLock().hashCode()); - return result; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", ltype=").append(ltype); - sb.append(", merchantid=").append(merchantid); - sb.append(", serialNum=").append(serialNum); - sb.append(", tickAmounts=").append(tickAmounts); - sb.append(", tickBetCounts=").append(tickBetCounts); - sb.append(", issueNo=").append(issueNo); - sb.append(", betDatetime=").append(betDatetime); - sb.append(", betIp=").append(betIp); - sb.append(", printTime=").append(printTime); - sb.append(", tickStatus=").append(tickStatus); - sb.append(", notifystatus=").append(notifystatus); - sb.append(", region=").append(region); - sb.append(", failreason=").append(failreason); - sb.append(", merchantuserid=").append(merchantuserid); - sb.append(", userId=").append(userId); - sb.append(", autobetNo=").append(autobetNo); - sb.append(", isAuto=").append(isAuto); - sb.append(", autoRefTickno=").append(autoRefTickno); - sb.append(", costFund0=").append(costFund0); - sb.append(", costFund1=").append(costFund1); - sb.append(", costFund2=").append(costFund2); - sb.append(", costFund3=").append(costFund3); - sb.append(", fundRefId=").append(fundRefId); - sb.append(", issueLock=").append(issueLock); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file diff --git a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickExample.java b/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickExample.java deleted file mode 100644 index bea36063..00000000 --- a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickExample.java +++ /dev/null @@ -1,2135 +0,0 @@ -package onight.tfg.ordbgens.tlt.entity; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import lombok.Data; -import lombok.NoArgsConstructor; - -@Data -public class TLTCoreTickExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - protected String orderByClause; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - protected boolean distinct; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - protected List oredCriteria; - - protected int offset; - - protected int limit; - - protected String sumCol; - - protected String groupSelClause; - - protected boolean forUpdate; - - protected String groupByClause; - - String selectCols; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public TLTCoreTickExample() { - oredCriteria = new ArrayList(); - offset = 0; - limit = Integer.MAX_VALUE; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - this.offset= 0; - this.limit= Integer.MAX_VALUE; - this.sumCol=null; - this.groupSelClause=null; - this.groupByClause=null; - this.forUpdate=false; - } - - public void setOffset(int offset) { - this.offset = offset; - } - - public int getOffset() { - return offset; - } - - public void setLimit(int limit) { - this.limit = limit; - } - - public int getLimit() { - return limit; - } - - public void setSumCol(String sumCol) { - this.sumCol = sumCol; - } - - public String getSumCol() { - return sumCol; - } - - public void setGroupSelClause(String groupSelClause) { - this.groupSelClause = groupSelClause; - } - - public String getGroupSelClause() { - return groupSelClause; - } - - public void setForUpdate(boolean forUpdate) { - this.forUpdate = forUpdate; - } - - public boolean isForUpdate() { - return forUpdate; - } - - public void setGroupByClause(String groupByClause) { - this.groupByClause = groupByClause; - } - - public String getGroupByClause() { - return groupByClause; - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Data - public abstract static class GeneratedCriteria { - protected List criteria; - - public GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - public void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - public void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - public void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andTickNoIsNull() { - addCriterion("TICK_NO is null"); - return (Criteria) this; - } - - public Criteria andTickNoIsNotNull() { - addCriterion("TICK_NO is not null"); - return (Criteria) this; - } - - public Criteria andTickNoEqualTo(String value) { - addCriterion("TICK_NO =", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoNotEqualTo(String value) { - addCriterion("TICK_NO <>", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoGreaterThan(String value) { - addCriterion("TICK_NO >", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoGreaterThanOrEqualTo(String value) { - addCriterion("TICK_NO >=", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoLessThan(String value) { - addCriterion("TICK_NO <", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoLessThanOrEqualTo(String value) { - addCriterion("TICK_NO <=", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoLike(String value) { - addCriterion("TICK_NO like", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoNotLike(String value) { - addCriterion("TICK_NO not like", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoIn(List values) { - addCriterion("TICK_NO in", values, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoNotIn(List values) { - addCriterion("TICK_NO not in", values, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoBetween(String value1, String value2) { - addCriterion("TICK_NO between", value1, value2, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoNotBetween(String value1, String value2) { - addCriterion("TICK_NO not between", value1, value2, "tickNo"); - return (Criteria) this; - } - - public Criteria andLtypeIsNull() { - addCriterion("LTYPE is null"); - return (Criteria) this; - } - - public Criteria andLtypeIsNotNull() { - addCriterion("LTYPE is not null"); - return (Criteria) this; - } - - public Criteria andLtypeEqualTo(String value) { - addCriterion("LTYPE =", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeNotEqualTo(String value) { - addCriterion("LTYPE <>", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeGreaterThan(String value) { - addCriterion("LTYPE >", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeGreaterThanOrEqualTo(String value) { - addCriterion("LTYPE >=", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeLessThan(String value) { - addCriterion("LTYPE <", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeLessThanOrEqualTo(String value) { - addCriterion("LTYPE <=", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeLike(String value) { - addCriterion("LTYPE like", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeNotLike(String value) { - addCriterion("LTYPE not like", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeIn(List values) { - addCriterion("LTYPE in", values, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeNotIn(List values) { - addCriterion("LTYPE not in", values, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeBetween(String value1, String value2) { - addCriterion("LTYPE between", value1, value2, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeNotBetween(String value1, String value2) { - addCriterion("LTYPE not between", value1, value2, "ltype"); - return (Criteria) this; - } - - public Criteria andMerchantidIsNull() { - addCriterion("MERCHANTID is null"); - return (Criteria) this; - } - - public Criteria andMerchantidIsNotNull() { - addCriterion("MERCHANTID is not null"); - return (Criteria) this; - } - - public Criteria andMerchantidEqualTo(String value) { - addCriterion("MERCHANTID =", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidNotEqualTo(String value) { - addCriterion("MERCHANTID <>", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidGreaterThan(String value) { - addCriterion("MERCHANTID >", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidGreaterThanOrEqualTo(String value) { - addCriterion("MERCHANTID >=", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidLessThan(String value) { - addCriterion("MERCHANTID <", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidLessThanOrEqualTo(String value) { - addCriterion("MERCHANTID <=", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidLike(String value) { - addCriterion("MERCHANTID like", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidNotLike(String value) { - addCriterion("MERCHANTID not like", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidIn(List values) { - addCriterion("MERCHANTID in", values, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidNotIn(List values) { - addCriterion("MERCHANTID not in", values, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidBetween(String value1, String value2) { - addCriterion("MERCHANTID between", value1, value2, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidNotBetween(String value1, String value2) { - addCriterion("MERCHANTID not between", value1, value2, "merchantid"); - return (Criteria) this; - } - - public Criteria andSerialNumIsNull() { - addCriterion("SERIAL_NUM is null"); - return (Criteria) this; - } - - public Criteria andSerialNumIsNotNull() { - addCriterion("SERIAL_NUM is not null"); - return (Criteria) this; - } - - public Criteria andSerialNumEqualTo(String value) { - addCriterion("SERIAL_NUM =", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumNotEqualTo(String value) { - addCriterion("SERIAL_NUM <>", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumGreaterThan(String value) { - addCriterion("SERIAL_NUM >", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumGreaterThanOrEqualTo(String value) { - addCriterion("SERIAL_NUM >=", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumLessThan(String value) { - addCriterion("SERIAL_NUM <", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumLessThanOrEqualTo(String value) { - addCriterion("SERIAL_NUM <=", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumLike(String value) { - addCriterion("SERIAL_NUM like", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumNotLike(String value) { - addCriterion("SERIAL_NUM not like", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumIn(List values) { - addCriterion("SERIAL_NUM in", values, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumNotIn(List values) { - addCriterion("SERIAL_NUM not in", values, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumBetween(String value1, String value2) { - addCriterion("SERIAL_NUM between", value1, value2, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumNotBetween(String value1, String value2) { - addCriterion("SERIAL_NUM not between", value1, value2, "serialNum"); - return (Criteria) this; - } - - public Criteria andTickAmountsIsNull() { - addCriterion("TICK_AMOUNTS is null"); - return (Criteria) this; - } - - public Criteria andTickAmountsIsNotNull() { - addCriterion("TICK_AMOUNTS is not null"); - return (Criteria) this; - } - - public Criteria andTickAmountsEqualTo(BigDecimal value) { - addCriterion("TICK_AMOUNTS =", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsNotEqualTo(BigDecimal value) { - addCriterion("TICK_AMOUNTS <>", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsGreaterThan(BigDecimal value) { - addCriterion("TICK_AMOUNTS >", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsGreaterThanOrEqualTo(BigDecimal value) { - addCriterion("TICK_AMOUNTS >=", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsLessThan(BigDecimal value) { - addCriterion("TICK_AMOUNTS <", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsLessThanOrEqualTo(BigDecimal value) { - addCriterion("TICK_AMOUNTS <=", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsIn(List values) { - addCriterion("TICK_AMOUNTS in", values, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsNotIn(List values) { - addCriterion("TICK_AMOUNTS not in", values, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("TICK_AMOUNTS between", value1, value2, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsNotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("TICK_AMOUNTS not between", value1, value2, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsIsNull() { - addCriterion("TICK_BET_COUNTS is null"); - return (Criteria) this; - } - - public Criteria andTickBetCountsIsNotNull() { - addCriterion("TICK_BET_COUNTS is not null"); - return (Criteria) this; - } - - public Criteria andTickBetCountsEqualTo(Integer value) { - addCriterion("TICK_BET_COUNTS =", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsNotEqualTo(Integer value) { - addCriterion("TICK_BET_COUNTS <>", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsGreaterThan(Integer value) { - addCriterion("TICK_BET_COUNTS >", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsGreaterThanOrEqualTo(Integer value) { - addCriterion("TICK_BET_COUNTS >=", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsLessThan(Integer value) { - addCriterion("TICK_BET_COUNTS <", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsLessThanOrEqualTo(Integer value) { - addCriterion("TICK_BET_COUNTS <=", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsIn(List values) { - addCriterion("TICK_BET_COUNTS in", values, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsNotIn(List values) { - addCriterion("TICK_BET_COUNTS not in", values, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsBetween(Integer value1, Integer value2) { - addCriterion("TICK_BET_COUNTS between", value1, value2, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsNotBetween(Integer value1, Integer value2) { - addCriterion("TICK_BET_COUNTS not between", value1, value2, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andIssueNoIsNull() { - addCriterion("ISSUE_NO is null"); - return (Criteria) this; - } - - public Criteria andIssueNoIsNotNull() { - addCriterion("ISSUE_NO is not null"); - return (Criteria) this; - } - - public Criteria andIssueNoEqualTo(String value) { - addCriterion("ISSUE_NO =", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoNotEqualTo(String value) { - addCriterion("ISSUE_NO <>", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoGreaterThan(String value) { - addCriterion("ISSUE_NO >", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoGreaterThanOrEqualTo(String value) { - addCriterion("ISSUE_NO >=", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoLessThan(String value) { - addCriterion("ISSUE_NO <", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoLessThanOrEqualTo(String value) { - addCriterion("ISSUE_NO <=", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoLike(String value) { - addCriterion("ISSUE_NO like", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoNotLike(String value) { - addCriterion("ISSUE_NO not like", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoIn(List values) { - addCriterion("ISSUE_NO in", values, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoNotIn(List values) { - addCriterion("ISSUE_NO not in", values, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoBetween(String value1, String value2) { - addCriterion("ISSUE_NO between", value1, value2, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoNotBetween(String value1, String value2) { - addCriterion("ISSUE_NO not between", value1, value2, "issueNo"); - return (Criteria) this; - } - - public Criteria andBetDatetimeIsNull() { - addCriterion("BET_DATETIME is null"); - return (Criteria) this; - } - - public Criteria andBetDatetimeIsNotNull() { - addCriterion("BET_DATETIME is not null"); - return (Criteria) this; - } - - public Criteria andBetDatetimeEqualTo(Date value) { - addCriterion("BET_DATETIME =", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeNotEqualTo(Date value) { - addCriterion("BET_DATETIME <>", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeGreaterThan(Date value) { - addCriterion("BET_DATETIME >", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeGreaterThanOrEqualTo(Date value) { - addCriterion("BET_DATETIME >=", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeLessThan(Date value) { - addCriterion("BET_DATETIME <", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeLessThanOrEqualTo(Date value) { - addCriterion("BET_DATETIME <=", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeIn(List values) { - addCriterion("BET_DATETIME in", values, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeNotIn(List values) { - addCriterion("BET_DATETIME not in", values, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeBetween(Date value1, Date value2) { - addCriterion("BET_DATETIME between", value1, value2, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeNotBetween(Date value1, Date value2) { - addCriterion("BET_DATETIME not between", value1, value2, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetIpIsNull() { - addCriterion("BET_IP is null"); - return (Criteria) this; - } - - public Criteria andBetIpIsNotNull() { - addCriterion("BET_IP is not null"); - return (Criteria) this; - } - - public Criteria andBetIpEqualTo(String value) { - addCriterion("BET_IP =", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpNotEqualTo(String value) { - addCriterion("BET_IP <>", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpGreaterThan(String value) { - addCriterion("BET_IP >", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpGreaterThanOrEqualTo(String value) { - addCriterion("BET_IP >=", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpLessThan(String value) { - addCriterion("BET_IP <", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpLessThanOrEqualTo(String value) { - addCriterion("BET_IP <=", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpLike(String value) { - addCriterion("BET_IP like", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpNotLike(String value) { - addCriterion("BET_IP not like", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpIn(List values) { - addCriterion("BET_IP in", values, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpNotIn(List values) { - addCriterion("BET_IP not in", values, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpBetween(String value1, String value2) { - addCriterion("BET_IP between", value1, value2, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpNotBetween(String value1, String value2) { - addCriterion("BET_IP not between", value1, value2, "betIp"); - return (Criteria) this; - } - - public Criteria andPrintTimeIsNull() { - addCriterion("PRINT_TIME is null"); - return (Criteria) this; - } - - public Criteria andPrintTimeIsNotNull() { - addCriterion("PRINT_TIME is not null"); - return (Criteria) this; - } - - public Criteria andPrintTimeEqualTo(Date value) { - addCriterion("PRINT_TIME =", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeNotEqualTo(Date value) { - addCriterion("PRINT_TIME <>", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeGreaterThan(Date value) { - addCriterion("PRINT_TIME >", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeGreaterThanOrEqualTo(Date value) { - addCriterion("PRINT_TIME >=", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeLessThan(Date value) { - addCriterion("PRINT_TIME <", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeLessThanOrEqualTo(Date value) { - addCriterion("PRINT_TIME <=", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeIn(List values) { - addCriterion("PRINT_TIME in", values, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeNotIn(List values) { - addCriterion("PRINT_TIME not in", values, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeBetween(Date value1, Date value2) { - addCriterion("PRINT_TIME between", value1, value2, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeNotBetween(Date value1, Date value2) { - addCriterion("PRINT_TIME not between", value1, value2, "printTime"); - return (Criteria) this; - } - - public Criteria andTickStatusIsNull() { - addCriterion("TICK_STATUS is null"); - return (Criteria) this; - } - - public Criteria andTickStatusIsNotNull() { - addCriterion("TICK_STATUS is not null"); - return (Criteria) this; - } - - public Criteria andTickStatusEqualTo(String value) { - addCriterion("TICK_STATUS =", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusNotEqualTo(String value) { - addCriterion("TICK_STATUS <>", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusGreaterThan(String value) { - addCriterion("TICK_STATUS >", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusGreaterThanOrEqualTo(String value) { - addCriterion("TICK_STATUS >=", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusLessThan(String value) { - addCriterion("TICK_STATUS <", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusLessThanOrEqualTo(String value) { - addCriterion("TICK_STATUS <=", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusLike(String value) { - addCriterion("TICK_STATUS like", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusNotLike(String value) { - addCriterion("TICK_STATUS not like", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusIn(List values) { - addCriterion("TICK_STATUS in", values, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusNotIn(List values) { - addCriterion("TICK_STATUS not in", values, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusBetween(String value1, String value2) { - addCriterion("TICK_STATUS between", value1, value2, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusNotBetween(String value1, String value2) { - addCriterion("TICK_STATUS not between", value1, value2, "tickStatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusIsNull() { - addCriterion("NOTIFYSTATUS is null"); - return (Criteria) this; - } - - public Criteria andNotifystatusIsNotNull() { - addCriterion("NOTIFYSTATUS is not null"); - return (Criteria) this; - } - - public Criteria andNotifystatusEqualTo(String value) { - addCriterion("NOTIFYSTATUS =", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusNotEqualTo(String value) { - addCriterion("NOTIFYSTATUS <>", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusGreaterThan(String value) { - addCriterion("NOTIFYSTATUS >", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusGreaterThanOrEqualTo(String value) { - addCriterion("NOTIFYSTATUS >=", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusLessThan(String value) { - addCriterion("NOTIFYSTATUS <", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusLessThanOrEqualTo(String value) { - addCriterion("NOTIFYSTATUS <=", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusLike(String value) { - addCriterion("NOTIFYSTATUS like", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusNotLike(String value) { - addCriterion("NOTIFYSTATUS not like", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusIn(List values) { - addCriterion("NOTIFYSTATUS in", values, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusNotIn(List values) { - addCriterion("NOTIFYSTATUS not in", values, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusBetween(String value1, String value2) { - addCriterion("NOTIFYSTATUS between", value1, value2, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusNotBetween(String value1, String value2) { - addCriterion("NOTIFYSTATUS not between", value1, value2, "notifystatus"); - return (Criteria) this; - } - - public Criteria andRegionIsNull() { - addCriterion("REGION is null"); - return (Criteria) this; - } - - public Criteria andRegionIsNotNull() { - addCriterion("REGION is not null"); - return (Criteria) this; - } - - public Criteria andRegionEqualTo(String value) { - addCriterion("REGION =", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionNotEqualTo(String value) { - addCriterion("REGION <>", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionGreaterThan(String value) { - addCriterion("REGION >", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionGreaterThanOrEqualTo(String value) { - addCriterion("REGION >=", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionLessThan(String value) { - addCriterion("REGION <", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionLessThanOrEqualTo(String value) { - addCriterion("REGION <=", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionLike(String value) { - addCriterion("REGION like", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionNotLike(String value) { - addCriterion("REGION not like", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionIn(List values) { - addCriterion("REGION in", values, "region"); - return (Criteria) this; - } - - public Criteria andRegionNotIn(List values) { - addCriterion("REGION not in", values, "region"); - return (Criteria) this; - } - - public Criteria andRegionBetween(String value1, String value2) { - addCriterion("REGION between", value1, value2, "region"); - return (Criteria) this; - } - - public Criteria andRegionNotBetween(String value1, String value2) { - addCriterion("REGION not between", value1, value2, "region"); - return (Criteria) this; - } - - public Criteria andFailreasonIsNull() { - addCriterion("FAILREASON is null"); - return (Criteria) this; - } - - public Criteria andFailreasonIsNotNull() { - addCriterion("FAILREASON is not null"); - return (Criteria) this; - } - - public Criteria andFailreasonEqualTo(String value) { - addCriterion("FAILREASON =", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonNotEqualTo(String value) { - addCriterion("FAILREASON <>", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonGreaterThan(String value) { - addCriterion("FAILREASON >", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonGreaterThanOrEqualTo(String value) { - addCriterion("FAILREASON >=", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonLessThan(String value) { - addCriterion("FAILREASON <", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonLessThanOrEqualTo(String value) { - addCriterion("FAILREASON <=", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonLike(String value) { - addCriterion("FAILREASON like", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonNotLike(String value) { - addCriterion("FAILREASON not like", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonIn(List values) { - addCriterion("FAILREASON in", values, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonNotIn(List values) { - addCriterion("FAILREASON not in", values, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonBetween(String value1, String value2) { - addCriterion("FAILREASON between", value1, value2, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonNotBetween(String value1, String value2) { - addCriterion("FAILREASON not between", value1, value2, "failreason"); - return (Criteria) this; - } - - public Criteria andMerchantuseridIsNull() { - addCriterion("MERCHANTUSERID is null"); - return (Criteria) this; - } - - public Criteria andMerchantuseridIsNotNull() { - addCriterion("MERCHANTUSERID is not null"); - return (Criteria) this; - } - - public Criteria andMerchantuseridEqualTo(String value) { - addCriterion("MERCHANTUSERID =", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridNotEqualTo(String value) { - addCriterion("MERCHANTUSERID <>", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridGreaterThan(String value) { - addCriterion("MERCHANTUSERID >", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridGreaterThanOrEqualTo(String value) { - addCriterion("MERCHANTUSERID >=", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridLessThan(String value) { - addCriterion("MERCHANTUSERID <", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridLessThanOrEqualTo(String value) { - addCriterion("MERCHANTUSERID <=", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridLike(String value) { - addCriterion("MERCHANTUSERID like", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridNotLike(String value) { - addCriterion("MERCHANTUSERID not like", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridIn(List values) { - addCriterion("MERCHANTUSERID in", values, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridNotIn(List values) { - addCriterion("MERCHANTUSERID not in", values, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridBetween(String value1, String value2) { - addCriterion("MERCHANTUSERID between", value1, value2, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridNotBetween(String value1, String value2) { - addCriterion("MERCHANTUSERID not between", value1, value2, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andUserIdIsNull() { - addCriterion("USER_ID is null"); - return (Criteria) this; - } - - public Criteria andUserIdIsNotNull() { - addCriterion("USER_ID is not null"); - return (Criteria) this; - } - - public Criteria andUserIdEqualTo(String value) { - addCriterion("USER_ID =", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotEqualTo(String value) { - addCriterion("USER_ID <>", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThan(String value) { - addCriterion("USER_ID >", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThanOrEqualTo(String value) { - addCriterion("USER_ID >=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThan(String value) { - addCriterion("USER_ID <", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThanOrEqualTo(String value) { - addCriterion("USER_ID <=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLike(String value) { - addCriterion("USER_ID like", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotLike(String value) { - addCriterion("USER_ID not like", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdIn(List values) { - addCriterion("USER_ID in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotIn(List values) { - addCriterion("USER_ID not in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdBetween(String value1, String value2) { - addCriterion("USER_ID between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotBetween(String value1, String value2) { - addCriterion("USER_ID not between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andAutobetNoIsNull() { - addCriterion("AUTOBET_NO is null"); - return (Criteria) this; - } - - public Criteria andAutobetNoIsNotNull() { - addCriterion("AUTOBET_NO is not null"); - return (Criteria) this; - } - - public Criteria andAutobetNoEqualTo(String value) { - addCriterion("AUTOBET_NO =", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoNotEqualTo(String value) { - addCriterion("AUTOBET_NO <>", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoGreaterThan(String value) { - addCriterion("AUTOBET_NO >", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoGreaterThanOrEqualTo(String value) { - addCriterion("AUTOBET_NO >=", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoLessThan(String value) { - addCriterion("AUTOBET_NO <", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoLessThanOrEqualTo(String value) { - addCriterion("AUTOBET_NO <=", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoLike(String value) { - addCriterion("AUTOBET_NO like", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoNotLike(String value) { - addCriterion("AUTOBET_NO not like", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoIn(List values) { - addCriterion("AUTOBET_NO in", values, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoNotIn(List values) { - addCriterion("AUTOBET_NO not in", values, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoBetween(String value1, String value2) { - addCriterion("AUTOBET_NO between", value1, value2, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoNotBetween(String value1, String value2) { - addCriterion("AUTOBET_NO not between", value1, value2, "autobetNo"); - return (Criteria) this; - } - - public Criteria andIsAutoIsNull() { - addCriterion("IS_AUTO is null"); - return (Criteria) this; - } - - public Criteria andIsAutoIsNotNull() { - addCriterion("IS_AUTO is not null"); - return (Criteria) this; - } - - public Criteria andIsAutoEqualTo(String value) { - addCriterion("IS_AUTO =", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoNotEqualTo(String value) { - addCriterion("IS_AUTO <>", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoGreaterThan(String value) { - addCriterion("IS_AUTO >", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoGreaterThanOrEqualTo(String value) { - addCriterion("IS_AUTO >=", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoLessThan(String value) { - addCriterion("IS_AUTO <", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoLessThanOrEqualTo(String value) { - addCriterion("IS_AUTO <=", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoLike(String value) { - addCriterion("IS_AUTO like", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoNotLike(String value) { - addCriterion("IS_AUTO not like", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoIn(List values) { - addCriterion("IS_AUTO in", values, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoNotIn(List values) { - addCriterion("IS_AUTO not in", values, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoBetween(String value1, String value2) { - addCriterion("IS_AUTO between", value1, value2, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoNotBetween(String value1, String value2) { - addCriterion("IS_AUTO not between", value1, value2, "isAuto"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoIsNull() { - addCriterion("AUTO_REF_TICKNO is null"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoIsNotNull() { - addCriterion("AUTO_REF_TICKNO is not null"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoEqualTo(String value) { - addCriterion("AUTO_REF_TICKNO =", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoNotEqualTo(String value) { - addCriterion("AUTO_REF_TICKNO <>", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoGreaterThan(String value) { - addCriterion("AUTO_REF_TICKNO >", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoGreaterThanOrEqualTo(String value) { - addCriterion("AUTO_REF_TICKNO >=", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoLessThan(String value) { - addCriterion("AUTO_REF_TICKNO <", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoLessThanOrEqualTo(String value) { - addCriterion("AUTO_REF_TICKNO <=", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoLike(String value) { - addCriterion("AUTO_REF_TICKNO like", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoNotLike(String value) { - addCriterion("AUTO_REF_TICKNO not like", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoIn(List values) { - addCriterion("AUTO_REF_TICKNO in", values, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoNotIn(List values) { - addCriterion("AUTO_REF_TICKNO not in", values, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoBetween(String value1, String value2) { - addCriterion("AUTO_REF_TICKNO between", value1, value2, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoNotBetween(String value1, String value2) { - addCriterion("AUTO_REF_TICKNO not between", value1, value2, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andCostFund0IsNull() { - addCriterion("COST_FUND0 is null"); - return (Criteria) this; - } - - public Criteria andCostFund0IsNotNull() { - addCriterion("COST_FUND0 is not null"); - return (Criteria) this; - } - - public Criteria andCostFund0EqualTo(BigDecimal value) { - addCriterion("COST_FUND0 =", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0NotEqualTo(BigDecimal value) { - addCriterion("COST_FUND0 <>", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0GreaterThan(BigDecimal value) { - addCriterion("COST_FUND0 >", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0GreaterThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND0 >=", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0LessThan(BigDecimal value) { - addCriterion("COST_FUND0 <", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0LessThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND0 <=", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0In(List values) { - addCriterion("COST_FUND0 in", values, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0NotIn(List values) { - addCriterion("COST_FUND0 not in", values, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0Between(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND0 between", value1, value2, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0NotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND0 not between", value1, value2, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund1IsNull() { - addCriterion("COST_FUND1 is null"); - return (Criteria) this; - } - - public Criteria andCostFund1IsNotNull() { - addCriterion("COST_FUND1 is not null"); - return (Criteria) this; - } - - public Criteria andCostFund1EqualTo(BigDecimal value) { - addCriterion("COST_FUND1 =", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1NotEqualTo(BigDecimal value) { - addCriterion("COST_FUND1 <>", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1GreaterThan(BigDecimal value) { - addCriterion("COST_FUND1 >", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1GreaterThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND1 >=", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1LessThan(BigDecimal value) { - addCriterion("COST_FUND1 <", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1LessThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND1 <=", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1In(List values) { - addCriterion("COST_FUND1 in", values, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1NotIn(List values) { - addCriterion("COST_FUND1 not in", values, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1Between(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND1 between", value1, value2, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1NotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND1 not between", value1, value2, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund2IsNull() { - addCriterion("COST_FUND2 is null"); - return (Criteria) this; - } - - public Criteria andCostFund2IsNotNull() { - addCriterion("COST_FUND2 is not null"); - return (Criteria) this; - } - - public Criteria andCostFund2EqualTo(BigDecimal value) { - addCriterion("COST_FUND2 =", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2NotEqualTo(BigDecimal value) { - addCriterion("COST_FUND2 <>", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2GreaterThan(BigDecimal value) { - addCriterion("COST_FUND2 >", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2GreaterThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND2 >=", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2LessThan(BigDecimal value) { - addCriterion("COST_FUND2 <", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2LessThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND2 <=", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2In(List values) { - addCriterion("COST_FUND2 in", values, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2NotIn(List values) { - addCriterion("COST_FUND2 not in", values, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2Between(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND2 between", value1, value2, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2NotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND2 not between", value1, value2, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund3IsNull() { - addCriterion("COST_FUND3 is null"); - return (Criteria) this; - } - - public Criteria andCostFund3IsNotNull() { - addCriterion("COST_FUND3 is not null"); - return (Criteria) this; - } - - public Criteria andCostFund3EqualTo(BigDecimal value) { - addCriterion("COST_FUND3 =", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3NotEqualTo(BigDecimal value) { - addCriterion("COST_FUND3 <>", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3GreaterThan(BigDecimal value) { - addCriterion("COST_FUND3 >", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3GreaterThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND3 >=", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3LessThan(BigDecimal value) { - addCriterion("COST_FUND3 <", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3LessThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND3 <=", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3In(List values) { - addCriterion("COST_FUND3 in", values, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3NotIn(List values) { - addCriterion("COST_FUND3 not in", values, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3Between(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND3 between", value1, value2, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3NotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND3 not between", value1, value2, "costFund3"); - return (Criteria) this; - } - - public Criteria andFundRefIdIsNull() { - addCriterion("FUND_REF_ID is null"); - return (Criteria) this; - } - - public Criteria andFundRefIdIsNotNull() { - addCriterion("FUND_REF_ID is not null"); - return (Criteria) this; - } - - public Criteria andFundRefIdEqualTo(String value) { - addCriterion("FUND_REF_ID =", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdNotEqualTo(String value) { - addCriterion("FUND_REF_ID <>", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdGreaterThan(String value) { - addCriterion("FUND_REF_ID >", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdGreaterThanOrEqualTo(String value) { - addCriterion("FUND_REF_ID >=", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdLessThan(String value) { - addCriterion("FUND_REF_ID <", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdLessThanOrEqualTo(String value) { - addCriterion("FUND_REF_ID <=", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdLike(String value) { - addCriterion("FUND_REF_ID like", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdNotLike(String value) { - addCriterion("FUND_REF_ID not like", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdIn(List values) { - addCriterion("FUND_REF_ID in", values, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdNotIn(List values) { - addCriterion("FUND_REF_ID not in", values, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdBetween(String value1, String value2) { - addCriterion("FUND_REF_ID between", value1, value2, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdNotBetween(String value1, String value2) { - addCriterion("FUND_REF_ID not between", value1, value2, "fundRefId"); - return (Criteria) this; - } - - public Criteria andIssueLockIsNull() { - addCriterion("ISSUE_LOCK is null"); - return (Criteria) this; - } - - public Criteria andIssueLockIsNotNull() { - addCriterion("ISSUE_LOCK is not null"); - return (Criteria) this; - } - - public Criteria andIssueLockEqualTo(String value) { - addCriterion("ISSUE_LOCK =", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockNotEqualTo(String value) { - addCriterion("ISSUE_LOCK <>", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockGreaterThan(String value) { - addCriterion("ISSUE_LOCK >", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockGreaterThanOrEqualTo(String value) { - addCriterion("ISSUE_LOCK >=", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockLessThan(String value) { - addCriterion("ISSUE_LOCK <", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockLessThanOrEqualTo(String value) { - addCriterion("ISSUE_LOCK <=", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockLike(String value) { - addCriterion("ISSUE_LOCK like", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockNotLike(String value) { - addCriterion("ISSUE_LOCK not like", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockIn(List values) { - addCriterion("ISSUE_LOCK in", values, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockNotIn(List values) { - addCriterion("ISSUE_LOCK not in", values, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockBetween(String value1, String value2) { - addCriterion("ISSUE_LOCK between", value1, value2, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockNotBetween(String value1, String value2) { - addCriterion("ISSUE_LOCK not between", value1, value2, "issueLock"); - return (Criteria) this; - } - - public Criteria andTickNoLikeInsensitive(String value) { - addCriterion("upper(TICK_NO) like", value.toUpperCase(), "tickNo"); - return (Criteria) this; - } - - public Criteria andLtypeLikeInsensitive(String value) { - addCriterion("upper(LTYPE) like", value.toUpperCase(), "ltype"); - return (Criteria) this; - } - - public Criteria andMerchantidLikeInsensitive(String value) { - addCriterion("upper(MERCHANTID) like", value.toUpperCase(), "merchantid"); - return (Criteria) this; - } - - public Criteria andSerialNumLikeInsensitive(String value) { - addCriterion("upper(SERIAL_NUM) like", value.toUpperCase(), "serialNum"); - return (Criteria) this; - } - - public Criteria andIssueNoLikeInsensitive(String value) { - addCriterion("upper(ISSUE_NO) like", value.toUpperCase(), "issueNo"); - return (Criteria) this; - } - - public Criteria andBetIpLikeInsensitive(String value) { - addCriterion("upper(BET_IP) like", value.toUpperCase(), "betIp"); - return (Criteria) this; - } - - public Criteria andTickStatusLikeInsensitive(String value) { - addCriterion("upper(TICK_STATUS) like", value.toUpperCase(), "tickStatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusLikeInsensitive(String value) { - addCriterion("upper(NOTIFYSTATUS) like", value.toUpperCase(), "notifystatus"); - return (Criteria) this; - } - - public Criteria andRegionLikeInsensitive(String value) { - addCriterion("upper(REGION) like", value.toUpperCase(), "region"); - return (Criteria) this; - } - - public Criteria andFailreasonLikeInsensitive(String value) { - addCriterion("upper(FAILREASON) like", value.toUpperCase(), "failreason"); - return (Criteria) this; - } - - public Criteria andMerchantuseridLikeInsensitive(String value) { - addCriterion("upper(MERCHANTUSERID) like", value.toUpperCase(), "merchantuserid"); - return (Criteria) this; - } - - public Criteria andUserIdLikeInsensitive(String value) { - addCriterion("upper(USER_ID) like", value.toUpperCase(), "userId"); - return (Criteria) this; - } - - public Criteria andAutobetNoLikeInsensitive(String value) { - addCriterion("upper(AUTOBET_NO) like", value.toUpperCase(), "autobetNo"); - return (Criteria) this; - } - - public Criteria andIsAutoLikeInsensitive(String value) { - addCriterion("upper(IS_AUTO) like", value.toUpperCase(), "isAuto"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoLikeInsensitive(String value) { - addCriterion("upper(AUTO_REF_TICKNO) like", value.toUpperCase(), "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andFundRefIdLikeInsensitive(String value) { - addCriterion("upper(FUND_REF_ID) like", value.toUpperCase(), "fundRefId"); - return (Criteria) this; - } - - public Criteria andIssueLockLikeInsensitive(String value) { - addCriterion("upper(ISSUE_LOCK) like", value.toUpperCase(), "issueLock"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated do_not_delete_during_merge Mon Apr 11 20:11:18 CST 2016 - */ - public static class Criteria extends GeneratedCriteria { - - public Criteria() { - super(); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Data - @NoArgsConstructor - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - public Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - public Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - public Criterion(String condition, Object value) { - this(condition, value, null); - } - - public Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - public Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickKey.java b/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickKey.java deleted file mode 100644 index b3ca6edc..00000000 --- a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickKey.java +++ /dev/null @@ -1,92 +0,0 @@ -package onight.tfg.ordbgens.tlt.entity; - -import lombok.AllArgsConstructor; -import lombok.NoArgsConstructor; - -@AllArgsConstructor -@NoArgsConstructor -public class TLTCoreTickKey { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.TICK_NO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - private String tickNo; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.TICK_NO - * - * @return the value of TLT_CORE_TICK.TICK_NO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String getTickNo() { - return tickNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.TICK_NO - * - * @param tickNo the value for TLT_CORE_TICK.TICK_NO - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public void setTickNo(String tickNo) { - this.tickNo = tickNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - TLTCoreTickKey other = (TLTCoreTickKey) that; - return (this.getTickNo() == null ? other.getTickNo() == null : this.getTickNo().equals(other.getTickNo())); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getTickNo() == null) ? 0 : getTickNo().hashCode()); - return result; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", tickNo=").append(tickNo); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file diff --git a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickMapper.java b/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickMapper.java deleted file mode 100644 index b9336542..00000000 --- a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickMapper.java +++ /dev/null @@ -1,239 +0,0 @@ -package onight.tfg.ordbgens.tlt.mapper; - -import java.util.List; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTick; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickKey; -import onight.tfw.ojpa.ordb.StaticTableDaoSupport; -import org.apache.ibatis.annotations.Delete; -import org.apache.ibatis.annotations.DeleteProvider; -import org.apache.ibatis.annotations.Insert; -import org.apache.ibatis.annotations.InsertProvider; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Result; -import org.apache.ibatis.annotations.Results; -import org.apache.ibatis.annotations.Select; -import org.apache.ibatis.annotations.SelectProvider; -import org.apache.ibatis.annotations.Update; -import org.apache.ibatis.annotations.UpdateProvider; -import org.apache.ibatis.type.JdbcType; - -public interface TLTCoreTickMapper extends StaticTableDaoSupport { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @SelectProvider(type=TLTCoreTickSqlProvider.class, method="countByExample") - int countByExample(TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @DeleteProvider(type=TLTCoreTickSqlProvider.class, method="deleteByExample") - int deleteByExample(TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Delete({ - "delete from TLT_CORE_TICK", - "where TICK_NO = #{tickNo,jdbcType=VARCHAR}" - }) - int deleteByPrimaryKey(TLTCoreTickKey key); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Insert({ - "insert into TLT_CORE_TICK (TICK_NO, LTYPE, ", - "MERCHANTID, SERIAL_NUM, ", - "TICK_AMOUNTS, TICK_BET_COUNTS, ", - "ISSUE_NO, BET_DATETIME, ", - "BET_IP, PRINT_TIME, ", - "TICK_STATUS, NOTIFYSTATUS, ", - "REGION, FAILREASON, ", - "MERCHANTUSERID, USER_ID, ", - "AUTOBET_NO, IS_AUTO, ", - "AUTO_REF_TICKNO, COST_FUND0, ", - "COST_FUND1, COST_FUND2, ", - "COST_FUND3, FUND_REF_ID, ", - "ISSUE_LOCK)", - "values (#{tickNo,jdbcType=VARCHAR}, #{ltype,jdbcType=VARCHAR}, ", - "#{merchantid,jdbcType=VARCHAR}, #{serialNum,jdbcType=VARCHAR}, ", - "#{tickAmounts,jdbcType=DECIMAL}, #{tickBetCounts,jdbcType=DECIMAL}, ", - "#{issueNo,jdbcType=VARCHAR}, #{betDatetime,jdbcType=TIMESTAMP}, ", - "#{betIp,jdbcType=VARCHAR}, #{printTime,jdbcType=TIMESTAMP}, ", - "#{tickStatus,jdbcType=VARCHAR}, #{notifystatus,jdbcType=VARCHAR}, ", - "#{region,jdbcType=VARCHAR}, #{failreason,jdbcType=VARCHAR}, ", - "#{merchantuserid,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, ", - "#{autobetNo,jdbcType=VARCHAR}, #{isAuto,jdbcType=VARCHAR}, ", - "#{autoRefTickno,jdbcType=VARCHAR}, #{costFund0,jdbcType=DECIMAL}, ", - "#{costFund1,jdbcType=DECIMAL}, #{costFund2,jdbcType=DECIMAL}, ", - "#{costFund3,jdbcType=DECIMAL}, #{fundRefId,jdbcType=VARCHAR}, ", - "#{issueLock,jdbcType=VARCHAR})" - }) - int insert(TLTCoreTick record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @InsertProvider(type=TLTCoreTickSqlProvider.class, method="insertSelective") - int insertSelective(TLTCoreTick record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @SelectProvider(type=TLTCoreTickSqlProvider.class, method="selectByExample") - @Results({ - @Result(column="TICK_NO", property="tickNo", jdbcType=JdbcType.VARCHAR, id=true), - @Result(column="LTYPE", property="ltype", jdbcType=JdbcType.VARCHAR), - @Result(column="MERCHANTID", property="merchantid", jdbcType=JdbcType.VARCHAR), - @Result(column="SERIAL_NUM", property="serialNum", jdbcType=JdbcType.VARCHAR), - @Result(column="TICK_AMOUNTS", property="tickAmounts", jdbcType=JdbcType.DECIMAL), - @Result(column="TICK_BET_COUNTS", property="tickBetCounts", jdbcType=JdbcType.DECIMAL), - @Result(column="ISSUE_NO", property="issueNo", jdbcType=JdbcType.VARCHAR), - @Result(column="BET_DATETIME", property="betDatetime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="BET_IP", property="betIp", jdbcType=JdbcType.VARCHAR), - @Result(column="PRINT_TIME", property="printTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="TICK_STATUS", property="tickStatus", jdbcType=JdbcType.VARCHAR), - @Result(column="NOTIFYSTATUS", property="notifystatus", jdbcType=JdbcType.VARCHAR), - @Result(column="REGION", property="region", jdbcType=JdbcType.VARCHAR), - @Result(column="FAILREASON", property="failreason", jdbcType=JdbcType.VARCHAR), - @Result(column="MERCHANTUSERID", property="merchantuserid", jdbcType=JdbcType.VARCHAR), - @Result(column="USER_ID", property="userId", jdbcType=JdbcType.VARCHAR), - @Result(column="AUTOBET_NO", property="autobetNo", jdbcType=JdbcType.VARCHAR), - @Result(column="IS_AUTO", property="isAuto", jdbcType=JdbcType.VARCHAR), - @Result(column="AUTO_REF_TICKNO", property="autoRefTickno", jdbcType=JdbcType.VARCHAR), - @Result(column="COST_FUND0", property="costFund0", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND1", property="costFund1", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND2", property="costFund2", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND3", property="costFund3", jdbcType=JdbcType.DECIMAL), - @Result(column="FUND_REF_ID", property="fundRefId", jdbcType=JdbcType.VARCHAR), - @Result(column="ISSUE_LOCK", property="issueLock", jdbcType=JdbcType.VARCHAR) - }) - List selectByExample(TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Select({ - "select", - "TICK_NO, LTYPE, MERCHANTID, SERIAL_NUM, TICK_AMOUNTS, TICK_BET_COUNTS, ISSUE_NO, ", - "BET_DATETIME, BET_IP, PRINT_TIME, TICK_STATUS, NOTIFYSTATUS, REGION, FAILREASON, ", - "MERCHANTUSERID, USER_ID, AUTOBET_NO, IS_AUTO, AUTO_REF_TICKNO, COST_FUND0, COST_FUND1, ", - "COST_FUND2, COST_FUND3, FUND_REF_ID, ISSUE_LOCK", - "from TLT_CORE_TICK", - "where TICK_NO = #{tickNo,jdbcType=VARCHAR}" - }) - @Results({ - @Result(column="TICK_NO", property="tickNo", jdbcType=JdbcType.VARCHAR, id=true), - @Result(column="LTYPE", property="ltype", jdbcType=JdbcType.VARCHAR), - @Result(column="MERCHANTID", property="merchantid", jdbcType=JdbcType.VARCHAR), - @Result(column="SERIAL_NUM", property="serialNum", jdbcType=JdbcType.VARCHAR), - @Result(column="TICK_AMOUNTS", property="tickAmounts", jdbcType=JdbcType.DECIMAL), - @Result(column="TICK_BET_COUNTS", property="tickBetCounts", jdbcType=JdbcType.DECIMAL), - @Result(column="ISSUE_NO", property="issueNo", jdbcType=JdbcType.VARCHAR), - @Result(column="BET_DATETIME", property="betDatetime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="BET_IP", property="betIp", jdbcType=JdbcType.VARCHAR), - @Result(column="PRINT_TIME", property="printTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="TICK_STATUS", property="tickStatus", jdbcType=JdbcType.VARCHAR), - @Result(column="NOTIFYSTATUS", property="notifystatus", jdbcType=JdbcType.VARCHAR), - @Result(column="REGION", property="region", jdbcType=JdbcType.VARCHAR), - @Result(column="FAILREASON", property="failreason", jdbcType=JdbcType.VARCHAR), - @Result(column="MERCHANTUSERID", property="merchantuserid", jdbcType=JdbcType.VARCHAR), - @Result(column="USER_ID", property="userId", jdbcType=JdbcType.VARCHAR), - @Result(column="AUTOBET_NO", property="autobetNo", jdbcType=JdbcType.VARCHAR), - @Result(column="IS_AUTO", property="isAuto", jdbcType=JdbcType.VARCHAR), - @Result(column="AUTO_REF_TICKNO", property="autoRefTickno", jdbcType=JdbcType.VARCHAR), - @Result(column="COST_FUND0", property="costFund0", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND1", property="costFund1", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND2", property="costFund2", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND3", property="costFund3", jdbcType=JdbcType.DECIMAL), - @Result(column="FUND_REF_ID", property="fundRefId", jdbcType=JdbcType.VARCHAR), - @Result(column="ISSUE_LOCK", property="issueLock", jdbcType=JdbcType.VARCHAR) - }) - TLTCoreTick selectByPrimaryKey(TLTCoreTickKey key); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @UpdateProvider(type=TLTCoreTickSqlProvider.class, method="updateByExampleSelective") - int updateByExampleSelective(@Param("record") TLTCoreTick record, @Param("example") TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @UpdateProvider(type=TLTCoreTickSqlProvider.class, method="updateByExample") - int updateByExample(@Param("record") TLTCoreTick record, @Param("example") TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @UpdateProvider(type=TLTCoreTickSqlProvider.class, method="updateByPrimaryKeySelective") - int updateByPrimaryKeySelective(TLTCoreTick record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - @Update({ - "update TLT_CORE_TICK", - "set LTYPE = #{ltype,jdbcType=VARCHAR},", - "MERCHANTID = #{merchantid,jdbcType=VARCHAR},", - "SERIAL_NUM = #{serialNum,jdbcType=VARCHAR},", - "TICK_AMOUNTS = #{tickAmounts,jdbcType=DECIMAL},", - "TICK_BET_COUNTS = #{tickBetCounts,jdbcType=DECIMAL},", - "ISSUE_NO = #{issueNo,jdbcType=VARCHAR},", - "BET_DATETIME = #{betDatetime,jdbcType=TIMESTAMP},", - "BET_IP = #{betIp,jdbcType=VARCHAR},", - "PRINT_TIME = #{printTime,jdbcType=TIMESTAMP},", - "TICK_STATUS = #{tickStatus,jdbcType=VARCHAR},", - "NOTIFYSTATUS = #{notifystatus,jdbcType=VARCHAR},", - "REGION = #{region,jdbcType=VARCHAR},", - "FAILREASON = #{failreason,jdbcType=VARCHAR},", - "MERCHANTUSERID = #{merchantuserid,jdbcType=VARCHAR},", - "USER_ID = #{userId,jdbcType=VARCHAR},", - "AUTOBET_NO = #{autobetNo,jdbcType=VARCHAR},", - "IS_AUTO = #{isAuto,jdbcType=VARCHAR},", - "AUTO_REF_TICKNO = #{autoRefTickno,jdbcType=VARCHAR},", - "COST_FUND0 = #{costFund0,jdbcType=DECIMAL},", - "COST_FUND1 = #{costFund1,jdbcType=DECIMAL},", - "COST_FUND2 = #{costFund2,jdbcType=DECIMAL},", - "COST_FUND3 = #{costFund3,jdbcType=DECIMAL},", - "FUND_REF_ID = #{fundRefId,jdbcType=VARCHAR},", - "ISSUE_LOCK = #{issueLock,jdbcType=VARCHAR}", - "where TICK_NO = #{tickNo,jdbcType=VARCHAR}" - }) - int updateByPrimaryKey(TLTCoreTick record); -} \ No newline at end of file diff --git a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickSqlProvider.java b/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickSqlProvider.java deleted file mode 100644 index 0455e14f..00000000 --- a/cmysqlimpl/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickSqlProvider.java +++ /dev/null @@ -1,592 +0,0 @@ -package onight.tfg.ordbgens.tlt.mapper; - -import static org.apache.ibatis.jdbc.SqlBuilder.BEGIN; -import static org.apache.ibatis.jdbc.SqlBuilder.DELETE_FROM; -import static org.apache.ibatis.jdbc.SqlBuilder.FROM; -import static org.apache.ibatis.jdbc.SqlBuilder.INSERT_INTO; -import static org.apache.ibatis.jdbc.SqlBuilder.ORDER_BY; -import static org.apache.ibatis.jdbc.SqlBuilder.SELECT; -import static org.apache.ibatis.jdbc.SqlBuilder.SELECT_DISTINCT; -import static org.apache.ibatis.jdbc.SqlBuilder.SET; -import static org.apache.ibatis.jdbc.SqlBuilder.SQL; -import static org.apache.ibatis.jdbc.SqlBuilder.UPDATE; -import static org.apache.ibatis.jdbc.SqlBuilder.VALUES; -import static org.apache.ibatis.jdbc.SqlBuilder.WHERE; - -import java.util.List; -import java.util.Map; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTick; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample.Criteria; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample.Criterion; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample; - -public class TLTCoreTickSqlProvider { - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String countByExample(TLTCoreTickExample example) { - BEGIN(); - SELECT("count(*)"); - FROM("TLT_CORE_TICK"); - applyWhere(example, false); - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String deleteByExample(TLTCoreTickExample example) { - BEGIN(); - DELETE_FROM("TLT_CORE_TICK"); - applyWhere(example, false); - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String insertSelective(TLTCoreTick record) { - BEGIN(); - INSERT_INTO("TLT_CORE_TICK"); - - if (record.getTickNo() != null) { - VALUES("TICK_NO", "#{tickNo,jdbcType=VARCHAR}"); - } - - if (record.getLtype() != null) { - VALUES("LTYPE", "#{ltype,jdbcType=VARCHAR}"); - } - - if (record.getMerchantid() != null) { - VALUES("MERCHANTID", "#{merchantid,jdbcType=VARCHAR}"); - } - - if (record.getSerialNum() != null) { - VALUES("SERIAL_NUM", "#{serialNum,jdbcType=VARCHAR}"); - } - - if (record.getTickAmounts() != null) { - VALUES("TICK_AMOUNTS", "#{tickAmounts,jdbcType=DECIMAL}"); - } - - if (record.getTickBetCounts() != null) { - VALUES("TICK_BET_COUNTS", "#{tickBetCounts,jdbcType=DECIMAL}"); - } - - if (record.getIssueNo() != null) { - VALUES("ISSUE_NO", "#{issueNo,jdbcType=VARCHAR}"); - } - - if (record.getBetDatetime() != null) { - VALUES("BET_DATETIME", "#{betDatetime,jdbcType=TIMESTAMP}"); - } - - if (record.getBetIp() != null) { - VALUES("BET_IP", "#{betIp,jdbcType=VARCHAR}"); - } - - if (record.getPrintTime() != null) { - VALUES("PRINT_TIME", "#{printTime,jdbcType=TIMESTAMP}"); - } - - if (record.getTickStatus() != null) { - VALUES("TICK_STATUS", "#{tickStatus,jdbcType=VARCHAR}"); - } - - if (record.getNotifystatus() != null) { - VALUES("NOTIFYSTATUS", "#{notifystatus,jdbcType=VARCHAR}"); - } - - if (record.getRegion() != null) { - VALUES("REGION", "#{region,jdbcType=VARCHAR}"); - } - - if (record.getFailreason() != null) { - VALUES("FAILREASON", "#{failreason,jdbcType=VARCHAR}"); - } - - if (record.getMerchantuserid() != null) { - VALUES("MERCHANTUSERID", "#{merchantuserid,jdbcType=VARCHAR}"); - } - - if (record.getUserId() != null) { - VALUES("USER_ID", "#{userId,jdbcType=VARCHAR}"); - } - - if (record.getAutobetNo() != null) { - VALUES("AUTOBET_NO", "#{autobetNo,jdbcType=VARCHAR}"); - } - - if (record.getIsAuto() != null) { - VALUES("IS_AUTO", "#{isAuto,jdbcType=VARCHAR}"); - } - - if (record.getAutoRefTickno() != null) { - VALUES("AUTO_REF_TICKNO", "#{autoRefTickno,jdbcType=VARCHAR}"); - } - - if (record.getCostFund0() != null) { - VALUES("COST_FUND0", "#{costFund0,jdbcType=DECIMAL}"); - } - - if (record.getCostFund1() != null) { - VALUES("COST_FUND1", "#{costFund1,jdbcType=DECIMAL}"); - } - - if (record.getCostFund2() != null) { - VALUES("COST_FUND2", "#{costFund2,jdbcType=DECIMAL}"); - } - - if (record.getCostFund3() != null) { - VALUES("COST_FUND3", "#{costFund3,jdbcType=DECIMAL}"); - } - - if (record.getFundRefId() != null) { - VALUES("FUND_REF_ID", "#{fundRefId,jdbcType=VARCHAR}"); - } - - if (record.getIssueLock() != null) { - VALUES("ISSUE_LOCK", "#{issueLock,jdbcType=VARCHAR}"); - } - - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String selectByExample(TLTCoreTickExample example) { - BEGIN(); - if (example != null && example.isDistinct()) { - SELECT_DISTINCT("TICK_NO"); - } else { - SELECT("TICK_NO"); - } - SELECT("LTYPE"); - SELECT("MERCHANTID"); - SELECT("SERIAL_NUM"); - SELECT("TICK_AMOUNTS"); - SELECT("TICK_BET_COUNTS"); - SELECT("ISSUE_NO"); - SELECT("BET_DATETIME"); - SELECT("BET_IP"); - SELECT("PRINT_TIME"); - SELECT("TICK_STATUS"); - SELECT("NOTIFYSTATUS"); - SELECT("REGION"); - SELECT("FAILREASON"); - SELECT("MERCHANTUSERID"); - SELECT("USER_ID"); - SELECT("AUTOBET_NO"); - SELECT("IS_AUTO"); - SELECT("AUTO_REF_TICKNO"); - SELECT("COST_FUND0"); - SELECT("COST_FUND1"); - SELECT("COST_FUND2"); - SELECT("COST_FUND3"); - SELECT("FUND_REF_ID"); - SELECT("ISSUE_LOCK"); - FROM("TLT_CORE_TICK"); - applyWhere(example, false); - - if (example != null && example.getOrderByClause() != null) { - ORDER_BY(example.getOrderByClause()); - } - - if(example!=null&&example.getSelectCols()!=null&&example.getSelectCols().trim().length()>0){ - BEGIN(); - if (example != null && example.isDistinct()) { - SELECT_DISTINCT(example.getSelectCols()); - } else { - SELECT(example.getSelectCols()); - } - applyWhere(example, false); - } - if(example != null){ - String retstr= SQL().concat(" limit "+example.getOffset()+","+example.getLimit()); - if(example.isForUpdate()) { return retstr+" FOR UPDATE " ;} else { return retstr;} - } - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String updateByExampleSelective(Map parameter) { - TLTCoreTick record = (TLTCoreTick) parameter.get("record"); - TLTCoreTickExample example = (TLTCoreTickExample) parameter.get("example"); - - BEGIN(); - UPDATE("TLT_CORE_TICK"); - - if (record.getTickNo() != null) { - SET("TICK_NO = #{record.tickNo,jdbcType=VARCHAR}"); - } - - if (record.getLtype() != null) { - SET("LTYPE = #{record.ltype,jdbcType=VARCHAR}"); - } - - if (record.getMerchantid() != null) { - SET("MERCHANTID = #{record.merchantid,jdbcType=VARCHAR}"); - } - - if (record.getSerialNum() != null) { - SET("SERIAL_NUM = #{record.serialNum,jdbcType=VARCHAR}"); - } - - if (record.getTickAmounts() != null) { - SET("TICK_AMOUNTS = #{record.tickAmounts,jdbcType=DECIMAL}"); - } - - if (record.getTickBetCounts() != null) { - SET("TICK_BET_COUNTS = #{record.tickBetCounts,jdbcType=DECIMAL}"); - } - - if (record.getIssueNo() != null) { - SET("ISSUE_NO = #{record.issueNo,jdbcType=VARCHAR}"); - } - - if (record.getBetDatetime() != null) { - SET("BET_DATETIME = #{record.betDatetime,jdbcType=TIMESTAMP}"); - } - - if (record.getBetIp() != null) { - SET("BET_IP = #{record.betIp,jdbcType=VARCHAR}"); - } - - if (record.getPrintTime() != null) { - SET("PRINT_TIME = #{record.printTime,jdbcType=TIMESTAMP}"); - } - - if (record.getTickStatus() != null) { - SET("TICK_STATUS = #{record.tickStatus,jdbcType=VARCHAR}"); - } - - if (record.getNotifystatus() != null) { - SET("NOTIFYSTATUS = #{record.notifystatus,jdbcType=VARCHAR}"); - } - - if (record.getRegion() != null) { - SET("REGION = #{record.region,jdbcType=VARCHAR}"); - } - - if (record.getFailreason() != null) { - SET("FAILREASON = #{record.failreason,jdbcType=VARCHAR}"); - } - - if (record.getMerchantuserid() != null) { - SET("MERCHANTUSERID = #{record.merchantuserid,jdbcType=VARCHAR}"); - } - - if (record.getUserId() != null) { - SET("USER_ID = #{record.userId,jdbcType=VARCHAR}"); - } - - if (record.getAutobetNo() != null) { - SET("AUTOBET_NO = #{record.autobetNo,jdbcType=VARCHAR}"); - } - - if (record.getIsAuto() != null) { - SET("IS_AUTO = #{record.isAuto,jdbcType=VARCHAR}"); - } - - if (record.getAutoRefTickno() != null) { - SET("AUTO_REF_TICKNO = #{record.autoRefTickno,jdbcType=VARCHAR}"); - } - - if (record.getCostFund0() != null) { - SET("COST_FUND0 = #{record.costFund0,jdbcType=DECIMAL}"); - } - - if (record.getCostFund1() != null) { - SET("COST_FUND1 = #{record.costFund1,jdbcType=DECIMAL}"); - } - - if (record.getCostFund2() != null) { - SET("COST_FUND2 = #{record.costFund2,jdbcType=DECIMAL}"); - } - - if (record.getCostFund3() != null) { - SET("COST_FUND3 = #{record.costFund3,jdbcType=DECIMAL}"); - } - - if (record.getFundRefId() != null) { - SET("FUND_REF_ID = #{record.fundRefId,jdbcType=VARCHAR}"); - } - - if (record.getIssueLock() != null) { - SET("ISSUE_LOCK = #{record.issueLock,jdbcType=VARCHAR}"); - } - - applyWhere(example, true); - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String updateByExample(Map parameter) { - BEGIN(); - UPDATE("TLT_CORE_TICK"); - - SET("TICK_NO = #{record.tickNo,jdbcType=VARCHAR}"); - SET("LTYPE = #{record.ltype,jdbcType=VARCHAR}"); - SET("MERCHANTID = #{record.merchantid,jdbcType=VARCHAR}"); - SET("SERIAL_NUM = #{record.serialNum,jdbcType=VARCHAR}"); - SET("TICK_AMOUNTS = #{record.tickAmounts,jdbcType=DECIMAL}"); - SET("TICK_BET_COUNTS = #{record.tickBetCounts,jdbcType=DECIMAL}"); - SET("ISSUE_NO = #{record.issueNo,jdbcType=VARCHAR}"); - SET("BET_DATETIME = #{record.betDatetime,jdbcType=TIMESTAMP}"); - SET("BET_IP = #{record.betIp,jdbcType=VARCHAR}"); - SET("PRINT_TIME = #{record.printTime,jdbcType=TIMESTAMP}"); - SET("TICK_STATUS = #{record.tickStatus,jdbcType=VARCHAR}"); - SET("NOTIFYSTATUS = #{record.notifystatus,jdbcType=VARCHAR}"); - SET("REGION = #{record.region,jdbcType=VARCHAR}"); - SET("FAILREASON = #{record.failreason,jdbcType=VARCHAR}"); - SET("MERCHANTUSERID = #{record.merchantuserid,jdbcType=VARCHAR}"); - SET("USER_ID = #{record.userId,jdbcType=VARCHAR}"); - SET("AUTOBET_NO = #{record.autobetNo,jdbcType=VARCHAR}"); - SET("IS_AUTO = #{record.isAuto,jdbcType=VARCHAR}"); - SET("AUTO_REF_TICKNO = #{record.autoRefTickno,jdbcType=VARCHAR}"); - SET("COST_FUND0 = #{record.costFund0,jdbcType=DECIMAL}"); - SET("COST_FUND1 = #{record.costFund1,jdbcType=DECIMAL}"); - SET("COST_FUND2 = #{record.costFund2,jdbcType=DECIMAL}"); - SET("COST_FUND3 = #{record.costFund3,jdbcType=DECIMAL}"); - SET("FUND_REF_ID = #{record.fundRefId,jdbcType=VARCHAR}"); - SET("ISSUE_LOCK = #{record.issueLock,jdbcType=VARCHAR}"); - - TLTCoreTickExample example = (TLTCoreTickExample) parameter.get("example"); - applyWhere(example, true); - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - public String updateByPrimaryKeySelective(TLTCoreTick record) { - BEGIN(); - UPDATE("TLT_CORE_TICK"); - - if (record.getLtype() != null) { - SET("LTYPE = #{ltype,jdbcType=VARCHAR}"); - } - - if (record.getMerchantid() != null) { - SET("MERCHANTID = #{merchantid,jdbcType=VARCHAR}"); - } - - if (record.getSerialNum() != null) { - SET("SERIAL_NUM = #{serialNum,jdbcType=VARCHAR}"); - } - - if (record.getTickAmounts() != null) { - SET("TICK_AMOUNTS = #{tickAmounts,jdbcType=DECIMAL}"); - } - - if (record.getTickBetCounts() != null) { - SET("TICK_BET_COUNTS = #{tickBetCounts,jdbcType=DECIMAL}"); - } - - if (record.getIssueNo() != null) { - SET("ISSUE_NO = #{issueNo,jdbcType=VARCHAR}"); - } - - if (record.getBetDatetime() != null) { - SET("BET_DATETIME = #{betDatetime,jdbcType=TIMESTAMP}"); - } - - if (record.getBetIp() != null) { - SET("BET_IP = #{betIp,jdbcType=VARCHAR}"); - } - - if (record.getPrintTime() != null) { - SET("PRINT_TIME = #{printTime,jdbcType=TIMESTAMP}"); - } - - if (record.getTickStatus() != null) { - SET("TICK_STATUS = #{tickStatus,jdbcType=VARCHAR}"); - } - - if (record.getNotifystatus() != null) { - SET("NOTIFYSTATUS = #{notifystatus,jdbcType=VARCHAR}"); - } - - if (record.getRegion() != null) { - SET("REGION = #{region,jdbcType=VARCHAR}"); - } - - if (record.getFailreason() != null) { - SET("FAILREASON = #{failreason,jdbcType=VARCHAR}"); - } - - if (record.getMerchantuserid() != null) { - SET("MERCHANTUSERID = #{merchantuserid,jdbcType=VARCHAR}"); - } - - if (record.getUserId() != null) { - SET("USER_ID = #{userId,jdbcType=VARCHAR}"); - } - - if (record.getAutobetNo() != null) { - SET("AUTOBET_NO = #{autobetNo,jdbcType=VARCHAR}"); - } - - if (record.getIsAuto() != null) { - SET("IS_AUTO = #{isAuto,jdbcType=VARCHAR}"); - } - - if (record.getAutoRefTickno() != null) { - SET("AUTO_REF_TICKNO = #{autoRefTickno,jdbcType=VARCHAR}"); - } - - if (record.getCostFund0() != null) { - SET("COST_FUND0 = #{costFund0,jdbcType=DECIMAL}"); - } - - if (record.getCostFund1() != null) { - SET("COST_FUND1 = #{costFund1,jdbcType=DECIMAL}"); - } - - if (record.getCostFund2() != null) { - SET("COST_FUND2 = #{costFund2,jdbcType=DECIMAL}"); - } - - if (record.getCostFund3() != null) { - SET("COST_FUND3 = #{costFund3,jdbcType=DECIMAL}"); - } - - if (record.getFundRefId() != null) { - SET("FUND_REF_ID = #{fundRefId,jdbcType=VARCHAR}"); - } - - if (record.getIssueLock() != null) { - SET("ISSUE_LOCK = #{issueLock,jdbcType=VARCHAR}"); - } - - WHERE("TICK_NO = #{tickNo,jdbcType=VARCHAR}"); - - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:18 CST 2016 - */ - protected void applyWhere(TLTCoreTickExample example, boolean includeExamplePhrase) { - if (example == null) { - return; - } - - String parmPhrase1; - String parmPhrase1_th; - String parmPhrase2; - String parmPhrase2_th; - String parmPhrase3; - String parmPhrase3_th; - if (includeExamplePhrase) { - parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; - parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; - parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; - parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; - parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; - parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; - } else { - parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; - parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; - parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; - parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; - parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; - parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; - } - - StringBuilder sb = new StringBuilder(); - List oredCriteria = example.getOredCriteria(); - boolean firstCriteria = true; - for (int i = 0; i < oredCriteria.size(); i++) { - Criteria criteria = oredCriteria.get(i); - if (criteria.isValid()) { - if (firstCriteria) { - firstCriteria = false; - } else { - sb.append(" or "); - } - - sb.append('('); - List criterions = criteria.getAllCriteria(); - boolean firstCriterion = true; - for (int j = 0; j < criterions.size(); j++) { - Criterion criterion = criterions.get(j); - if (firstCriterion) { - firstCriterion = false; - } else { - sb.append(" and "); - } - - if (criterion.isNoValue()) { - sb.append(criterion.getCondition()); - } else if (criterion.isSingleValue()) { - if (criterion.getTypeHandler() == null) { - sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); - } else { - sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); - } - } else if (criterion.isBetweenValue()) { - if (criterion.getTypeHandler() == null) { - sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); - } else { - sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); - } - } else if (criterion.isListValue()) { - sb.append(criterion.getCondition()); - sb.append(" ("); - List listItems = (List) criterion.getValue(); - boolean comma = false; - for (int k = 0; k < listItems.size(); k++) { - if (comma) { - sb.append(", "); - } else { - comma = true; - } - if (criterion.getTypeHandler() == null) { - sb.append(String.format(parmPhrase3, i, j, k)); - } else { - sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); - } - } - sb.append(')'); - } - } - sb.append(')'); - } - } - - if (sb.length() > 0) { - WHERE(sb.toString()); - } - } -} \ No newline at end of file diff --git a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/dao/TLTCoreTickDao.java b/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/dao/TLTCoreTickDao.java deleted file mode 100644 index a69d825d..00000000 --- a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/dao/TLTCoreTickDao.java +++ /dev/null @@ -1,504 +0,0 @@ -package onight.tfg.ordbgens.tlt.dao; - -import java.sql.Connection; -import java.sql.SQLException; -import java.sql.Statement; -import java.util.ArrayList; -import java.util.List; - -import lombok.Data; - -import org.apache.ibatis.session.SqlSession; -import org.apache.ibatis.session.SqlSessionFactory; -//import org.springframework.transaction.annotation.Transactional; - -import onight.tfg.ordbgens.tlt.entity.TLTCoreTick; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample.Criteria; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickKey; -import onight.tfg.ordbgens.tlt.mapper.TLTCoreTickMapper; -import onight.tfw.ojpa.api.annotations.Tab; -import onight.tfw.ojpa.ordb.ExtendDaoSupper; - - -@Data -@Tab(name="TLT_CORE_TICK") -public class TLTCoreTickDao extends ExtendDaoSupper{ - - private TLTCoreTickMapper mapper; - - private SqlSessionFactory sqlSessionFactory; - - - @Override - public int countByExample(TLTCoreTickExample example) { - return mapper.countByExample(example); - } - - @Override - public int deleteByExample(TLTCoreTickExample example) throws Exception{ - return mapper.deleteByExample(example); - } - - @Override - public int deleteByPrimaryKey(TLTCoreTickKey key) throws Exception{ - return mapper.deleteByPrimaryKey(key); - } - - @Override - public int insert(TLTCoreTick record) throws Exception{ - return mapper.insert(record); - } - - @Override - public int insertSelective(TLTCoreTick record) throws Exception{ - return mapper.insertSelective(record); - } - - @Override - //@Transactional - public int batchUpdate(List records) throws Exception - { - for(TLTCoreTick record : records){ - mapper.updateByPrimaryKeySelective(record); - } - return records.size(); - } - - @Override - //@Transactional - public int batchDelete(List records) throws Exception - { - for(TLTCoreTick record : records){ - mapper.deleteByPrimaryKey(record); - } - return records.size(); - } - - @Override - public List selectByExample(TLTCoreTickExample example) - { - return mapper.selectByExample(example); - } - - @Override - public TLTCoreTick selectByPrimaryKey(TLTCoreTickKey key) - { - return mapper.selectByPrimaryKey(key); - } - - @Override - public List findAll(List records) { - if(records==null||records.size()<=0){ - return mapper.selectByExample(new TLTCoreTickExample()); - } - List list = new ArrayList(); - for(TLTCoreTick record : records){ - TLTCoreTick result = mapper.selectByPrimaryKey(record); - if(result!=null){ - list.add(result); - } - } - return list; - } - - @Override - public int updateByExampleSelective(TLTCoreTick record, TLTCoreTickExample example) throws Exception { - return mapper.updateByExampleSelective(record, example); - } - - @Override - public int updateByExample(TLTCoreTick record, TLTCoreTickExample example) throws Exception{ - return mapper.updateByExample(record, example); - } - - @Override - public int updateByPrimaryKeySelective(TLTCoreTick record) throws Exception{ - return mapper.updateByPrimaryKeySelective(record); - } - - @Override - public int updateByPrimaryKey(TLTCoreTick record) throws Exception{ - return mapper.updateByPrimaryKey(record); - } - - @Override - public int sumByExample(TLTCoreTickExample example) { - return 0; - } - - @Override - public void deleteAll() throws Exception { - mapper.deleteByExample(new TLTCoreTickExample()); - } - - @Override - public TLTCoreTickExample getExample(TLTCoreTick record) { - TLTCoreTickExample example = new TLTCoreTickExample(); - if(record!=null){ - Criteria criteria = example.createCriteria(); - if(record.getTickNo()!=null){ - criteria.andTickNoEqualTo(record.getTickNo()); - } - if(record.getLtype()!=null){ - criteria.andLtypeEqualTo(record.getLtype()); - } - if(record.getMerchantid()!=null){ - criteria.andMerchantidEqualTo(record.getMerchantid()); - } - if(record.getSerialNum()!=null){ - criteria.andSerialNumEqualTo(record.getSerialNum()); - } - if(record.getTickAmounts()!=null){ - criteria.andTickAmountsEqualTo(record.getTickAmounts()); - } - if(record.getTickBetCounts()!=null){ - criteria.andTickBetCountsEqualTo(record.getTickBetCounts()); - } - if(record.getIssueNo()!=null){ - criteria.andIssueNoEqualTo(record.getIssueNo()); - } - if(record.getBetDatetime()!=null){ - criteria.andBetDatetimeEqualTo(record.getBetDatetime()); - } - if(record.getBetIp()!=null){ - criteria.andBetIpEqualTo(record.getBetIp()); - } - if(record.getPrintTime()!=null){ - criteria.andPrintTimeEqualTo(record.getPrintTime()); - } - if(record.getTickStatus()!=null){ - criteria.andTickStatusEqualTo(record.getTickStatus()); - } - if(record.getNotifystatus()!=null){ - criteria.andNotifystatusEqualTo(record.getNotifystatus()); - } - if(record.getRegion()!=null){ - criteria.andRegionEqualTo(record.getRegion()); - } - if(record.getFailreason()!=null){ - criteria.andFailreasonEqualTo(record.getFailreason()); - } - if(record.getMerchantuserid()!=null){ - criteria.andMerchantuseridEqualTo(record.getMerchantuserid()); - } - if(record.getUserId()!=null){ - criteria.andUserIdEqualTo(record.getUserId()); - } - if(record.getAutobetNo()!=null){ - criteria.andAutobetNoEqualTo(record.getAutobetNo()); - } - if(record.getIsAuto()!=null){ - criteria.andIsAutoEqualTo(record.getIsAuto()); - } - if(record.getAutoRefTickno()!=null){ - criteria.andAutoRefTicknoEqualTo(record.getAutoRefTickno()); - } - if(record.getCostFund0()!=null){ - criteria.andCostFund0EqualTo(record.getCostFund0()); - } - if(record.getCostFund1()!=null){ - criteria.andCostFund1EqualTo(record.getCostFund1()); - } - if(record.getCostFund2()!=null){ - criteria.andCostFund2EqualTo(record.getCostFund2()); - } - if(record.getCostFund3()!=null){ - criteria.andCostFund3EqualTo(record.getCostFund3()); - } - if(record.getFundRefId()!=null){ - criteria.andFundRefIdEqualTo(record.getFundRefId()); - } - if(record.getIssueLock()!=null){ - criteria.andIssueLockEqualTo(record.getIssueLock()); - } - - } - return example; - } - - public TLTCoreTick selectOneByExample(TLTCoreTickExample example) - { - example.setLimit(1); - List list=mapper.selectByExample(example); - if(list!=null&&list.size()>0){ - return list.get(0); - } - return null; - } - - @Override - //@Transactional - public int batchInsert(List records) throws Exception { - if(records.size()<=0)return 0; - SqlSession session=sqlSessionFactory.openSession(); - Connection conn = session.getConnection(); - Statement st = null; - int result=0; - try { - conn.setAutoCommit(false); - - st = conn.createStatement(); - StringBuffer sb=new StringBuffer(); - sb.append("INSERT INTO TLT_CORE_TICK() values"); - int i=0; - for (TLTCoreTick record : records) { - if(i>0){ - sb.append(","); - } - i++; - - - sb.append("("); - - if(record.getTickNo()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getTickNo()+"'"); - } - - sb.append(","); - - if(record.getLtype()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getLtype()+"'"); - } - - sb.append(","); - - if(record.getMerchantid()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getMerchantid()+"'"); - } - - sb.append(","); - - if(record.getSerialNum()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getSerialNum()+"'"); - } - - sb.append(","); - - if(record.getTickAmounts()==null){ - sb.append("null"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getTickAmounts()+"'"); - } - - sb.append(","); - - if(record.getTickBetCounts()==null){ - sb.append("null"); - }else{ - // java type==Integer - sb.append("'"+record.getTickBetCounts()+"'"); - } - - sb.append(","); - - if(record.getIssueNo()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getIssueNo()+"'"); - } - - sb.append(","); - - if(record.getBetDatetime()==null){ - sb.append("'"+"CURRENT_TIMESTAMP"+"'"); - }else{ - // java type==Date - java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); - sb.append("'"+sdf.format(record.getBetDatetime())+"'"); - } - - sb.append(","); - - if(record.getBetIp()==null){ - sb.append("'"+""+"'"); - }else{ - // java type==String - sb.append("'"+record.getBetIp()+"'"); - } - - sb.append(","); - - if(record.getPrintTime()==null){ - sb.append("null"); - }else{ - // java type==Date - java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); - sb.append("'"+sdf.format(record.getPrintTime())+"'"); - } - - sb.append(","); - - if(record.getTickStatus()==null){ - sb.append("'"+"0"+"'"); - }else{ - // java type==String - sb.append("'"+record.getTickStatus()+"'"); - } - - sb.append(","); - - if(record.getNotifystatus()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getNotifystatus()+"'"); - } - - sb.append(","); - - if(record.getRegion()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getRegion()+"'"); - } - - sb.append(","); - - if(record.getFailreason()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getFailreason()+"'"); - } - - sb.append(","); - - if(record.getMerchantuserid()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getMerchantuserid()+"'"); - } - - sb.append(","); - - if(record.getUserId()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getUserId()+"'"); - } - - sb.append(","); - - if(record.getAutobetNo()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getAutobetNo()+"'"); - } - - sb.append(","); - - if(record.getIsAuto()==null){ - sb.append("'"+"0"+"'"); - }else{ - // java type==String - sb.append("'"+record.getIsAuto()+"'"); - } - - sb.append(","); - - if(record.getAutoRefTickno()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getAutoRefTickno()+"'"); - } - - sb.append(","); - - if(record.getCostFund0()==null){ - sb.append("'"+"0.000000"+"'"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getCostFund0()+"'"); - } - - sb.append(","); - - if(record.getCostFund1()==null){ - sb.append("'"+"0.000000"+"'"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getCostFund1()+"'"); - } - - sb.append(","); - - if(record.getCostFund2()==null){ - sb.append("'"+"0.000000"+"'"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getCostFund2()+"'"); - } - - sb.append(","); - - if(record.getCostFund3()==null){ - sb.append("'"+"0.000000"+"'"); - }else{ - // java type==BigDecimal - sb.append("'"+record.getCostFund3()+"'"); - } - - sb.append(","); - - if(record.getFundRefId()==null){ - sb.append("null"); - }else{ - // java type==String - sb.append("'"+record.getFundRefId()+"'"); - } - - sb.append(","); - - if(record.getIssueLock()==null){ - sb.append("'"+"0"+"'"); - }else{ - // java type==String - sb.append("'"+record.getIssueLock()+"'"); - } - sb.append(")"); - - } - result=st.executeUpdate(sb.toString()); - conn.commit(); - } catch (SQLException e) { - try { - conn.rollback(); - } catch (SQLException e1) { - e1.printStackTrace(); - } - throw e; - }finally{ - if(st!=null){ - try { - st.close(); - } catch (Exception est) { - est.printStackTrace(); - } - } - session.close(); - } - return result; - } - - -} diff --git a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTick.java b/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTick.java deleted file mode 100644 index 64b5fd88..00000000 --- a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTick.java +++ /dev/null @@ -1,904 +0,0 @@ -package onight.tfg.ordbgens.tlt.entity; - -import java.math.BigDecimal; -import java.util.Date; -import lombok.AllArgsConstructor; -import lombok.NoArgsConstructor; -import onight.tfw.ojpa.api.annotations.Tab; -import org.codehaus.jackson.map.annotate.JsonSerialize; - -@Tab(name="TLT_CORE_TICK") -@AllArgsConstructor -@NoArgsConstructor -public class TLTCoreTick extends TLTCoreTickKey { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.LTYPE - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String ltype; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.MERCHANTID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String merchantid; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.SERIAL_NUM - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String serialNum; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.TICK_AMOUNTS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private BigDecimal tickAmounts; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.TICK_BET_COUNTS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private Integer tickBetCounts; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.ISSUE_NO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String issueNo; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.BET_DATETIME - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private Date betDatetime; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.BET_IP - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String betIp; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.PRINT_TIME - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private Date printTime; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.TICK_STATUS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String tickStatus; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.NOTIFYSTATUS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String notifystatus; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.REGION - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String region; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.FAILREASON - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String failreason; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.MERCHANTUSERID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String merchantuserid; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.USER_ID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String userId; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.AUTOBET_NO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String autobetNo; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.IS_AUTO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String isAuto; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String autoRefTickno; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.COST_FUND0 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private BigDecimal costFund0; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.COST_FUND1 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private BigDecimal costFund1; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.COST_FUND2 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private BigDecimal costFund2; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.COST_FUND3 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private BigDecimal costFund3; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.FUND_REF_ID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String fundRefId; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.ISSUE_LOCK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String issueLock; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.LTYPE - * - * @return the value of TLT_CORE_TICK.LTYPE - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getLtype() { - return ltype; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.LTYPE - * - * @param ltype the value for TLT_CORE_TICK.LTYPE - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setLtype(String ltype) { - this.ltype = ltype; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.MERCHANTID - * - * @return the value of TLT_CORE_TICK.MERCHANTID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getMerchantid() { - return merchantid; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.MERCHANTID - * - * @param merchantid the value for TLT_CORE_TICK.MERCHANTID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setMerchantid(String merchantid) { - this.merchantid = merchantid; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.SERIAL_NUM - * - * @return the value of TLT_CORE_TICK.SERIAL_NUM - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getSerialNum() { - return serialNum; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.SERIAL_NUM - * - * @param serialNum the value for TLT_CORE_TICK.SERIAL_NUM - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setSerialNum(String serialNum) { - this.serialNum = serialNum; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.TICK_AMOUNTS - * - * @return the value of TLT_CORE_TICK.TICK_AMOUNTS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public BigDecimal getTickAmounts() { - return tickAmounts; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.TICK_AMOUNTS - * - * @param tickAmounts the value for TLT_CORE_TICK.TICK_AMOUNTS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setTickAmounts(BigDecimal tickAmounts) { - this.tickAmounts = tickAmounts; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.TICK_BET_COUNTS - * - * @return the value of TLT_CORE_TICK.TICK_BET_COUNTS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public Integer getTickBetCounts() { - return tickBetCounts; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.TICK_BET_COUNTS - * - * @param tickBetCounts the value for TLT_CORE_TICK.TICK_BET_COUNTS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setTickBetCounts(Integer tickBetCounts) { - this.tickBetCounts = tickBetCounts; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.ISSUE_NO - * - * @return the value of TLT_CORE_TICK.ISSUE_NO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getIssueNo() { - return issueNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.ISSUE_NO - * - * @param issueNo the value for TLT_CORE_TICK.ISSUE_NO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setIssueNo(String issueNo) { - this.issueNo = issueNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.BET_DATETIME - * - * @return the value of TLT_CORE_TICK.BET_DATETIME - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public Date getBetDatetime() { - return betDatetime; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.BET_DATETIME - * - * @param betDatetime the value for TLT_CORE_TICK.BET_DATETIME - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setBetDatetime(Date betDatetime) { - this.betDatetime = betDatetime; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.BET_IP - * - * @return the value of TLT_CORE_TICK.BET_IP - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getBetIp() { - return betIp; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.BET_IP - * - * @param betIp the value for TLT_CORE_TICK.BET_IP - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setBetIp(String betIp) { - this.betIp = betIp; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.PRINT_TIME - * - * @return the value of TLT_CORE_TICK.PRINT_TIME - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public Date getPrintTime() { - return printTime; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.PRINT_TIME - * - * @param printTime the value for TLT_CORE_TICK.PRINT_TIME - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setPrintTime(Date printTime) { - this.printTime = printTime; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.TICK_STATUS - * - * @return the value of TLT_CORE_TICK.TICK_STATUS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getTickStatus() { - return tickStatus; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.TICK_STATUS - * - * @param tickStatus the value for TLT_CORE_TICK.TICK_STATUS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setTickStatus(String tickStatus) { - this.tickStatus = tickStatus; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.NOTIFYSTATUS - * - * @return the value of TLT_CORE_TICK.NOTIFYSTATUS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getNotifystatus() { - return notifystatus; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.NOTIFYSTATUS - * - * @param notifystatus the value for TLT_CORE_TICK.NOTIFYSTATUS - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setNotifystatus(String notifystatus) { - this.notifystatus = notifystatus; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.REGION - * - * @return the value of TLT_CORE_TICK.REGION - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getRegion() { - return region; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.REGION - * - * @param region the value for TLT_CORE_TICK.REGION - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setRegion(String region) { - this.region = region; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.FAILREASON - * - * @return the value of TLT_CORE_TICK.FAILREASON - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getFailreason() { - return failreason; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.FAILREASON - * - * @param failreason the value for TLT_CORE_TICK.FAILREASON - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setFailreason(String failreason) { - this.failreason = failreason; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.MERCHANTUSERID - * - * @return the value of TLT_CORE_TICK.MERCHANTUSERID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getMerchantuserid() { - return merchantuserid; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.MERCHANTUSERID - * - * @param merchantuserid the value for TLT_CORE_TICK.MERCHANTUSERID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setMerchantuserid(String merchantuserid) { - this.merchantuserid = merchantuserid; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.USER_ID - * - * @return the value of TLT_CORE_TICK.USER_ID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getUserId() { - return userId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.USER_ID - * - * @param userId the value for TLT_CORE_TICK.USER_ID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setUserId(String userId) { - this.userId = userId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.AUTOBET_NO - * - * @return the value of TLT_CORE_TICK.AUTOBET_NO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getAutobetNo() { - return autobetNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.AUTOBET_NO - * - * @param autobetNo the value for TLT_CORE_TICK.AUTOBET_NO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setAutobetNo(String autobetNo) { - this.autobetNo = autobetNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.IS_AUTO - * - * @return the value of TLT_CORE_TICK.IS_AUTO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getIsAuto() { - return isAuto; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.IS_AUTO - * - * @param isAuto the value for TLT_CORE_TICK.IS_AUTO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setIsAuto(String isAuto) { - this.isAuto = isAuto; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @return the value of TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getAutoRefTickno() { - return autoRefTickno; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @param autoRefTickno the value for TLT_CORE_TICK.AUTO_REF_TICKNO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setAutoRefTickno(String autoRefTickno) { - this.autoRefTickno = autoRefTickno; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.COST_FUND0 - * - * @return the value of TLT_CORE_TICK.COST_FUND0 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public BigDecimal getCostFund0() { - return costFund0; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.COST_FUND0 - * - * @param costFund0 the value for TLT_CORE_TICK.COST_FUND0 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setCostFund0(BigDecimal costFund0) { - this.costFund0 = costFund0; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.COST_FUND1 - * - * @return the value of TLT_CORE_TICK.COST_FUND1 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public BigDecimal getCostFund1() { - return costFund1; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.COST_FUND1 - * - * @param costFund1 the value for TLT_CORE_TICK.COST_FUND1 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setCostFund1(BigDecimal costFund1) { - this.costFund1 = costFund1; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.COST_FUND2 - * - * @return the value of TLT_CORE_TICK.COST_FUND2 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public BigDecimal getCostFund2() { - return costFund2; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.COST_FUND2 - * - * @param costFund2 the value for TLT_CORE_TICK.COST_FUND2 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setCostFund2(BigDecimal costFund2) { - this.costFund2 = costFund2; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.COST_FUND3 - * - * @return the value of TLT_CORE_TICK.COST_FUND3 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public BigDecimal getCostFund3() { - return costFund3; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.COST_FUND3 - * - * @param costFund3 the value for TLT_CORE_TICK.COST_FUND3 - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setCostFund3(BigDecimal costFund3) { - this.costFund3 = costFund3; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.FUND_REF_ID - * - * @return the value of TLT_CORE_TICK.FUND_REF_ID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getFundRefId() { - return fundRefId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.FUND_REF_ID - * - * @param fundRefId the value for TLT_CORE_TICK.FUND_REF_ID - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setFundRefId(String fundRefId) { - this.fundRefId = fundRefId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.ISSUE_LOCK - * - * @return the value of TLT_CORE_TICK.ISSUE_LOCK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getIssueLock() { - return issueLock; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.ISSUE_LOCK - * - * @param issueLock the value for TLT_CORE_TICK.ISSUE_LOCK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setIssueLock(String issueLock) { - this.issueLock = issueLock; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - TLTCoreTick other = (TLTCoreTick) that; - return (this.getTickNo() == null ? other.getTickNo() == null : this.getTickNo().equals(other.getTickNo())) - && (this.getLtype() == null ? other.getLtype() == null : this.getLtype().equals(other.getLtype())) - && (this.getMerchantid() == null ? other.getMerchantid() == null : this.getMerchantid().equals(other.getMerchantid())) - && (this.getSerialNum() == null ? other.getSerialNum() == null : this.getSerialNum().equals(other.getSerialNum())) - && (this.getTickAmounts() == null ? other.getTickAmounts() == null : this.getTickAmounts().equals(other.getTickAmounts())) - && (this.getTickBetCounts() == null ? other.getTickBetCounts() == null : this.getTickBetCounts().equals(other.getTickBetCounts())) - && (this.getIssueNo() == null ? other.getIssueNo() == null : this.getIssueNo().equals(other.getIssueNo())) - && (this.getBetDatetime() == null ? other.getBetDatetime() == null : this.getBetDatetime().equals(other.getBetDatetime())) - && (this.getBetIp() == null ? other.getBetIp() == null : this.getBetIp().equals(other.getBetIp())) - && (this.getPrintTime() == null ? other.getPrintTime() == null : this.getPrintTime().equals(other.getPrintTime())) - && (this.getTickStatus() == null ? other.getTickStatus() == null : this.getTickStatus().equals(other.getTickStatus())) - && (this.getNotifystatus() == null ? other.getNotifystatus() == null : this.getNotifystatus().equals(other.getNotifystatus())) - && (this.getRegion() == null ? other.getRegion() == null : this.getRegion().equals(other.getRegion())) - && (this.getFailreason() == null ? other.getFailreason() == null : this.getFailreason().equals(other.getFailreason())) - && (this.getMerchantuserid() == null ? other.getMerchantuserid() == null : this.getMerchantuserid().equals(other.getMerchantuserid())) - && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) - && (this.getAutobetNo() == null ? other.getAutobetNo() == null : this.getAutobetNo().equals(other.getAutobetNo())) - && (this.getIsAuto() == null ? other.getIsAuto() == null : this.getIsAuto().equals(other.getIsAuto())) - && (this.getAutoRefTickno() == null ? other.getAutoRefTickno() == null : this.getAutoRefTickno().equals(other.getAutoRefTickno())) - && (this.getCostFund0() == null ? other.getCostFund0() == null : this.getCostFund0().equals(other.getCostFund0())) - && (this.getCostFund1() == null ? other.getCostFund1() == null : this.getCostFund1().equals(other.getCostFund1())) - && (this.getCostFund2() == null ? other.getCostFund2() == null : this.getCostFund2().equals(other.getCostFund2())) - && (this.getCostFund3() == null ? other.getCostFund3() == null : this.getCostFund3().equals(other.getCostFund3())) - && (this.getFundRefId() == null ? other.getFundRefId() == null : this.getFundRefId().equals(other.getFundRefId())) - && (this.getIssueLock() == null ? other.getIssueLock() == null : this.getIssueLock().equals(other.getIssueLock())); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getTickNo() == null) ? 0 : getTickNo().hashCode()); - result = prime * result + ((getLtype() == null) ? 0 : getLtype().hashCode()); - result = prime * result + ((getMerchantid() == null) ? 0 : getMerchantid().hashCode()); - result = prime * result + ((getSerialNum() == null) ? 0 : getSerialNum().hashCode()); - result = prime * result + ((getTickAmounts() == null) ? 0 : getTickAmounts().hashCode()); - result = prime * result + ((getTickBetCounts() == null) ? 0 : getTickBetCounts().hashCode()); - result = prime * result + ((getIssueNo() == null) ? 0 : getIssueNo().hashCode()); - result = prime * result + ((getBetDatetime() == null) ? 0 : getBetDatetime().hashCode()); - result = prime * result + ((getBetIp() == null) ? 0 : getBetIp().hashCode()); - result = prime * result + ((getPrintTime() == null) ? 0 : getPrintTime().hashCode()); - result = prime * result + ((getTickStatus() == null) ? 0 : getTickStatus().hashCode()); - result = prime * result + ((getNotifystatus() == null) ? 0 : getNotifystatus().hashCode()); - result = prime * result + ((getRegion() == null) ? 0 : getRegion().hashCode()); - result = prime * result + ((getFailreason() == null) ? 0 : getFailreason().hashCode()); - result = prime * result + ((getMerchantuserid() == null) ? 0 : getMerchantuserid().hashCode()); - result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); - result = prime * result + ((getAutobetNo() == null) ? 0 : getAutobetNo().hashCode()); - result = prime * result + ((getIsAuto() == null) ? 0 : getIsAuto().hashCode()); - result = prime * result + ((getAutoRefTickno() == null) ? 0 : getAutoRefTickno().hashCode()); - result = prime * result + ((getCostFund0() == null) ? 0 : getCostFund0().hashCode()); - result = prime * result + ((getCostFund1() == null) ? 0 : getCostFund1().hashCode()); - result = prime * result + ((getCostFund2() == null) ? 0 : getCostFund2().hashCode()); - result = prime * result + ((getCostFund3() == null) ? 0 : getCostFund3().hashCode()); - result = prime * result + ((getFundRefId() == null) ? 0 : getFundRefId().hashCode()); - result = prime * result + ((getIssueLock() == null) ? 0 : getIssueLock().hashCode()); - return result; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", ltype=").append(ltype); - sb.append(", merchantid=").append(merchantid); - sb.append(", serialNum=").append(serialNum); - sb.append(", tickAmounts=").append(tickAmounts); - sb.append(", tickBetCounts=").append(tickBetCounts); - sb.append(", issueNo=").append(issueNo); - sb.append(", betDatetime=").append(betDatetime); - sb.append(", betIp=").append(betIp); - sb.append(", printTime=").append(printTime); - sb.append(", tickStatus=").append(tickStatus); - sb.append(", notifystatus=").append(notifystatus); - sb.append(", region=").append(region); - sb.append(", failreason=").append(failreason); - sb.append(", merchantuserid=").append(merchantuserid); - sb.append(", userId=").append(userId); - sb.append(", autobetNo=").append(autobetNo); - sb.append(", isAuto=").append(isAuto); - sb.append(", autoRefTickno=").append(autoRefTickno); - sb.append(", costFund0=").append(costFund0); - sb.append(", costFund1=").append(costFund1); - sb.append(", costFund2=").append(costFund2); - sb.append(", costFund3=").append(costFund3); - sb.append(", fundRefId=").append(fundRefId); - sb.append(", issueLock=").append(issueLock); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file diff --git a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickExample.java b/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickExample.java deleted file mode 100644 index 7e7fdeb1..00000000 --- a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickExample.java +++ /dev/null @@ -1,2135 +0,0 @@ -package onight.tfg.ordbgens.tlt.entity; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import lombok.Data; -import lombok.NoArgsConstructor; - -@Data -public class TLTCoreTickExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - protected String orderByClause; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - protected boolean distinct; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - protected List oredCriteria; - - protected int offset; - - protected int limit; - - protected String sumCol; - - protected String groupSelClause; - - protected boolean forUpdate; - - protected String groupByClause; - - String selectCols; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public TLTCoreTickExample() { - oredCriteria = new ArrayList(); - offset = 0; - limit = Integer.MAX_VALUE; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - this.offset= 0; - this.limit= Integer.MAX_VALUE; - this.sumCol=null; - this.groupSelClause=null; - this.groupByClause=null; - this.forUpdate=false; - } - - public void setOffset(int offset) { - this.offset = offset; - } - - public int getOffset() { - return offset; - } - - public void setLimit(int limit) { - this.limit = limit; - } - - public int getLimit() { - return limit; - } - - public void setSumCol(String sumCol) { - this.sumCol = sumCol; - } - - public String getSumCol() { - return sumCol; - } - - public void setGroupSelClause(String groupSelClause) { - this.groupSelClause = groupSelClause; - } - - public String getGroupSelClause() { - return groupSelClause; - } - - public void setForUpdate(boolean forUpdate) { - this.forUpdate = forUpdate; - } - - public boolean isForUpdate() { - return forUpdate; - } - - public void setGroupByClause(String groupByClause) { - this.groupByClause = groupByClause; - } - - public String getGroupByClause() { - return groupByClause; - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Data - public abstract static class GeneratedCriteria { - protected List criteria; - - public GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - public void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - public void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - public void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andTickNoIsNull() { - addCriterion("TICK_NO is null"); - return (Criteria) this; - } - - public Criteria andTickNoIsNotNull() { - addCriterion("TICK_NO is not null"); - return (Criteria) this; - } - - public Criteria andTickNoEqualTo(String value) { - addCriterion("TICK_NO =", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoNotEqualTo(String value) { - addCriterion("TICK_NO <>", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoGreaterThan(String value) { - addCriterion("TICK_NO >", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoGreaterThanOrEqualTo(String value) { - addCriterion("TICK_NO >=", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoLessThan(String value) { - addCriterion("TICK_NO <", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoLessThanOrEqualTo(String value) { - addCriterion("TICK_NO <=", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoLike(String value) { - addCriterion("TICK_NO like", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoNotLike(String value) { - addCriterion("TICK_NO not like", value, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoIn(List values) { - addCriterion("TICK_NO in", values, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoNotIn(List values) { - addCriterion("TICK_NO not in", values, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoBetween(String value1, String value2) { - addCriterion("TICK_NO between", value1, value2, "tickNo"); - return (Criteria) this; - } - - public Criteria andTickNoNotBetween(String value1, String value2) { - addCriterion("TICK_NO not between", value1, value2, "tickNo"); - return (Criteria) this; - } - - public Criteria andLtypeIsNull() { - addCriterion("LTYPE is null"); - return (Criteria) this; - } - - public Criteria andLtypeIsNotNull() { - addCriterion("LTYPE is not null"); - return (Criteria) this; - } - - public Criteria andLtypeEqualTo(String value) { - addCriterion("LTYPE =", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeNotEqualTo(String value) { - addCriterion("LTYPE <>", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeGreaterThan(String value) { - addCriterion("LTYPE >", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeGreaterThanOrEqualTo(String value) { - addCriterion("LTYPE >=", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeLessThan(String value) { - addCriterion("LTYPE <", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeLessThanOrEqualTo(String value) { - addCriterion("LTYPE <=", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeLike(String value) { - addCriterion("LTYPE like", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeNotLike(String value) { - addCriterion("LTYPE not like", value, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeIn(List values) { - addCriterion("LTYPE in", values, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeNotIn(List values) { - addCriterion("LTYPE not in", values, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeBetween(String value1, String value2) { - addCriterion("LTYPE between", value1, value2, "ltype"); - return (Criteria) this; - } - - public Criteria andLtypeNotBetween(String value1, String value2) { - addCriterion("LTYPE not between", value1, value2, "ltype"); - return (Criteria) this; - } - - public Criteria andMerchantidIsNull() { - addCriterion("MERCHANTID is null"); - return (Criteria) this; - } - - public Criteria andMerchantidIsNotNull() { - addCriterion("MERCHANTID is not null"); - return (Criteria) this; - } - - public Criteria andMerchantidEqualTo(String value) { - addCriterion("MERCHANTID =", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidNotEqualTo(String value) { - addCriterion("MERCHANTID <>", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidGreaterThan(String value) { - addCriterion("MERCHANTID >", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidGreaterThanOrEqualTo(String value) { - addCriterion("MERCHANTID >=", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidLessThan(String value) { - addCriterion("MERCHANTID <", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidLessThanOrEqualTo(String value) { - addCriterion("MERCHANTID <=", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidLike(String value) { - addCriterion("MERCHANTID like", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidNotLike(String value) { - addCriterion("MERCHANTID not like", value, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidIn(List values) { - addCriterion("MERCHANTID in", values, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidNotIn(List values) { - addCriterion("MERCHANTID not in", values, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidBetween(String value1, String value2) { - addCriterion("MERCHANTID between", value1, value2, "merchantid"); - return (Criteria) this; - } - - public Criteria andMerchantidNotBetween(String value1, String value2) { - addCriterion("MERCHANTID not between", value1, value2, "merchantid"); - return (Criteria) this; - } - - public Criteria andSerialNumIsNull() { - addCriterion("SERIAL_NUM is null"); - return (Criteria) this; - } - - public Criteria andSerialNumIsNotNull() { - addCriterion("SERIAL_NUM is not null"); - return (Criteria) this; - } - - public Criteria andSerialNumEqualTo(String value) { - addCriterion("SERIAL_NUM =", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumNotEqualTo(String value) { - addCriterion("SERIAL_NUM <>", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumGreaterThan(String value) { - addCriterion("SERIAL_NUM >", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumGreaterThanOrEqualTo(String value) { - addCriterion("SERIAL_NUM >=", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumLessThan(String value) { - addCriterion("SERIAL_NUM <", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumLessThanOrEqualTo(String value) { - addCriterion("SERIAL_NUM <=", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumLike(String value) { - addCriterion("SERIAL_NUM like", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumNotLike(String value) { - addCriterion("SERIAL_NUM not like", value, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumIn(List values) { - addCriterion("SERIAL_NUM in", values, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumNotIn(List values) { - addCriterion("SERIAL_NUM not in", values, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumBetween(String value1, String value2) { - addCriterion("SERIAL_NUM between", value1, value2, "serialNum"); - return (Criteria) this; - } - - public Criteria andSerialNumNotBetween(String value1, String value2) { - addCriterion("SERIAL_NUM not between", value1, value2, "serialNum"); - return (Criteria) this; - } - - public Criteria andTickAmountsIsNull() { - addCriterion("TICK_AMOUNTS is null"); - return (Criteria) this; - } - - public Criteria andTickAmountsIsNotNull() { - addCriterion("TICK_AMOUNTS is not null"); - return (Criteria) this; - } - - public Criteria andTickAmountsEqualTo(BigDecimal value) { - addCriterion("TICK_AMOUNTS =", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsNotEqualTo(BigDecimal value) { - addCriterion("TICK_AMOUNTS <>", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsGreaterThan(BigDecimal value) { - addCriterion("TICK_AMOUNTS >", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsGreaterThanOrEqualTo(BigDecimal value) { - addCriterion("TICK_AMOUNTS >=", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsLessThan(BigDecimal value) { - addCriterion("TICK_AMOUNTS <", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsLessThanOrEqualTo(BigDecimal value) { - addCriterion("TICK_AMOUNTS <=", value, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsIn(List values) { - addCriterion("TICK_AMOUNTS in", values, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsNotIn(List values) { - addCriterion("TICK_AMOUNTS not in", values, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("TICK_AMOUNTS between", value1, value2, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickAmountsNotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("TICK_AMOUNTS not between", value1, value2, "tickAmounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsIsNull() { - addCriterion("TICK_BET_COUNTS is null"); - return (Criteria) this; - } - - public Criteria andTickBetCountsIsNotNull() { - addCriterion("TICK_BET_COUNTS is not null"); - return (Criteria) this; - } - - public Criteria andTickBetCountsEqualTo(Integer value) { - addCriterion("TICK_BET_COUNTS =", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsNotEqualTo(Integer value) { - addCriterion("TICK_BET_COUNTS <>", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsGreaterThan(Integer value) { - addCriterion("TICK_BET_COUNTS >", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsGreaterThanOrEqualTo(Integer value) { - addCriterion("TICK_BET_COUNTS >=", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsLessThan(Integer value) { - addCriterion("TICK_BET_COUNTS <", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsLessThanOrEqualTo(Integer value) { - addCriterion("TICK_BET_COUNTS <=", value, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsIn(List values) { - addCriterion("TICK_BET_COUNTS in", values, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsNotIn(List values) { - addCriterion("TICK_BET_COUNTS not in", values, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsBetween(Integer value1, Integer value2) { - addCriterion("TICK_BET_COUNTS between", value1, value2, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andTickBetCountsNotBetween(Integer value1, Integer value2) { - addCriterion("TICK_BET_COUNTS not between", value1, value2, "tickBetCounts"); - return (Criteria) this; - } - - public Criteria andIssueNoIsNull() { - addCriterion("ISSUE_NO is null"); - return (Criteria) this; - } - - public Criteria andIssueNoIsNotNull() { - addCriterion("ISSUE_NO is not null"); - return (Criteria) this; - } - - public Criteria andIssueNoEqualTo(String value) { - addCriterion("ISSUE_NO =", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoNotEqualTo(String value) { - addCriterion("ISSUE_NO <>", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoGreaterThan(String value) { - addCriterion("ISSUE_NO >", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoGreaterThanOrEqualTo(String value) { - addCriterion("ISSUE_NO >=", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoLessThan(String value) { - addCriterion("ISSUE_NO <", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoLessThanOrEqualTo(String value) { - addCriterion("ISSUE_NO <=", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoLike(String value) { - addCriterion("ISSUE_NO like", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoNotLike(String value) { - addCriterion("ISSUE_NO not like", value, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoIn(List values) { - addCriterion("ISSUE_NO in", values, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoNotIn(List values) { - addCriterion("ISSUE_NO not in", values, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoBetween(String value1, String value2) { - addCriterion("ISSUE_NO between", value1, value2, "issueNo"); - return (Criteria) this; - } - - public Criteria andIssueNoNotBetween(String value1, String value2) { - addCriterion("ISSUE_NO not between", value1, value2, "issueNo"); - return (Criteria) this; - } - - public Criteria andBetDatetimeIsNull() { - addCriterion("BET_DATETIME is null"); - return (Criteria) this; - } - - public Criteria andBetDatetimeIsNotNull() { - addCriterion("BET_DATETIME is not null"); - return (Criteria) this; - } - - public Criteria andBetDatetimeEqualTo(Date value) { - addCriterion("BET_DATETIME =", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeNotEqualTo(Date value) { - addCriterion("BET_DATETIME <>", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeGreaterThan(Date value) { - addCriterion("BET_DATETIME >", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeGreaterThanOrEqualTo(Date value) { - addCriterion("BET_DATETIME >=", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeLessThan(Date value) { - addCriterion("BET_DATETIME <", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeLessThanOrEqualTo(Date value) { - addCriterion("BET_DATETIME <=", value, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeIn(List values) { - addCriterion("BET_DATETIME in", values, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeNotIn(List values) { - addCriterion("BET_DATETIME not in", values, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeBetween(Date value1, Date value2) { - addCriterion("BET_DATETIME between", value1, value2, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetDatetimeNotBetween(Date value1, Date value2) { - addCriterion("BET_DATETIME not between", value1, value2, "betDatetime"); - return (Criteria) this; - } - - public Criteria andBetIpIsNull() { - addCriterion("BET_IP is null"); - return (Criteria) this; - } - - public Criteria andBetIpIsNotNull() { - addCriterion("BET_IP is not null"); - return (Criteria) this; - } - - public Criteria andBetIpEqualTo(String value) { - addCriterion("BET_IP =", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpNotEqualTo(String value) { - addCriterion("BET_IP <>", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpGreaterThan(String value) { - addCriterion("BET_IP >", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpGreaterThanOrEqualTo(String value) { - addCriterion("BET_IP >=", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpLessThan(String value) { - addCriterion("BET_IP <", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpLessThanOrEqualTo(String value) { - addCriterion("BET_IP <=", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpLike(String value) { - addCriterion("BET_IP like", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpNotLike(String value) { - addCriterion("BET_IP not like", value, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpIn(List values) { - addCriterion("BET_IP in", values, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpNotIn(List values) { - addCriterion("BET_IP not in", values, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpBetween(String value1, String value2) { - addCriterion("BET_IP between", value1, value2, "betIp"); - return (Criteria) this; - } - - public Criteria andBetIpNotBetween(String value1, String value2) { - addCriterion("BET_IP not between", value1, value2, "betIp"); - return (Criteria) this; - } - - public Criteria andPrintTimeIsNull() { - addCriterion("PRINT_TIME is null"); - return (Criteria) this; - } - - public Criteria andPrintTimeIsNotNull() { - addCriterion("PRINT_TIME is not null"); - return (Criteria) this; - } - - public Criteria andPrintTimeEqualTo(Date value) { - addCriterion("PRINT_TIME =", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeNotEqualTo(Date value) { - addCriterion("PRINT_TIME <>", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeGreaterThan(Date value) { - addCriterion("PRINT_TIME >", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeGreaterThanOrEqualTo(Date value) { - addCriterion("PRINT_TIME >=", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeLessThan(Date value) { - addCriterion("PRINT_TIME <", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeLessThanOrEqualTo(Date value) { - addCriterion("PRINT_TIME <=", value, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeIn(List values) { - addCriterion("PRINT_TIME in", values, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeNotIn(List values) { - addCriterion("PRINT_TIME not in", values, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeBetween(Date value1, Date value2) { - addCriterion("PRINT_TIME between", value1, value2, "printTime"); - return (Criteria) this; - } - - public Criteria andPrintTimeNotBetween(Date value1, Date value2) { - addCriterion("PRINT_TIME not between", value1, value2, "printTime"); - return (Criteria) this; - } - - public Criteria andTickStatusIsNull() { - addCriterion("TICK_STATUS is null"); - return (Criteria) this; - } - - public Criteria andTickStatusIsNotNull() { - addCriterion("TICK_STATUS is not null"); - return (Criteria) this; - } - - public Criteria andTickStatusEqualTo(String value) { - addCriterion("TICK_STATUS =", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusNotEqualTo(String value) { - addCriterion("TICK_STATUS <>", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusGreaterThan(String value) { - addCriterion("TICK_STATUS >", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusGreaterThanOrEqualTo(String value) { - addCriterion("TICK_STATUS >=", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusLessThan(String value) { - addCriterion("TICK_STATUS <", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusLessThanOrEqualTo(String value) { - addCriterion("TICK_STATUS <=", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusLike(String value) { - addCriterion("TICK_STATUS like", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusNotLike(String value) { - addCriterion("TICK_STATUS not like", value, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusIn(List values) { - addCriterion("TICK_STATUS in", values, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusNotIn(List values) { - addCriterion("TICK_STATUS not in", values, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusBetween(String value1, String value2) { - addCriterion("TICK_STATUS between", value1, value2, "tickStatus"); - return (Criteria) this; - } - - public Criteria andTickStatusNotBetween(String value1, String value2) { - addCriterion("TICK_STATUS not between", value1, value2, "tickStatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusIsNull() { - addCriterion("NOTIFYSTATUS is null"); - return (Criteria) this; - } - - public Criteria andNotifystatusIsNotNull() { - addCriterion("NOTIFYSTATUS is not null"); - return (Criteria) this; - } - - public Criteria andNotifystatusEqualTo(String value) { - addCriterion("NOTIFYSTATUS =", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusNotEqualTo(String value) { - addCriterion("NOTIFYSTATUS <>", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusGreaterThan(String value) { - addCriterion("NOTIFYSTATUS >", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusGreaterThanOrEqualTo(String value) { - addCriterion("NOTIFYSTATUS >=", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusLessThan(String value) { - addCriterion("NOTIFYSTATUS <", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusLessThanOrEqualTo(String value) { - addCriterion("NOTIFYSTATUS <=", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusLike(String value) { - addCriterion("NOTIFYSTATUS like", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusNotLike(String value) { - addCriterion("NOTIFYSTATUS not like", value, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusIn(List values) { - addCriterion("NOTIFYSTATUS in", values, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusNotIn(List values) { - addCriterion("NOTIFYSTATUS not in", values, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusBetween(String value1, String value2) { - addCriterion("NOTIFYSTATUS between", value1, value2, "notifystatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusNotBetween(String value1, String value2) { - addCriterion("NOTIFYSTATUS not between", value1, value2, "notifystatus"); - return (Criteria) this; - } - - public Criteria andRegionIsNull() { - addCriterion("REGION is null"); - return (Criteria) this; - } - - public Criteria andRegionIsNotNull() { - addCriterion("REGION is not null"); - return (Criteria) this; - } - - public Criteria andRegionEqualTo(String value) { - addCriterion("REGION =", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionNotEqualTo(String value) { - addCriterion("REGION <>", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionGreaterThan(String value) { - addCriterion("REGION >", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionGreaterThanOrEqualTo(String value) { - addCriterion("REGION >=", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionLessThan(String value) { - addCriterion("REGION <", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionLessThanOrEqualTo(String value) { - addCriterion("REGION <=", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionLike(String value) { - addCriterion("REGION like", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionNotLike(String value) { - addCriterion("REGION not like", value, "region"); - return (Criteria) this; - } - - public Criteria andRegionIn(List values) { - addCriterion("REGION in", values, "region"); - return (Criteria) this; - } - - public Criteria andRegionNotIn(List values) { - addCriterion("REGION not in", values, "region"); - return (Criteria) this; - } - - public Criteria andRegionBetween(String value1, String value2) { - addCriterion("REGION between", value1, value2, "region"); - return (Criteria) this; - } - - public Criteria andRegionNotBetween(String value1, String value2) { - addCriterion("REGION not between", value1, value2, "region"); - return (Criteria) this; - } - - public Criteria andFailreasonIsNull() { - addCriterion("FAILREASON is null"); - return (Criteria) this; - } - - public Criteria andFailreasonIsNotNull() { - addCriterion("FAILREASON is not null"); - return (Criteria) this; - } - - public Criteria andFailreasonEqualTo(String value) { - addCriterion("FAILREASON =", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonNotEqualTo(String value) { - addCriterion("FAILREASON <>", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonGreaterThan(String value) { - addCriterion("FAILREASON >", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonGreaterThanOrEqualTo(String value) { - addCriterion("FAILREASON >=", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonLessThan(String value) { - addCriterion("FAILREASON <", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonLessThanOrEqualTo(String value) { - addCriterion("FAILREASON <=", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonLike(String value) { - addCriterion("FAILREASON like", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonNotLike(String value) { - addCriterion("FAILREASON not like", value, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonIn(List values) { - addCriterion("FAILREASON in", values, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonNotIn(List values) { - addCriterion("FAILREASON not in", values, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonBetween(String value1, String value2) { - addCriterion("FAILREASON between", value1, value2, "failreason"); - return (Criteria) this; - } - - public Criteria andFailreasonNotBetween(String value1, String value2) { - addCriterion("FAILREASON not between", value1, value2, "failreason"); - return (Criteria) this; - } - - public Criteria andMerchantuseridIsNull() { - addCriterion("MERCHANTUSERID is null"); - return (Criteria) this; - } - - public Criteria andMerchantuseridIsNotNull() { - addCriterion("MERCHANTUSERID is not null"); - return (Criteria) this; - } - - public Criteria andMerchantuseridEqualTo(String value) { - addCriterion("MERCHANTUSERID =", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridNotEqualTo(String value) { - addCriterion("MERCHANTUSERID <>", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridGreaterThan(String value) { - addCriterion("MERCHANTUSERID >", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridGreaterThanOrEqualTo(String value) { - addCriterion("MERCHANTUSERID >=", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridLessThan(String value) { - addCriterion("MERCHANTUSERID <", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridLessThanOrEqualTo(String value) { - addCriterion("MERCHANTUSERID <=", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridLike(String value) { - addCriterion("MERCHANTUSERID like", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridNotLike(String value) { - addCriterion("MERCHANTUSERID not like", value, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridIn(List values) { - addCriterion("MERCHANTUSERID in", values, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridNotIn(List values) { - addCriterion("MERCHANTUSERID not in", values, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridBetween(String value1, String value2) { - addCriterion("MERCHANTUSERID between", value1, value2, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andMerchantuseridNotBetween(String value1, String value2) { - addCriterion("MERCHANTUSERID not between", value1, value2, "merchantuserid"); - return (Criteria) this; - } - - public Criteria andUserIdIsNull() { - addCriterion("USER_ID is null"); - return (Criteria) this; - } - - public Criteria andUserIdIsNotNull() { - addCriterion("USER_ID is not null"); - return (Criteria) this; - } - - public Criteria andUserIdEqualTo(String value) { - addCriterion("USER_ID =", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotEqualTo(String value) { - addCriterion("USER_ID <>", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThan(String value) { - addCriterion("USER_ID >", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThanOrEqualTo(String value) { - addCriterion("USER_ID >=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThan(String value) { - addCriterion("USER_ID <", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThanOrEqualTo(String value) { - addCriterion("USER_ID <=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLike(String value) { - addCriterion("USER_ID like", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotLike(String value) { - addCriterion("USER_ID not like", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdIn(List values) { - addCriterion("USER_ID in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotIn(List values) { - addCriterion("USER_ID not in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdBetween(String value1, String value2) { - addCriterion("USER_ID between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotBetween(String value1, String value2) { - addCriterion("USER_ID not between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andAutobetNoIsNull() { - addCriterion("AUTOBET_NO is null"); - return (Criteria) this; - } - - public Criteria andAutobetNoIsNotNull() { - addCriterion("AUTOBET_NO is not null"); - return (Criteria) this; - } - - public Criteria andAutobetNoEqualTo(String value) { - addCriterion("AUTOBET_NO =", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoNotEqualTo(String value) { - addCriterion("AUTOBET_NO <>", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoGreaterThan(String value) { - addCriterion("AUTOBET_NO >", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoGreaterThanOrEqualTo(String value) { - addCriterion("AUTOBET_NO >=", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoLessThan(String value) { - addCriterion("AUTOBET_NO <", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoLessThanOrEqualTo(String value) { - addCriterion("AUTOBET_NO <=", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoLike(String value) { - addCriterion("AUTOBET_NO like", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoNotLike(String value) { - addCriterion("AUTOBET_NO not like", value, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoIn(List values) { - addCriterion("AUTOBET_NO in", values, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoNotIn(List values) { - addCriterion("AUTOBET_NO not in", values, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoBetween(String value1, String value2) { - addCriterion("AUTOBET_NO between", value1, value2, "autobetNo"); - return (Criteria) this; - } - - public Criteria andAutobetNoNotBetween(String value1, String value2) { - addCriterion("AUTOBET_NO not between", value1, value2, "autobetNo"); - return (Criteria) this; - } - - public Criteria andIsAutoIsNull() { - addCriterion("IS_AUTO is null"); - return (Criteria) this; - } - - public Criteria andIsAutoIsNotNull() { - addCriterion("IS_AUTO is not null"); - return (Criteria) this; - } - - public Criteria andIsAutoEqualTo(String value) { - addCriterion("IS_AUTO =", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoNotEqualTo(String value) { - addCriterion("IS_AUTO <>", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoGreaterThan(String value) { - addCriterion("IS_AUTO >", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoGreaterThanOrEqualTo(String value) { - addCriterion("IS_AUTO >=", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoLessThan(String value) { - addCriterion("IS_AUTO <", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoLessThanOrEqualTo(String value) { - addCriterion("IS_AUTO <=", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoLike(String value) { - addCriterion("IS_AUTO like", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoNotLike(String value) { - addCriterion("IS_AUTO not like", value, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoIn(List values) { - addCriterion("IS_AUTO in", values, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoNotIn(List values) { - addCriterion("IS_AUTO not in", values, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoBetween(String value1, String value2) { - addCriterion("IS_AUTO between", value1, value2, "isAuto"); - return (Criteria) this; - } - - public Criteria andIsAutoNotBetween(String value1, String value2) { - addCriterion("IS_AUTO not between", value1, value2, "isAuto"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoIsNull() { - addCriterion("AUTO_REF_TICKNO is null"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoIsNotNull() { - addCriterion("AUTO_REF_TICKNO is not null"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoEqualTo(String value) { - addCriterion("AUTO_REF_TICKNO =", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoNotEqualTo(String value) { - addCriterion("AUTO_REF_TICKNO <>", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoGreaterThan(String value) { - addCriterion("AUTO_REF_TICKNO >", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoGreaterThanOrEqualTo(String value) { - addCriterion("AUTO_REF_TICKNO >=", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoLessThan(String value) { - addCriterion("AUTO_REF_TICKNO <", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoLessThanOrEqualTo(String value) { - addCriterion("AUTO_REF_TICKNO <=", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoLike(String value) { - addCriterion("AUTO_REF_TICKNO like", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoNotLike(String value) { - addCriterion("AUTO_REF_TICKNO not like", value, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoIn(List values) { - addCriterion("AUTO_REF_TICKNO in", values, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoNotIn(List values) { - addCriterion("AUTO_REF_TICKNO not in", values, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoBetween(String value1, String value2) { - addCriterion("AUTO_REF_TICKNO between", value1, value2, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoNotBetween(String value1, String value2) { - addCriterion("AUTO_REF_TICKNO not between", value1, value2, "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andCostFund0IsNull() { - addCriterion("COST_FUND0 is null"); - return (Criteria) this; - } - - public Criteria andCostFund0IsNotNull() { - addCriterion("COST_FUND0 is not null"); - return (Criteria) this; - } - - public Criteria andCostFund0EqualTo(BigDecimal value) { - addCriterion("COST_FUND0 =", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0NotEqualTo(BigDecimal value) { - addCriterion("COST_FUND0 <>", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0GreaterThan(BigDecimal value) { - addCriterion("COST_FUND0 >", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0GreaterThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND0 >=", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0LessThan(BigDecimal value) { - addCriterion("COST_FUND0 <", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0LessThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND0 <=", value, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0In(List values) { - addCriterion("COST_FUND0 in", values, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0NotIn(List values) { - addCriterion("COST_FUND0 not in", values, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0Between(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND0 between", value1, value2, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund0NotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND0 not between", value1, value2, "costFund0"); - return (Criteria) this; - } - - public Criteria andCostFund1IsNull() { - addCriterion("COST_FUND1 is null"); - return (Criteria) this; - } - - public Criteria andCostFund1IsNotNull() { - addCriterion("COST_FUND1 is not null"); - return (Criteria) this; - } - - public Criteria andCostFund1EqualTo(BigDecimal value) { - addCriterion("COST_FUND1 =", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1NotEqualTo(BigDecimal value) { - addCriterion("COST_FUND1 <>", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1GreaterThan(BigDecimal value) { - addCriterion("COST_FUND1 >", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1GreaterThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND1 >=", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1LessThan(BigDecimal value) { - addCriterion("COST_FUND1 <", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1LessThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND1 <=", value, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1In(List values) { - addCriterion("COST_FUND1 in", values, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1NotIn(List values) { - addCriterion("COST_FUND1 not in", values, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1Between(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND1 between", value1, value2, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund1NotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND1 not between", value1, value2, "costFund1"); - return (Criteria) this; - } - - public Criteria andCostFund2IsNull() { - addCriterion("COST_FUND2 is null"); - return (Criteria) this; - } - - public Criteria andCostFund2IsNotNull() { - addCriterion("COST_FUND2 is not null"); - return (Criteria) this; - } - - public Criteria andCostFund2EqualTo(BigDecimal value) { - addCriterion("COST_FUND2 =", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2NotEqualTo(BigDecimal value) { - addCriterion("COST_FUND2 <>", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2GreaterThan(BigDecimal value) { - addCriterion("COST_FUND2 >", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2GreaterThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND2 >=", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2LessThan(BigDecimal value) { - addCriterion("COST_FUND2 <", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2LessThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND2 <=", value, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2In(List values) { - addCriterion("COST_FUND2 in", values, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2NotIn(List values) { - addCriterion("COST_FUND2 not in", values, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2Between(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND2 between", value1, value2, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund2NotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND2 not between", value1, value2, "costFund2"); - return (Criteria) this; - } - - public Criteria andCostFund3IsNull() { - addCriterion("COST_FUND3 is null"); - return (Criteria) this; - } - - public Criteria andCostFund3IsNotNull() { - addCriterion("COST_FUND3 is not null"); - return (Criteria) this; - } - - public Criteria andCostFund3EqualTo(BigDecimal value) { - addCriterion("COST_FUND3 =", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3NotEqualTo(BigDecimal value) { - addCriterion("COST_FUND3 <>", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3GreaterThan(BigDecimal value) { - addCriterion("COST_FUND3 >", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3GreaterThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND3 >=", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3LessThan(BigDecimal value) { - addCriterion("COST_FUND3 <", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3LessThanOrEqualTo(BigDecimal value) { - addCriterion("COST_FUND3 <=", value, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3In(List values) { - addCriterion("COST_FUND3 in", values, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3NotIn(List values) { - addCriterion("COST_FUND3 not in", values, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3Between(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND3 between", value1, value2, "costFund3"); - return (Criteria) this; - } - - public Criteria andCostFund3NotBetween(BigDecimal value1, BigDecimal value2) { - addCriterion("COST_FUND3 not between", value1, value2, "costFund3"); - return (Criteria) this; - } - - public Criteria andFundRefIdIsNull() { - addCriterion("FUND_REF_ID is null"); - return (Criteria) this; - } - - public Criteria andFundRefIdIsNotNull() { - addCriterion("FUND_REF_ID is not null"); - return (Criteria) this; - } - - public Criteria andFundRefIdEqualTo(String value) { - addCriterion("FUND_REF_ID =", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdNotEqualTo(String value) { - addCriterion("FUND_REF_ID <>", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdGreaterThan(String value) { - addCriterion("FUND_REF_ID >", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdGreaterThanOrEqualTo(String value) { - addCriterion("FUND_REF_ID >=", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdLessThan(String value) { - addCriterion("FUND_REF_ID <", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdLessThanOrEqualTo(String value) { - addCriterion("FUND_REF_ID <=", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdLike(String value) { - addCriterion("FUND_REF_ID like", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdNotLike(String value) { - addCriterion("FUND_REF_ID not like", value, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdIn(List values) { - addCriterion("FUND_REF_ID in", values, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdNotIn(List values) { - addCriterion("FUND_REF_ID not in", values, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdBetween(String value1, String value2) { - addCriterion("FUND_REF_ID between", value1, value2, "fundRefId"); - return (Criteria) this; - } - - public Criteria andFundRefIdNotBetween(String value1, String value2) { - addCriterion("FUND_REF_ID not between", value1, value2, "fundRefId"); - return (Criteria) this; - } - - public Criteria andIssueLockIsNull() { - addCriterion("ISSUE_LOCK is null"); - return (Criteria) this; - } - - public Criteria andIssueLockIsNotNull() { - addCriterion("ISSUE_LOCK is not null"); - return (Criteria) this; - } - - public Criteria andIssueLockEqualTo(String value) { - addCriterion("ISSUE_LOCK =", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockNotEqualTo(String value) { - addCriterion("ISSUE_LOCK <>", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockGreaterThan(String value) { - addCriterion("ISSUE_LOCK >", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockGreaterThanOrEqualTo(String value) { - addCriterion("ISSUE_LOCK >=", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockLessThan(String value) { - addCriterion("ISSUE_LOCK <", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockLessThanOrEqualTo(String value) { - addCriterion("ISSUE_LOCK <=", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockLike(String value) { - addCriterion("ISSUE_LOCK like", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockNotLike(String value) { - addCriterion("ISSUE_LOCK not like", value, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockIn(List values) { - addCriterion("ISSUE_LOCK in", values, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockNotIn(List values) { - addCriterion("ISSUE_LOCK not in", values, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockBetween(String value1, String value2) { - addCriterion("ISSUE_LOCK between", value1, value2, "issueLock"); - return (Criteria) this; - } - - public Criteria andIssueLockNotBetween(String value1, String value2) { - addCriterion("ISSUE_LOCK not between", value1, value2, "issueLock"); - return (Criteria) this; - } - - public Criteria andTickNoLikeInsensitive(String value) { - addCriterion("upper(TICK_NO) like", value.toUpperCase(), "tickNo"); - return (Criteria) this; - } - - public Criteria andLtypeLikeInsensitive(String value) { - addCriterion("upper(LTYPE) like", value.toUpperCase(), "ltype"); - return (Criteria) this; - } - - public Criteria andMerchantidLikeInsensitive(String value) { - addCriterion("upper(MERCHANTID) like", value.toUpperCase(), "merchantid"); - return (Criteria) this; - } - - public Criteria andSerialNumLikeInsensitive(String value) { - addCriterion("upper(SERIAL_NUM) like", value.toUpperCase(), "serialNum"); - return (Criteria) this; - } - - public Criteria andIssueNoLikeInsensitive(String value) { - addCriterion("upper(ISSUE_NO) like", value.toUpperCase(), "issueNo"); - return (Criteria) this; - } - - public Criteria andBetIpLikeInsensitive(String value) { - addCriterion("upper(BET_IP) like", value.toUpperCase(), "betIp"); - return (Criteria) this; - } - - public Criteria andTickStatusLikeInsensitive(String value) { - addCriterion("upper(TICK_STATUS) like", value.toUpperCase(), "tickStatus"); - return (Criteria) this; - } - - public Criteria andNotifystatusLikeInsensitive(String value) { - addCriterion("upper(NOTIFYSTATUS) like", value.toUpperCase(), "notifystatus"); - return (Criteria) this; - } - - public Criteria andRegionLikeInsensitive(String value) { - addCriterion("upper(REGION) like", value.toUpperCase(), "region"); - return (Criteria) this; - } - - public Criteria andFailreasonLikeInsensitive(String value) { - addCriterion("upper(FAILREASON) like", value.toUpperCase(), "failreason"); - return (Criteria) this; - } - - public Criteria andMerchantuseridLikeInsensitive(String value) { - addCriterion("upper(MERCHANTUSERID) like", value.toUpperCase(), "merchantuserid"); - return (Criteria) this; - } - - public Criteria andUserIdLikeInsensitive(String value) { - addCriterion("upper(USER_ID) like", value.toUpperCase(), "userId"); - return (Criteria) this; - } - - public Criteria andAutobetNoLikeInsensitive(String value) { - addCriterion("upper(AUTOBET_NO) like", value.toUpperCase(), "autobetNo"); - return (Criteria) this; - } - - public Criteria andIsAutoLikeInsensitive(String value) { - addCriterion("upper(IS_AUTO) like", value.toUpperCase(), "isAuto"); - return (Criteria) this; - } - - public Criteria andAutoRefTicknoLikeInsensitive(String value) { - addCriterion("upper(AUTO_REF_TICKNO) like", value.toUpperCase(), "autoRefTickno"); - return (Criteria) this; - } - - public Criteria andFundRefIdLikeInsensitive(String value) { - addCriterion("upper(FUND_REF_ID) like", value.toUpperCase(), "fundRefId"); - return (Criteria) this; - } - - public Criteria andIssueLockLikeInsensitive(String value) { - addCriterion("upper(ISSUE_LOCK) like", value.toUpperCase(), "issueLock"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated do_not_delete_during_merge Mon Apr 11 20:11:17 CST 2016 - */ - public static class Criteria extends GeneratedCriteria { - - public Criteria() { - super(); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Data - @NoArgsConstructor - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - public Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - public Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - public Criterion(String condition, Object value) { - this(condition, value, null); - } - - public Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - public Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickKey.java b/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickKey.java deleted file mode 100644 index 3113550a..00000000 --- a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/entity/TLTCoreTickKey.java +++ /dev/null @@ -1,92 +0,0 @@ -package onight.tfg.ordbgens.tlt.entity; - -import lombok.AllArgsConstructor; -import lombok.NoArgsConstructor; - -@AllArgsConstructor -@NoArgsConstructor -public class TLTCoreTickKey { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database column TLT_CORE_TICK.TICK_NO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - private String tickNo; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column TLT_CORE_TICK.TICK_NO - * - * @return the value of TLT_CORE_TICK.TICK_NO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String getTickNo() { - return tickNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column TLT_CORE_TICK.TICK_NO - * - * @param tickNo the value for TLT_CORE_TICK.TICK_NO - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public void setTickNo(String tickNo) { - this.tickNo = tickNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - TLTCoreTickKey other = (TLTCoreTickKey) that; - return (this.getTickNo() == null ? other.getTickNo() == null : this.getTickNo().equals(other.getTickNo())); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getTickNo() == null) ? 0 : getTickNo().hashCode()); - return result; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", tickNo=").append(tickNo); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file diff --git a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickMapper.java b/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickMapper.java deleted file mode 100644 index e1e253c9..00000000 --- a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickMapper.java +++ /dev/null @@ -1,239 +0,0 @@ -package onight.tfg.ordbgens.tlt.mapper; - -import java.util.List; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTick; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickKey; -import onight.tfw.ojpa.ordb.StaticTableDaoSupport; -import org.apache.ibatis.annotations.Delete; -import org.apache.ibatis.annotations.DeleteProvider; -import org.apache.ibatis.annotations.Insert; -import org.apache.ibatis.annotations.InsertProvider; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Result; -import org.apache.ibatis.annotations.Results; -import org.apache.ibatis.annotations.Select; -import org.apache.ibatis.annotations.SelectProvider; -import org.apache.ibatis.annotations.Update; -import org.apache.ibatis.annotations.UpdateProvider; -import org.apache.ibatis.type.JdbcType; - -public interface TLTCoreTickMapper extends StaticTableDaoSupport { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @SelectProvider(type=TLTCoreTickSqlProvider.class, method="countByExample") - int countByExample(TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @DeleteProvider(type=TLTCoreTickSqlProvider.class, method="deleteByExample") - int deleteByExample(TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Delete({ - "delete from TLT_CORE_TICK", - "where TICK_NO = #{tickNo,jdbcType=VARCHAR}" - }) - int deleteByPrimaryKey(TLTCoreTickKey key); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Insert({ - "insert into TLT_CORE_TICK (TICK_NO, LTYPE, ", - "MERCHANTID, SERIAL_NUM, ", - "TICK_AMOUNTS, TICK_BET_COUNTS, ", - "ISSUE_NO, BET_DATETIME, ", - "BET_IP, PRINT_TIME, ", - "TICK_STATUS, NOTIFYSTATUS, ", - "REGION, FAILREASON, ", - "MERCHANTUSERID, USER_ID, ", - "AUTOBET_NO, IS_AUTO, ", - "AUTO_REF_TICKNO, COST_FUND0, ", - "COST_FUND1, COST_FUND2, ", - "COST_FUND3, FUND_REF_ID, ", - "ISSUE_LOCK)", - "values (#{tickNo,jdbcType=VARCHAR}, #{ltype,jdbcType=VARCHAR}, ", - "#{merchantid,jdbcType=VARCHAR}, #{serialNum,jdbcType=VARCHAR}, ", - "#{tickAmounts,jdbcType=DECIMAL}, #{tickBetCounts,jdbcType=DECIMAL}, ", - "#{issueNo,jdbcType=VARCHAR}, #{betDatetime,jdbcType=TIMESTAMP}, ", - "#{betIp,jdbcType=VARCHAR}, #{printTime,jdbcType=TIMESTAMP}, ", - "#{tickStatus,jdbcType=VARCHAR}, #{notifystatus,jdbcType=VARCHAR}, ", - "#{region,jdbcType=VARCHAR}, #{failreason,jdbcType=VARCHAR}, ", - "#{merchantuserid,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, ", - "#{autobetNo,jdbcType=VARCHAR}, #{isAuto,jdbcType=VARCHAR}, ", - "#{autoRefTickno,jdbcType=VARCHAR}, #{costFund0,jdbcType=DECIMAL}, ", - "#{costFund1,jdbcType=DECIMAL}, #{costFund2,jdbcType=DECIMAL}, ", - "#{costFund3,jdbcType=DECIMAL}, #{fundRefId,jdbcType=VARCHAR}, ", - "#{issueLock,jdbcType=VARCHAR})" - }) - int insert(TLTCoreTick record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @InsertProvider(type=TLTCoreTickSqlProvider.class, method="insertSelective") - int insertSelective(TLTCoreTick record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @SelectProvider(type=TLTCoreTickSqlProvider.class, method="selectByExample") - @Results({ - @Result(column="TICK_NO", property="tickNo", jdbcType=JdbcType.VARCHAR, id=true), - @Result(column="LTYPE", property="ltype", jdbcType=JdbcType.VARCHAR), - @Result(column="MERCHANTID", property="merchantid", jdbcType=JdbcType.VARCHAR), - @Result(column="SERIAL_NUM", property="serialNum", jdbcType=JdbcType.VARCHAR), - @Result(column="TICK_AMOUNTS", property="tickAmounts", jdbcType=JdbcType.DECIMAL), - @Result(column="TICK_BET_COUNTS", property="tickBetCounts", jdbcType=JdbcType.DECIMAL), - @Result(column="ISSUE_NO", property="issueNo", jdbcType=JdbcType.VARCHAR), - @Result(column="BET_DATETIME", property="betDatetime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="BET_IP", property="betIp", jdbcType=JdbcType.VARCHAR), - @Result(column="PRINT_TIME", property="printTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="TICK_STATUS", property="tickStatus", jdbcType=JdbcType.VARCHAR), - @Result(column="NOTIFYSTATUS", property="notifystatus", jdbcType=JdbcType.VARCHAR), - @Result(column="REGION", property="region", jdbcType=JdbcType.VARCHAR), - @Result(column="FAILREASON", property="failreason", jdbcType=JdbcType.VARCHAR), - @Result(column="MERCHANTUSERID", property="merchantuserid", jdbcType=JdbcType.VARCHAR), - @Result(column="USER_ID", property="userId", jdbcType=JdbcType.VARCHAR), - @Result(column="AUTOBET_NO", property="autobetNo", jdbcType=JdbcType.VARCHAR), - @Result(column="IS_AUTO", property="isAuto", jdbcType=JdbcType.VARCHAR), - @Result(column="AUTO_REF_TICKNO", property="autoRefTickno", jdbcType=JdbcType.VARCHAR), - @Result(column="COST_FUND0", property="costFund0", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND1", property="costFund1", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND2", property="costFund2", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND3", property="costFund3", jdbcType=JdbcType.DECIMAL), - @Result(column="FUND_REF_ID", property="fundRefId", jdbcType=JdbcType.VARCHAR), - @Result(column="ISSUE_LOCK", property="issueLock", jdbcType=JdbcType.VARCHAR) - }) - List selectByExample(TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Select({ - "select", - "TICK_NO, LTYPE, MERCHANTID, SERIAL_NUM, TICK_AMOUNTS, TICK_BET_COUNTS, ISSUE_NO, ", - "BET_DATETIME, BET_IP, PRINT_TIME, TICK_STATUS, NOTIFYSTATUS, REGION, FAILREASON, ", - "MERCHANTUSERID, USER_ID, AUTOBET_NO, IS_AUTO, AUTO_REF_TICKNO, COST_FUND0, COST_FUND1, ", - "COST_FUND2, COST_FUND3, FUND_REF_ID, ISSUE_LOCK", - "from TLT_CORE_TICK", - "where TICK_NO = #{tickNo,jdbcType=VARCHAR}" - }) - @Results({ - @Result(column="TICK_NO", property="tickNo", jdbcType=JdbcType.VARCHAR, id=true), - @Result(column="LTYPE", property="ltype", jdbcType=JdbcType.VARCHAR), - @Result(column="MERCHANTID", property="merchantid", jdbcType=JdbcType.VARCHAR), - @Result(column="SERIAL_NUM", property="serialNum", jdbcType=JdbcType.VARCHAR), - @Result(column="TICK_AMOUNTS", property="tickAmounts", jdbcType=JdbcType.DECIMAL), - @Result(column="TICK_BET_COUNTS", property="tickBetCounts", jdbcType=JdbcType.DECIMAL), - @Result(column="ISSUE_NO", property="issueNo", jdbcType=JdbcType.VARCHAR), - @Result(column="BET_DATETIME", property="betDatetime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="BET_IP", property="betIp", jdbcType=JdbcType.VARCHAR), - @Result(column="PRINT_TIME", property="printTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="TICK_STATUS", property="tickStatus", jdbcType=JdbcType.VARCHAR), - @Result(column="NOTIFYSTATUS", property="notifystatus", jdbcType=JdbcType.VARCHAR), - @Result(column="REGION", property="region", jdbcType=JdbcType.VARCHAR), - @Result(column="FAILREASON", property="failreason", jdbcType=JdbcType.VARCHAR), - @Result(column="MERCHANTUSERID", property="merchantuserid", jdbcType=JdbcType.VARCHAR), - @Result(column="USER_ID", property="userId", jdbcType=JdbcType.VARCHAR), - @Result(column="AUTOBET_NO", property="autobetNo", jdbcType=JdbcType.VARCHAR), - @Result(column="IS_AUTO", property="isAuto", jdbcType=JdbcType.VARCHAR), - @Result(column="AUTO_REF_TICKNO", property="autoRefTickno", jdbcType=JdbcType.VARCHAR), - @Result(column="COST_FUND0", property="costFund0", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND1", property="costFund1", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND2", property="costFund2", jdbcType=JdbcType.DECIMAL), - @Result(column="COST_FUND3", property="costFund3", jdbcType=JdbcType.DECIMAL), - @Result(column="FUND_REF_ID", property="fundRefId", jdbcType=JdbcType.VARCHAR), - @Result(column="ISSUE_LOCK", property="issueLock", jdbcType=JdbcType.VARCHAR) - }) - TLTCoreTick selectByPrimaryKey(TLTCoreTickKey key); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @UpdateProvider(type=TLTCoreTickSqlProvider.class, method="updateByExampleSelective") - int updateByExampleSelective(@Param("record") TLTCoreTick record, @Param("example") TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @UpdateProvider(type=TLTCoreTickSqlProvider.class, method="updateByExample") - int updateByExample(@Param("record") TLTCoreTick record, @Param("example") TLTCoreTickExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @UpdateProvider(type=TLTCoreTickSqlProvider.class, method="updateByPrimaryKeySelective") - int updateByPrimaryKeySelective(TLTCoreTick record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - @Update({ - "update TLT_CORE_TICK", - "set LTYPE = #{ltype,jdbcType=VARCHAR},", - "MERCHANTID = #{merchantid,jdbcType=VARCHAR},", - "SERIAL_NUM = #{serialNum,jdbcType=VARCHAR},", - "TICK_AMOUNTS = #{tickAmounts,jdbcType=DECIMAL},", - "TICK_BET_COUNTS = #{tickBetCounts,jdbcType=DECIMAL},", - "ISSUE_NO = #{issueNo,jdbcType=VARCHAR},", - "BET_DATETIME = #{betDatetime,jdbcType=TIMESTAMP},", - "BET_IP = #{betIp,jdbcType=VARCHAR},", - "PRINT_TIME = #{printTime,jdbcType=TIMESTAMP},", - "TICK_STATUS = #{tickStatus,jdbcType=VARCHAR},", - "NOTIFYSTATUS = #{notifystatus,jdbcType=VARCHAR},", - "REGION = #{region,jdbcType=VARCHAR},", - "FAILREASON = #{failreason,jdbcType=VARCHAR},", - "MERCHANTUSERID = #{merchantuserid,jdbcType=VARCHAR},", - "USER_ID = #{userId,jdbcType=VARCHAR},", - "AUTOBET_NO = #{autobetNo,jdbcType=VARCHAR},", - "IS_AUTO = #{isAuto,jdbcType=VARCHAR},", - "AUTO_REF_TICKNO = #{autoRefTickno,jdbcType=VARCHAR},", - "COST_FUND0 = #{costFund0,jdbcType=DECIMAL},", - "COST_FUND1 = #{costFund1,jdbcType=DECIMAL},", - "COST_FUND2 = #{costFund2,jdbcType=DECIMAL},", - "COST_FUND3 = #{costFund3,jdbcType=DECIMAL},", - "FUND_REF_ID = #{fundRefId,jdbcType=VARCHAR},", - "ISSUE_LOCK = #{issueLock,jdbcType=VARCHAR}", - "where TICK_NO = #{tickNo,jdbcType=VARCHAR}" - }) - int updateByPrimaryKey(TLTCoreTick record); -} \ No newline at end of file diff --git a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickSqlProvider.java b/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickSqlProvider.java deleted file mode 100644 index ddfba56b..00000000 --- a/mcs/restface/src/gens/java/onight/tfg/ordbgens/tlt/mapper/TLTCoreTickSqlProvider.java +++ /dev/null @@ -1,592 +0,0 @@ -package onight.tfg.ordbgens.tlt.mapper; - -import static org.apache.ibatis.jdbc.SqlBuilder.BEGIN; -import static org.apache.ibatis.jdbc.SqlBuilder.DELETE_FROM; -import static org.apache.ibatis.jdbc.SqlBuilder.FROM; -import static org.apache.ibatis.jdbc.SqlBuilder.INSERT_INTO; -import static org.apache.ibatis.jdbc.SqlBuilder.ORDER_BY; -import static org.apache.ibatis.jdbc.SqlBuilder.SELECT; -import static org.apache.ibatis.jdbc.SqlBuilder.SELECT_DISTINCT; -import static org.apache.ibatis.jdbc.SqlBuilder.SET; -import static org.apache.ibatis.jdbc.SqlBuilder.SQL; -import static org.apache.ibatis.jdbc.SqlBuilder.UPDATE; -import static org.apache.ibatis.jdbc.SqlBuilder.VALUES; -import static org.apache.ibatis.jdbc.SqlBuilder.WHERE; - -import java.util.List; -import java.util.Map; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTick; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample.Criteria; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample.Criterion; -import onight.tfg.ordbgens.tlt.entity.TLTCoreTickExample; - -public class TLTCoreTickSqlProvider { - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String countByExample(TLTCoreTickExample example) { - BEGIN(); - SELECT("count(*)"); - FROM("TLT_CORE_TICK"); - applyWhere(example, false); - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String deleteByExample(TLTCoreTickExample example) { - BEGIN(); - DELETE_FROM("TLT_CORE_TICK"); - applyWhere(example, false); - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String insertSelective(TLTCoreTick record) { - BEGIN(); - INSERT_INTO("TLT_CORE_TICK"); - - if (record.getTickNo() != null) { - VALUES("TICK_NO", "#{tickNo,jdbcType=VARCHAR}"); - } - - if (record.getLtype() != null) { - VALUES("LTYPE", "#{ltype,jdbcType=VARCHAR}"); - } - - if (record.getMerchantid() != null) { - VALUES("MERCHANTID", "#{merchantid,jdbcType=VARCHAR}"); - } - - if (record.getSerialNum() != null) { - VALUES("SERIAL_NUM", "#{serialNum,jdbcType=VARCHAR}"); - } - - if (record.getTickAmounts() != null) { - VALUES("TICK_AMOUNTS", "#{tickAmounts,jdbcType=DECIMAL}"); - } - - if (record.getTickBetCounts() != null) { - VALUES("TICK_BET_COUNTS", "#{tickBetCounts,jdbcType=DECIMAL}"); - } - - if (record.getIssueNo() != null) { - VALUES("ISSUE_NO", "#{issueNo,jdbcType=VARCHAR}"); - } - - if (record.getBetDatetime() != null) { - VALUES("BET_DATETIME", "#{betDatetime,jdbcType=TIMESTAMP}"); - } - - if (record.getBetIp() != null) { - VALUES("BET_IP", "#{betIp,jdbcType=VARCHAR}"); - } - - if (record.getPrintTime() != null) { - VALUES("PRINT_TIME", "#{printTime,jdbcType=TIMESTAMP}"); - } - - if (record.getTickStatus() != null) { - VALUES("TICK_STATUS", "#{tickStatus,jdbcType=VARCHAR}"); - } - - if (record.getNotifystatus() != null) { - VALUES("NOTIFYSTATUS", "#{notifystatus,jdbcType=VARCHAR}"); - } - - if (record.getRegion() != null) { - VALUES("REGION", "#{region,jdbcType=VARCHAR}"); - } - - if (record.getFailreason() != null) { - VALUES("FAILREASON", "#{failreason,jdbcType=VARCHAR}"); - } - - if (record.getMerchantuserid() != null) { - VALUES("MERCHANTUSERID", "#{merchantuserid,jdbcType=VARCHAR}"); - } - - if (record.getUserId() != null) { - VALUES("USER_ID", "#{userId,jdbcType=VARCHAR}"); - } - - if (record.getAutobetNo() != null) { - VALUES("AUTOBET_NO", "#{autobetNo,jdbcType=VARCHAR}"); - } - - if (record.getIsAuto() != null) { - VALUES("IS_AUTO", "#{isAuto,jdbcType=VARCHAR}"); - } - - if (record.getAutoRefTickno() != null) { - VALUES("AUTO_REF_TICKNO", "#{autoRefTickno,jdbcType=VARCHAR}"); - } - - if (record.getCostFund0() != null) { - VALUES("COST_FUND0", "#{costFund0,jdbcType=DECIMAL}"); - } - - if (record.getCostFund1() != null) { - VALUES("COST_FUND1", "#{costFund1,jdbcType=DECIMAL}"); - } - - if (record.getCostFund2() != null) { - VALUES("COST_FUND2", "#{costFund2,jdbcType=DECIMAL}"); - } - - if (record.getCostFund3() != null) { - VALUES("COST_FUND3", "#{costFund3,jdbcType=DECIMAL}"); - } - - if (record.getFundRefId() != null) { - VALUES("FUND_REF_ID", "#{fundRefId,jdbcType=VARCHAR}"); - } - - if (record.getIssueLock() != null) { - VALUES("ISSUE_LOCK", "#{issueLock,jdbcType=VARCHAR}"); - } - - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String selectByExample(TLTCoreTickExample example) { - BEGIN(); - if (example != null && example.isDistinct()) { - SELECT_DISTINCT("TICK_NO"); - } else { - SELECT("TICK_NO"); - } - SELECT("LTYPE"); - SELECT("MERCHANTID"); - SELECT("SERIAL_NUM"); - SELECT("TICK_AMOUNTS"); - SELECT("TICK_BET_COUNTS"); - SELECT("ISSUE_NO"); - SELECT("BET_DATETIME"); - SELECT("BET_IP"); - SELECT("PRINT_TIME"); - SELECT("TICK_STATUS"); - SELECT("NOTIFYSTATUS"); - SELECT("REGION"); - SELECT("FAILREASON"); - SELECT("MERCHANTUSERID"); - SELECT("USER_ID"); - SELECT("AUTOBET_NO"); - SELECT("IS_AUTO"); - SELECT("AUTO_REF_TICKNO"); - SELECT("COST_FUND0"); - SELECT("COST_FUND1"); - SELECT("COST_FUND2"); - SELECT("COST_FUND3"); - SELECT("FUND_REF_ID"); - SELECT("ISSUE_LOCK"); - FROM("TLT_CORE_TICK"); - applyWhere(example, false); - - if (example != null && example.getOrderByClause() != null) { - ORDER_BY(example.getOrderByClause()); - } - - if(example!=null&&example.getSelectCols()!=null&&example.getSelectCols().trim().length()>0){ - BEGIN(); - if (example != null && example.isDistinct()) { - SELECT_DISTINCT(example.getSelectCols()); - } else { - SELECT(example.getSelectCols()); - } - applyWhere(example, false); - } - if(example != null){ - String retstr= SQL().concat(" limit "+example.getOffset()+","+example.getLimit()); - if(example.isForUpdate()) { return retstr+" FOR UPDATE " ;} else { return retstr;} - } - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String updateByExampleSelective(Map parameter) { - TLTCoreTick record = (TLTCoreTick) parameter.get("record"); - TLTCoreTickExample example = (TLTCoreTickExample) parameter.get("example"); - - BEGIN(); - UPDATE("TLT_CORE_TICK"); - - if (record.getTickNo() != null) { - SET("TICK_NO = #{record.tickNo,jdbcType=VARCHAR}"); - } - - if (record.getLtype() != null) { - SET("LTYPE = #{record.ltype,jdbcType=VARCHAR}"); - } - - if (record.getMerchantid() != null) { - SET("MERCHANTID = #{record.merchantid,jdbcType=VARCHAR}"); - } - - if (record.getSerialNum() != null) { - SET("SERIAL_NUM = #{record.serialNum,jdbcType=VARCHAR}"); - } - - if (record.getTickAmounts() != null) { - SET("TICK_AMOUNTS = #{record.tickAmounts,jdbcType=DECIMAL}"); - } - - if (record.getTickBetCounts() != null) { - SET("TICK_BET_COUNTS = #{record.tickBetCounts,jdbcType=DECIMAL}"); - } - - if (record.getIssueNo() != null) { - SET("ISSUE_NO = #{record.issueNo,jdbcType=VARCHAR}"); - } - - if (record.getBetDatetime() != null) { - SET("BET_DATETIME = #{record.betDatetime,jdbcType=TIMESTAMP}"); - } - - if (record.getBetIp() != null) { - SET("BET_IP = #{record.betIp,jdbcType=VARCHAR}"); - } - - if (record.getPrintTime() != null) { - SET("PRINT_TIME = #{record.printTime,jdbcType=TIMESTAMP}"); - } - - if (record.getTickStatus() != null) { - SET("TICK_STATUS = #{record.tickStatus,jdbcType=VARCHAR}"); - } - - if (record.getNotifystatus() != null) { - SET("NOTIFYSTATUS = #{record.notifystatus,jdbcType=VARCHAR}"); - } - - if (record.getRegion() != null) { - SET("REGION = #{record.region,jdbcType=VARCHAR}"); - } - - if (record.getFailreason() != null) { - SET("FAILREASON = #{record.failreason,jdbcType=VARCHAR}"); - } - - if (record.getMerchantuserid() != null) { - SET("MERCHANTUSERID = #{record.merchantuserid,jdbcType=VARCHAR}"); - } - - if (record.getUserId() != null) { - SET("USER_ID = #{record.userId,jdbcType=VARCHAR}"); - } - - if (record.getAutobetNo() != null) { - SET("AUTOBET_NO = #{record.autobetNo,jdbcType=VARCHAR}"); - } - - if (record.getIsAuto() != null) { - SET("IS_AUTO = #{record.isAuto,jdbcType=VARCHAR}"); - } - - if (record.getAutoRefTickno() != null) { - SET("AUTO_REF_TICKNO = #{record.autoRefTickno,jdbcType=VARCHAR}"); - } - - if (record.getCostFund0() != null) { - SET("COST_FUND0 = #{record.costFund0,jdbcType=DECIMAL}"); - } - - if (record.getCostFund1() != null) { - SET("COST_FUND1 = #{record.costFund1,jdbcType=DECIMAL}"); - } - - if (record.getCostFund2() != null) { - SET("COST_FUND2 = #{record.costFund2,jdbcType=DECIMAL}"); - } - - if (record.getCostFund3() != null) { - SET("COST_FUND3 = #{record.costFund3,jdbcType=DECIMAL}"); - } - - if (record.getFundRefId() != null) { - SET("FUND_REF_ID = #{record.fundRefId,jdbcType=VARCHAR}"); - } - - if (record.getIssueLock() != null) { - SET("ISSUE_LOCK = #{record.issueLock,jdbcType=VARCHAR}"); - } - - applyWhere(example, true); - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String updateByExample(Map parameter) { - BEGIN(); - UPDATE("TLT_CORE_TICK"); - - SET("TICK_NO = #{record.tickNo,jdbcType=VARCHAR}"); - SET("LTYPE = #{record.ltype,jdbcType=VARCHAR}"); - SET("MERCHANTID = #{record.merchantid,jdbcType=VARCHAR}"); - SET("SERIAL_NUM = #{record.serialNum,jdbcType=VARCHAR}"); - SET("TICK_AMOUNTS = #{record.tickAmounts,jdbcType=DECIMAL}"); - SET("TICK_BET_COUNTS = #{record.tickBetCounts,jdbcType=DECIMAL}"); - SET("ISSUE_NO = #{record.issueNo,jdbcType=VARCHAR}"); - SET("BET_DATETIME = #{record.betDatetime,jdbcType=TIMESTAMP}"); - SET("BET_IP = #{record.betIp,jdbcType=VARCHAR}"); - SET("PRINT_TIME = #{record.printTime,jdbcType=TIMESTAMP}"); - SET("TICK_STATUS = #{record.tickStatus,jdbcType=VARCHAR}"); - SET("NOTIFYSTATUS = #{record.notifystatus,jdbcType=VARCHAR}"); - SET("REGION = #{record.region,jdbcType=VARCHAR}"); - SET("FAILREASON = #{record.failreason,jdbcType=VARCHAR}"); - SET("MERCHANTUSERID = #{record.merchantuserid,jdbcType=VARCHAR}"); - SET("USER_ID = #{record.userId,jdbcType=VARCHAR}"); - SET("AUTOBET_NO = #{record.autobetNo,jdbcType=VARCHAR}"); - SET("IS_AUTO = #{record.isAuto,jdbcType=VARCHAR}"); - SET("AUTO_REF_TICKNO = #{record.autoRefTickno,jdbcType=VARCHAR}"); - SET("COST_FUND0 = #{record.costFund0,jdbcType=DECIMAL}"); - SET("COST_FUND1 = #{record.costFund1,jdbcType=DECIMAL}"); - SET("COST_FUND2 = #{record.costFund2,jdbcType=DECIMAL}"); - SET("COST_FUND3 = #{record.costFund3,jdbcType=DECIMAL}"); - SET("FUND_REF_ID = #{record.fundRefId,jdbcType=VARCHAR}"); - SET("ISSUE_LOCK = #{record.issueLock,jdbcType=VARCHAR}"); - - TLTCoreTickExample example = (TLTCoreTickExample) parameter.get("example"); - applyWhere(example, true); - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - public String updateByPrimaryKeySelective(TLTCoreTick record) { - BEGIN(); - UPDATE("TLT_CORE_TICK"); - - if (record.getLtype() != null) { - SET("LTYPE = #{ltype,jdbcType=VARCHAR}"); - } - - if (record.getMerchantid() != null) { - SET("MERCHANTID = #{merchantid,jdbcType=VARCHAR}"); - } - - if (record.getSerialNum() != null) { - SET("SERIAL_NUM = #{serialNum,jdbcType=VARCHAR}"); - } - - if (record.getTickAmounts() != null) { - SET("TICK_AMOUNTS = #{tickAmounts,jdbcType=DECIMAL}"); - } - - if (record.getTickBetCounts() != null) { - SET("TICK_BET_COUNTS = #{tickBetCounts,jdbcType=DECIMAL}"); - } - - if (record.getIssueNo() != null) { - SET("ISSUE_NO = #{issueNo,jdbcType=VARCHAR}"); - } - - if (record.getBetDatetime() != null) { - SET("BET_DATETIME = #{betDatetime,jdbcType=TIMESTAMP}"); - } - - if (record.getBetIp() != null) { - SET("BET_IP = #{betIp,jdbcType=VARCHAR}"); - } - - if (record.getPrintTime() != null) { - SET("PRINT_TIME = #{printTime,jdbcType=TIMESTAMP}"); - } - - if (record.getTickStatus() != null) { - SET("TICK_STATUS = #{tickStatus,jdbcType=VARCHAR}"); - } - - if (record.getNotifystatus() != null) { - SET("NOTIFYSTATUS = #{notifystatus,jdbcType=VARCHAR}"); - } - - if (record.getRegion() != null) { - SET("REGION = #{region,jdbcType=VARCHAR}"); - } - - if (record.getFailreason() != null) { - SET("FAILREASON = #{failreason,jdbcType=VARCHAR}"); - } - - if (record.getMerchantuserid() != null) { - SET("MERCHANTUSERID = #{merchantuserid,jdbcType=VARCHAR}"); - } - - if (record.getUserId() != null) { - SET("USER_ID = #{userId,jdbcType=VARCHAR}"); - } - - if (record.getAutobetNo() != null) { - SET("AUTOBET_NO = #{autobetNo,jdbcType=VARCHAR}"); - } - - if (record.getIsAuto() != null) { - SET("IS_AUTO = #{isAuto,jdbcType=VARCHAR}"); - } - - if (record.getAutoRefTickno() != null) { - SET("AUTO_REF_TICKNO = #{autoRefTickno,jdbcType=VARCHAR}"); - } - - if (record.getCostFund0() != null) { - SET("COST_FUND0 = #{costFund0,jdbcType=DECIMAL}"); - } - - if (record.getCostFund1() != null) { - SET("COST_FUND1 = #{costFund1,jdbcType=DECIMAL}"); - } - - if (record.getCostFund2() != null) { - SET("COST_FUND2 = #{costFund2,jdbcType=DECIMAL}"); - } - - if (record.getCostFund3() != null) { - SET("COST_FUND3 = #{costFund3,jdbcType=DECIMAL}"); - } - - if (record.getFundRefId() != null) { - SET("FUND_REF_ID = #{fundRefId,jdbcType=VARCHAR}"); - } - - if (record.getIssueLock() != null) { - SET("ISSUE_LOCK = #{issueLock,jdbcType=VARCHAR}"); - } - - WHERE("TICK_NO = #{tickNo,jdbcType=VARCHAR}"); - - return SQL(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table TLT_CORE_TICK - * - * @mbggenerated Mon Apr 11 20:11:17 CST 2016 - */ - protected void applyWhere(TLTCoreTickExample example, boolean includeExamplePhrase) { - if (example == null) { - return; - } - - String parmPhrase1; - String parmPhrase1_th; - String parmPhrase2; - String parmPhrase2_th; - String parmPhrase3; - String parmPhrase3_th; - if (includeExamplePhrase) { - parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; - parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; - parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; - parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; - parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; - parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; - } else { - parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; - parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; - parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; - parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; - parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; - parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; - } - - StringBuilder sb = new StringBuilder(); - List oredCriteria = example.getOredCriteria(); - boolean firstCriteria = true; - for (int i = 0; i < oredCriteria.size(); i++) { - Criteria criteria = oredCriteria.get(i); - if (criteria.isValid()) { - if (firstCriteria) { - firstCriteria = false; - } else { - sb.append(" or "); - } - - sb.append('('); - List criterions = criteria.getAllCriteria(); - boolean firstCriterion = true; - for (int j = 0; j < criterions.size(); j++) { - Criterion criterion = criterions.get(j); - if (firstCriterion) { - firstCriterion = false; - } else { - sb.append(" and "); - } - - if (criterion.isNoValue()) { - sb.append(criterion.getCondition()); - } else if (criterion.isSingleValue()) { - if (criterion.getTypeHandler() == null) { - sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); - } else { - sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); - } - } else if (criterion.isBetweenValue()) { - if (criterion.getTypeHandler() == null) { - sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); - } else { - sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); - } - } else if (criterion.isListValue()) { - sb.append(criterion.getCondition()); - sb.append(" ("); - List listItems = (List) criterion.getValue(); - boolean comma = false; - for (int k = 0; k < listItems.size(); k++) { - if (comma) { - sb.append(", "); - } else { - comma = true; - } - if (criterion.getTypeHandler() == null) { - sb.append(String.format(parmPhrase3, i, j, k)); - } else { - sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); - } - } - sb.append(')'); - } - } - sb.append(')'); - } - } - - if (sb.length() > 0) { - WHERE(sb.toString()); - } - } -} \ No newline at end of file