自动化立体仓库 - WMS系统
lty
3 天以前 8e943b7104561c3b14cf223016698709c5ade4b5
src/main/java/com/zy/asrs/controller/RowLastnoTypeController.java
@@ -63,17 +63,17 @@
    @ManagerAuth
    public R add(RowLastnoType rowLastnoType) {
        rowLastnoTypeService.insert(rowLastnoType);
        return R.ok();
        return R.ok("response.save_success");
    }
   @RequestMapping(value = "/rowLastnoType/update/auth")
   @ManagerAuth
    public R update(RowLastnoType rowLastnoType){
        if (Cools.isEmpty(rowLastnoType) || null==rowLastnoType.getId()){
            return R.error();
            return R.error("response.param_error");
        }
        rowLastnoTypeService.updateById(rowLastnoType);
        return R.ok();
        return R.ok("response.update_success");
    }
    @RequestMapping(value = "/rowLastnoType/delete/auth")
@@ -82,7 +82,7 @@
         for (Long id : ids){
            rowLastnoTypeService.deleteById(id);
        }
        return R.ok();
        return R.ok("response.delete_success");
    }
    @RequestMapping(value = "/rowLastnoType/export/auth")
@@ -117,7 +117,9 @@
    public R query(@RequestBody JSONObject param) {
        Wrapper<RowLastnoType> wrapper = new EntityWrapper<RowLastnoType>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val"));
        if (null != rowLastnoTypeService.selectOne(wrapper)){
            return R.parse(BaseRes.REPEAT).add(getComment(RowLastnoType.class, String.valueOf(param.get("key"))));
            R r = R.parse(BaseRes.REPEAT);
            r.put("data",  getComment(RowLastnoType.class, String.valueOf(param.get("key"))));
            return r;
        }
        return R.ok();
    }