| | |
| | | import com.lf.server.helper.Md5Helper; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.mapper.show.ApplyMapper; |
| | | import org.hsqldb.rights.User; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.sql.Timestamp; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | FlowService flowService; |
| | | |
| | | @Override |
| | | public Integer selectCount(Integer userid) { |
| | | return applyMapper.selectCount(userid); |
| | | public Integer selectCount(String uname, Integer status, Timestamp start, Timestamp end) { |
| | | uname = StringHelper.getLikeStr(uname); |
| | | |
| | | return applyMapper.selectCount(uname, status, start, end); |
| | | } |
| | | |
| | | @Override |
| | | public List<ApplyEntity> selectByPage(Integer userid, Integer limit, Integer offset) { |
| | | return applyMapper.selectByPage(userid, limit, offset); |
| | | public List<ApplyEntity> selectByPage(Integer userid, String uname, Integer status, Timestamp start, Timestamp end, Integer limit, Integer offset) { |
| | | uname = StringHelper.getLikeStr(uname); |
| | | |
| | | return applyMapper.selectByPage(userid, uname, status, start, end, limit, offset); |
| | | } |
| | | |
| | | @Override |
| | |
| | | @Override |
| | | public ApplyEntity selectById(int id) { |
| | | return applyMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public UserEntity selectUserByDepid(Integer depid) { |
| | | return applyMapper.selectUserByDepid(depid); |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectSubmits(Integer userid) { |
| | | return applyMapper.selectSubmits(userid); |
| | | } |
| | | |
| | | @Override |
| | | public List<FlowEntity> selectFlows(Integer applyid) { |
| | | return applyMapper.selectFlows(applyid); |
| | | } |
| | | |
| | | @Override |
| | |
| | | List<FlowEntity> list = new ArrayList<>(); |
| | | for (Integer depid : dr.getIds()) { |
| | | UserEntity user = selectUserByDepid(depid); |
| | | if (null == user) { |
| | | continue; |
| | | } |
| | | |
| | | FlowEntity flow = new FlowEntity(); |
| | | flow.setApplyid(applyId); |
| | |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 根据单位ID查询用户 |
| | | */ |
| | | private UserEntity selectUserByDepid(Integer depid) { |
| | | // |
| | | |
| | | return null; |
| | | } |
| | | } |