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