#
Junjie
2024-01-03 efa046bc3cc584f082ffda7f6efdcb592f86c818
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/BasBarcodeController.java
@@ -37,6 +37,7 @@
                  @RequestParam(required = false) String timeRange,
                  @RequestParam Map<String, Object> param) {
        LambdaQueryWrapper<BasBarcode> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(BasBarcode::getHostId, getHostId());
        if (!Cools.isEmpty(condition)) {
            wrapper.like(BasBarcode::getId, condition);
        }
@@ -52,6 +53,8 @@
    @RequestMapping(value = "/basBarcode/add/auth")
    @ManagerAuth
    public R add(BasBarcode basBarcode) {
        basBarcode.setHostId(getHostId());
        basBarcode.setCreateTime(new Date());
        basBarcodeService.save(basBarcode);
        return R.ok();
    }
@@ -79,6 +82,7 @@
    @ManagerAuth
    public R query(String condition) {
        LambdaQueryWrapper<BasBarcode> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(BasBarcode::getHostId, getHostId());
        wrapper.like(BasBarcode::getId, condition);
        Page<BasBarcode> page = basBarcodeService.page(new Page<>(0, 10), wrapper);
        List<Map<String, Object>> result = new ArrayList<>();
@@ -96,6 +100,7 @@
    public R getDataKV(@RequestParam(required = false) String condition) {
        List<KeyValueVo> vos = new ArrayList<>();
        LambdaQueryWrapper<BasBarcode> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(BasBarcode::getHostId, getHostId());
        if (!Cools.isEmpty(condition)) {
            wrapper.like(BasBarcode::getId, condition);
        }