|  |  |  | 
|---|
|  |  |  | update.setEditor(userInfo.getId()); | 
|---|
|  |  |  | update.setEditDate(new Date()); | 
|---|
|  |  |  | update.setIsdeleted(Constants.ONE); | 
|---|
|  |  |  | update.setId(id); | 
|---|
|  |  |  | visitReasonMapper.updateById(update); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public List<VisitReason> findList(VisitReason visitReason) { | 
|---|
|  |  |  | QueryWrapper<VisitReason> wrapper = new QueryWrapper<>(visitReason); | 
|---|
|  |  |  | wrapper.eq("isdeleted",Constants.ZERO); | 
|---|
|  |  |  | return visitReasonMapper.selectList(wrapper); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | QueryWrapper<VisitReason> wrapper = new QueryWrapper<>(visitReason); | 
|---|
|  |  |  | return visitReasonMapper.selectCount(wrapper); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|