#
Junjie
2023-12-25 0c8a19fec9b1900a2a8f6723d3eccade50fbbd35
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/controller/BasWrkIotypeController.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zy.asrs.common.wms.entity.BasLocSts;
import com.zy.asrs.common.wms.entity.BasWrkIotype;
import com.zy.asrs.common.wms.service.BasWrkIotypeService;
import com.zy.asrs.framework.annotations.ManagerAuth;
@@ -32,7 +33,8 @@
    public R page(@RequestParam(defaultValue = "1") Integer curr,
                  @RequestParam(defaultValue = "10") Integer limit,
                  @RequestParam(required = false) String condition,
                  @RequestParam(required = false) String timeRange) {
                  @RequestParam(required = false) String timeRange,
                  @RequestParam Map<String, Object> param) {
        LambdaQueryWrapper<BasWrkIotype> wrapper = new LambdaQueryWrapper<>();
        if (!Cools.isEmpty(condition)) {
            wrapper.like(BasWrkIotype::getIoDesc, condition);
@@ -42,6 +44,9 @@
            wrapper.ge(BasWrkIotype::getAppeTime, DateUtils.convert(range[0]));
            wrapper.le(BasWrkIotype::getAppeTime, DateUtils.convert(range[1]));
        }
        if (!Cools.isEmpty(param.get("io_type"))) {
            wrapper.eq(BasWrkIotype::getIoType, param.get("io_type"));
        }
        return R.ok(basWrkIotypeService.page(new Page<>(curr, limit), wrapper));
    }