Examples of UuidModel


Examples of com.common.web.support.uuid.vo.UuidModel

    uqm.setPreFix(tblName);
   
    List<UuidModel> list = this.getByCondition(uqm,1,100);
    if(list==null || list.size()==0){
      //2:如果找不到,说明是第一次用,那么nextUuid=1,同时向tbl_uuid新增一条数据
      UuidModel um = new UuidModel();
      um.setNum(1);
      um.setPreFix(tblName);
     
      this.create(um);
     
      return 1;
    }else{
      //3:如果找到了,就对num+1,这就是nextuuid,同时修改这条数据
      UuidModel um = list.get(0);
      int num = um.getNum()+1;
      um.setNum(num);     
     
      this.update(um);
     
      return num;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.