예제 #1
0
 @Override
 public void switchVO2PO(AuditMind po, AuditMindSO so) {
   po.setDataId(so.getDataId());
   po.setSort(so.getSort());
   po.setMind(StringUtils.trim(so.getMind()));
   po.setRealname(StringUtils.trim(so.getRealname()));
   po.setState(so.getState());
   po.setAuditDate(StringUtils.trim(so.getAuditDate()));
 }
예제 #2
0
 @Override
 public void setCriteriaParams(Criteria criteria, AuditMindSO so) {
   criteria.add(Restrictions.eq("dataId", so.getDataId()));
   criteria.add(Restrictions.eq("sort", so.getSort()));
 }