中扬CRM客户关系管理系统
#
luxiaotao1123
2022-11-07 c6f4fbce5ac9c594bb0168f0a852441facbab484
src/main/java/com/zy/crm/common/web/BaseController.java
@@ -85,10 +85,8 @@
    }
    protected Long getDeptId() {
        // todo:luxiaotao
        return 1L;
        return getUser().getDeptId();
    }
    protected String getComment(Class<?> cls, String fieldName){
        Field[] fields = Cools.getAllFields(cls);
@@ -113,7 +111,7 @@
    }
    protected Dept getOriginDept(){
        Dept dept = deptService.getTop();
        Dept dept = deptService.getTop(getHostId());
        if (dept == null) {
            throw new CoolException("部门数据错误");
        }
@@ -189,6 +187,9 @@
            }
            String column = null;
            if (field.isAnnotationPresent(TableField.class)) {
                if (!field.getAnnotation(TableField.class).exist()) {
                    continue;
                }
                column = field.getAnnotation(TableField.class).value();
            }
            if (Cools.isEmpty(column)) {