Exemplo n.º 1
0
 /**
  * 保存上一次的操作记录
  *
  * @param id
  * @param createUser
  * @throws Exception
  */
 private IpoTrusteeship saveHis(Long id, String createUser) throws Exception {
   IpoTrusteeship dbShip = shipMapper.get(id);
   String content = JSON.json(dbShip);
   IpoTrusteeshipHis his = new IpoTrusteeshipHis();
   his.setContent(content);
   his.setTrusteeshipId(id);
   his.setCreateUser(createUser);
   his.setCreateDate(new Date());
   his.setState(dbShip.getState());
   shipHisMapper.insert(his);
   return dbShip;
 }
Exemplo n.º 2
0
 /** 查询商户提交的申请 */
 public List<Trusteeship> queryApplyForPage(
     String pageNoStr, String pageSizeStr, Trusteeship ship) {
   int startIndex = PageUtil.getStartIndex(pageNoStr, pageSizeStr);
   int endIndex = PageUtil.getEndIndex(pageNoStr, pageSizeStr);
   List<IpoTrusteeship> dbList = shipMapper.queryApplyForPage(startIndex, endIndex, ship);
   List<Trusteeship> dataList = new ArrayList<Trusteeship>();
   for (IpoTrusteeship item : dbList) {
     Trusteeship entity = new Trusteeship();
     BeanUtils.copyProperties(item, entity);
     entity.setStateName(TrusteeshipConstant.State.getName(item.getState()));
     dataList.add(entity);
   }
   return dataList;
 }