自动化立体仓库 - WCS系统
#
zjj
2023-12-04 82e14834b38c398f6bc75e8b7454a0b223be2a66
src/main/java/com/zy/asrs/controller/CommandInfoLogController.java
@@ -6,6 +6,7 @@
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.core.common.DateUtils;
import com.zy.asrs.entity.CommandInfo;
import com.zy.asrs.entity.CommandInfoLog;
import com.zy.asrs.service.CommandInfoLogService;
import com.core.annotations.ManagerAuth;
@@ -24,6 +25,20 @@
    @Autowired
    private CommandInfoLogService commandInfoLogService;
    @RequestMapping(value = "/commandInfoLog/listLog/auth")
    @ManagerAuth
    public R listLog(@RequestParam(defaultValue = "1")Integer curr,
                     @RequestParam(defaultValue = "10")Integer limit,
                     @RequestParam(required = false)String orderByField,
                     @RequestParam(required = false)String orderByType,
                     @RequestParam Map<String, Object> param){
        EntityWrapper<CommandInfoLog> wrapper = new EntityWrapper<>();
        excludeTrash(param);
        convert(param, wrapper);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
        return R.ok(commandInfoLogService.selectPage(new Page<>(curr, limit), wrapper));
    }
    @RequestMapping(value = "/commandInfoLog/{id}/auth")
    @ManagerAuth
    public R get(@PathVariable("id") String id) {