| | |
| | | } |
| | | |
| | | protected Long getDeptId() { |
| | | // todo:luxiaotao |
| | | return 1L; |
| | | return getUser().getDeptId(); |
| | | } |
| | | |
| | | |
| | | protected String getComment(Class<?> cls, String fieldName){ |
| | | Field[] fields = Cools.getAllFields(cls); |
| | |
| | | } |
| | | |
| | | protected Dept getOriginDept(){ |
| | | Dept dept = deptService.getTop(); |
| | | Dept dept = deptService.getTop(getHostId()); |
| | | if (dept == null) { |
| | | throw new CoolException("部门数据错误"); |
| | | } |
| | |
| | | } |
| | | 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)) { |