parent
06d2df67a1
commit
b184306558
3 changed files with 33 additions and 13 deletions
@ -1,15 +1,29 @@ |
||||
package org.springblade.desk.quality.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
import jakarta.annotation.Resource; |
||||
import org.springblade.desk.logistics.pojo.entity.Location; |
||||
import org.springblade.desk.logistics.service.ILocationService; |
||||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
||||
|
||||
import java.util.List; |
||||
|
||||
import static org.springblade.desk.logistics.pojo.entity.Location.ORIGINAL_RACK; |
||||
import static org.springblade.desk.logistics.pojo.entity.Station.STATUS_FREE; |
||||
|
||||
@SpringBootApplication |
||||
class LiquidTankTaskServiceTest { |
||||
|
||||
@Resource |
||||
private LiquidTankTaskService222 liquidTankTaskService; |
||||
private ILocationService locationService; |
||||
|
||||
void contextLoads() { |
||||
|
||||
List<Location> freeLocationList = locationService.list( |
||||
new LambdaQueryWrapper<Location>() |
||||
.ne(Location::getStatus, ORIGINAL_RACK) |
||||
.eq(Location::getLocationStatus, STATUS_FREE) |
||||
.orderByDesc((sql -> "RIGHT(LOCATION_CODE, 1) = '2'") |
||||
)); |
||||
System.out.println(freeLocationList); |
||||
} |
||||
} |
||||
|
||||
Loading…
Reference in new issue