Ejemplo n.º 1
0
 public IsdpDataFile getCellDataFileById(String id) {
   IsdpDataFile file = null;
   if (StringUtils.equals(DBUtils.POSTGRESQL, Environment.getCurrentDatabaseType())) {
     file = cellUpicInfoMapper.getCellDataFileById_postgres(id);
   } else {
     file = cellUpicInfoMapper.getCellDataFileById(id);
   }
   return file;
 }
Ejemplo n.º 2
0
 @Transactional
 public void deleteByIds(List<String> rowIds) {
   if (rowIds != null && !rowIds.isEmpty()) {
     for (String rowId : rowIds) {
       cellUpicInfoMapper.deleteCellUpicInfoById(rowId);
     }
   }
 }
Ejemplo n.º 3
0
 /**
  * 根据查询参数获取记录总数
  *
  * @return
  */
 public int getCellUpicInfoCountByQueryCriteria(CellUpicInfoQuery query) {
   return cellUpicInfoMapper.getCellUpicInfoCountByQueryCriteria(query);
 }
Ejemplo n.º 4
0
 /**
  * 根据查询参数获取记录总数
  *
  * @return
  */
 public int getCellUpicInfoCount(Map<String, Object> parameter) {
   return cellUpicInfoMapper.getCellUpicInfoCount(parameter);
 }
Ejemplo n.º 5
0
 public CellUpicInfo getCellUpicInfo(String id) {
   CellUpicInfo cellUpicInfo = cellUpicInfoMapper.getCellUpicInfoById(id);
   return cellUpicInfo;
 }
Ejemplo n.º 6
0
 @Transactional
 public void deleteById(String id) {
   cellUpicInfoMapper.deleteCellUpicInfoById(id);
 }
Ejemplo n.º 7
0
 public int count(CellUpicInfoQuery query) {
   query.ensureInitialized();
   return cellUpicInfoMapper.getCellUpicInfoCountByQueryCriteria(query);
 }
Ejemplo n.º 8
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);
     }
   }
 }
Ejemplo n.º 9
0
 public List<CellUpicInfo> list(CellUpicInfoQuery query) {
   query.ensureInitialized();
   List<CellUpicInfo> list = cellUpicInfoMapper.getCellUpicInfosByQueryCriteria(query);
   return list;
 }
Ejemplo n.º 10
0
 /**
  * 根据查询参数获取记录列表
  *
  * @return
  */
 public List<CellUpicInfo> getCellUpicInfos(Map<String, Object> parameter) {
   return cellUpicInfoMapper.getCellUpicInfos(parameter);
 }