skyouc
4 天以前 89255f6e9692026ffe4ce20bf4454c963a35ad69
rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/CompanysController.java
@@ -105,7 +105,6 @@
    @OperationLog("Update 字典数据集")
    @PostMapping("/companys/update")
    public R update(@RequestBody Companys companys) {
        companys.setUpdateBy(getLoginUserId());
        if (Objects.isNull(companys.getName())) {
            throw new CoolException("名称不能为空!!");
        }
@@ -115,7 +114,8 @@
        if (Objects.isNull(companys.getType())) {
            throw new CoolException("类型不能为空!!");
        }
        companys.setUpdateTime(null);
        companys.setUpdateBy(getLoginUserId());
        if (!companysService.updateById(companys)) {
            return R.error("Update Fail");
        }