| | |
| | | private StaService staService; |
| | | |
| | | @Override |
| | | public Loc selecatByLocNo(String locNo) { |
| | | public Loc selectByLocNo(String locNo) { |
| | | return this.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, locNo)); |
| | | } |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public Loc selectRandOneByLocSts(Long locSts, Integer limit) { |
| | | List<Loc> locList = this.selectRandByLocSts(locSts, limit); |
| | | return locList.stream().findFirst().orElse(null); |
| | | } |
| | | |
| | | @Override |
| | | public List<Loc> selectRandByLocSts(Long locSts, Integer limit) { |
| | | if (locSts == null) { |
| | | return null; |
| | | } |
| | | return this.baseMapper.selectRandByLocSts(locSts, limit); |
| | | } |
| | | |
| | | } |