예제 #1
0
 @Transactional
 public void save(CellMenuList cellMenuList) {
   if (StringUtils.isEmpty(cellMenuList.getId())) {
     cellMenuList.setId(idGenerator.getNextId());
     // cellMenuList.setId(idGenerator.getNextId());
     // cellMenuList.setCreateDate(new Date());
     cellMenuListMapper.insertCellMenuList(cellMenuList);
   } else {
     CellMenuList model = this.getCellMenuList(cellMenuList.getId());
     if (model != null) {
       if (cellMenuList.getTopid() != null) {
         model.setTopid(cellMenuList.getTopid());
       }
       model.setIndexId(cellMenuList.getIndexId());
       cellMenuListMapper.updateCellMenuList(model);
     }
   }
 }
예제 #2
0
 public ElementNode(
     DocumentNode document,
     IdGenerator idGenerator,
     ElementNode parent,
     Node node,
     int siblingPosition) {
   this.document = document;
   this.parent = parent;
   this.node = node;
   this.id = idGenerator.getNextId();
   this.siblingPosition = siblingPosition;
   if (node.jjtGetNumChildren() > 0) {
     this.children = new NodeInfo[node.jjtGetNumChildren()];
     for (int i = 0; i < children.length; i++) {
       children[i] = new ElementNode(document, idGenerator, this, node.jjtGetChild(i), i);
     }
   } else {
     this.children = null;
   }
   document.nodeToElementNode.put(node, this);
 }
예제 #3
0
 @Transactional
 public void save(CellUpicInfo cellUpicInfo) {
   if (StringUtils.isEmpty(cellUpicInfo.getId())) {
     cellUpicInfo.setId(idGenerator.getNextId());
     // cellUpicInfo.setId(idGenerator.getNextId());
     // cellUpicInfo.setCreateDate(new Date());
     cellUpicInfoMapper.insertCellUpicInfo(cellUpicInfo);
   } else {
     CellUpicInfo model = this.getCellUpicInfo(cellUpicInfo.getId());
     if (model != null) {
       if (cellUpicInfo.getTopid() != null) {
         model.setTopid(cellUpicInfo.getTopid());
       }
       model.setIndexId(cellUpicInfo.getIndexId());
       if (cellUpicInfo.getTaskId() != null) {
         model.setTaskId(cellUpicInfo.getTaskId());
       }
       model.setPfileflag(cellUpicInfo.getPfileflag());
       if (cellUpicInfo.getFiledotFileid() != null) {
         model.setFiledotFileid(cellUpicInfo.getFiledotFileid());
       }
       model.setListno(cellUpicInfo.getListno());
       model.setChktotal(cellUpicInfo.getChktotal());
       model.setChkresult(cellUpicInfo.getChkresult());
       if (cellUpicInfo.getPfileId() != null) {
         model.setPfileId(cellUpicInfo.getPfileId());
       }
       if (cellUpicInfo.getUserid() != null) {
         model.setUserid(cellUpicInfo.getUserid());
       }
       model.setRefillflag(cellUpicInfo.getRefillflag());
       model.setGroupid(cellUpicInfo.getGroupid());
       if (cellUpicInfo.getOldId() != null) {
         model.setOldId(cellUpicInfo.getOldId());
       }
       model.setRoleId(cellUpicInfo.getRoleId());
       model.setIsfinish(cellUpicInfo.getIsfinish());
       if (cellUpicInfo.getTagnum() != null) {
         model.setTagnum(cellUpicInfo.getTagnum());
       }
       if (cellUpicInfo.getCtime() != null) {
         model.setCtime(cellUpicInfo.getCtime());
       }
       if (cellUpicInfo.getTname() != null) {
         model.setTname(cellUpicInfo.getTname());
       }
       model.setPage(cellUpicInfo.getPage());
       if (cellUpicInfo.getDuty() != null) {
         model.setDuty(cellUpicInfo.getDuty());
       }
       if (cellUpicInfo.getThematic() != null) {
         model.setThematic(cellUpicInfo.getThematic());
       }
       if (cellUpicInfo.getAnnotations() != null) {
         model.setAnnotations(cellUpicInfo.getAnnotations());
       }
       model.setTypeIndexId(cellUpicInfo.getTypeIndexId());
       if (cellUpicInfo.getTypeId() != null) {
         model.setTypeId(cellUpicInfo.getTypeId());
       }
       cellUpicInfoMapper.updateCellUpicInfo(model);
     }
   }
 }