自动化立体仓库 - WMS系统
#
bfwms
2025-05-28 600dd1637244fb476c1373c390dfcf23ca26a948
src/main/java/com/zy/asrs/controller/BasSteController.java
@@ -10,7 +10,9 @@
import com.core.common.DateUtils;
import com.core.common.R;
import com.zy.asrs.entity.BasSte;
import com.zy.asrs.entity.WrkMast;
import com.zy.asrs.service.BasSteService;
import com.zy.asrs.service.WrkMastService;
import com.zy.common.web.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -25,6 +27,8 @@
    @Autowired
    private BasSteService basSteService;
    @Autowired
    private WrkMastService wrkMastService;
    @RequestMapping(value = "/basSte/{id}/auth")
    @ManagerAuth
@@ -44,7 +48,9 @@
        excludeTrash(param);
        convert(param, wrapper);
        allLike(BasSte.class, param.keySet(), wrapper, condition);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
        if (!Cools.isEmpty(orderByField)) {
            wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
        }
        return R.ok(basSteService.selectPage(new Page<>(curr, limit), wrapper));
    }
@@ -74,6 +80,10 @@
        if (Cools.isEmpty(basSte) || null==basSte.getSteNo()){
            return R.error();
        }
        List<WrkMast> wrkMasts = wrkMastService.selectList(new EntityWrapper<>());
        if (wrkMasts == null || wrkMasts.isEmpty()) {
            basSte.setPakMk("N");
        }
        basSteService.updateById(basSte);
        return R.ok();
    }