コード例 #1
0
 protected boolean validateKey(SimReceiveData t) {
   Assert.notNull(t, "bean is null.");
   Assert.notNull(t.getPlayname(), "playname is null.");
   Assert.notNull(t.getValidtermcode(), "termcode is null.");
   Assert.notNull(t.getLogiccode(), "logiccode is null.");
   Assert.notNull(t.getTicketcode(), "ticketcode is null.");
   return true;
 }
コード例 #2
0
 @Override
 public List<SimReceiveData> getEncashData(SimReceiveData example) {
   Assert.noneNull(
       example, example.getPlayname(), example.getLogiccode(), example.getTicketcode());
   String cql =
       "select * from "
           + this.columnFamilyName
           + " where PLAYNAME = '"
           + example.getPlayname()
           + "' and LOGICCODE = '"
           + example.getLogiccode()
           + "' and TICKETCODE = '"
           + example.getTicketcode()
           + "'";
   log.info(this.columnFamilyName + ":cql[" + cql + "]");
   return selectByCQL(cql);
 }
コード例 #3
0
 /**
  * This method was generated by MyBatis Generator. This method corresponds to the database table
  * T_SIM_RECEIVE_DATA
  *
  * @mbggenerated Tue Aug 21 10:23:40 CST 2012
  */
 public void insertOrUpdate(SimReceiveData record) {
   String key =
       record.getPlayname()
           + splitter
           + record.getValidtermcode()
           + splitter
           + record.getLogiccode()
           + splitter
           + record.getTicketcode();
   record.setKey(key);
   super.insert(record);
 }
コード例 #4
0
 /**
  * This method was generated by MyBatis Generator. This method corresponds to the database table
  * T_SIM_RECEIVE_DATA
  *
  * @mbggenerated Tue Aug 34 10:23:40 CST 2012
  */
 public void batchInsertOrUpdat(final List<SimReceiveData> list) {
   for (SimReceiveData record : list) {
     String key =
         record.getPlayname()
             + splitter
             + record.getValidtermcode()
             + splitter
             + record.getLogiccode()
             + splitter
             + record.getTicketcode();
     record.setKey(key);
   }
   super.batchInsert(list);
 }