Quellcode durchsuchen

删除多余代码

shiqian vor 4 Jahren
Ursprung
Commit
94cc410954

+ 4 - 4
boman-modules/boman-system/src/main/resources/mapper/system/SysMenuMapper.xml

@@ -91,7 +91,7 @@
 			 left join sys_user_role ur on rm.role_id = ur.role_id
 			 left join sys_role ro on ur.role_id = ro.id
 			 left join sys_user u on ur.user_id = u.id
-		where u.id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0  AND ro.status = 0
+		where u.id = #{userId} and m.menu_type in ('M', 'C') and m.status = '0'  AND ro.status = '0'
 	    union
 		select distinct m.id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms
 					  , m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time, m.create_by, m.update_by
@@ -101,7 +101,7 @@
 				 left join sys_user_role ur on rm.role_id = ur.role_id
 				 left join sys_role ro on ur.role_id = ro.id
 				 left join sys_user u on ur.user_id = u.id
-		where m.visible = 1 and  m.status = '0'
+		where m.visible = '1' and  m.status = '0'
 	</select>
 
 	<select id="listBtnByUserId" parameterType="Long" resultMap="SysMenuResult">
@@ -117,7 +117,7 @@
 		<if test="userId != null and userId != ''">
 			and u.id = #{userId}
 		</if>
-		and m.status = 0 AND ro.status = 0
+		and m.status = '0' AND ro.status = '0'
 		order by m.parent_id, m.order_num
 	</select>
 
@@ -127,7 +127,7 @@
 			m.update_time, m.remark, m.sys_table_name
 		from sys_menu m
 		where m.menu_type = 'F'
-		  and m.status = 0
+		  and m.status = '0'
 		order by m.parent_id, m.order_num
 	</select>
 

+ 0 - 36
boman-web-core/src/main/java/com/boman/web/core/controller/ObjController.java

@@ -234,42 +234,6 @@ public class ObjController {
         return tableServiceCmdService.getQueryParam(condition);
     }
 
-//
-//    /**
-//     * 功能描述: 获取表单表头
-//     * 注意: 都是从redis中拿的,如果数据库和redis不一致,则需刷新一下redis
-//     * 刷新的入口为 {@link MyController#loadTable(com.boman.domain.GenTable)}
-//     *
-//     *                    eg:{
-//     *                          "table": "sys_config"
-//     *                        }
-//     *
-//     * @param condition condition
-//     * @return com.boman.domain.dto.AjaxResult
-//     */
-//    @ApiOperation(value = "获取表单表头")
-//    @PostMapping("/getTableHead")
-//    public AjaxResult getTableHead(@RequestBody FormDataDto condition) {
-//        return tableServiceCmdService.getTableHead(condition);
-//    }
-
-    /**
-     * 功能描述: 获取表单按钮
-     * 注意: 都是从redis中拿的,如果数据库和redis不一致,则需刷新一下redis
-     * <p>
-     * eg:{
-     * "table": "sys_config"
-     * }
-     *
-     * @param condition condition
-     * @return com.boman.domain.dto.AjaxResult
-     */
-//    @ApiOperation(value = "获取表单按钮")
-//    @PostMapping("/getButton")
-//    public AjaxResult getButton(@RequestBody FormDataDto condition) {
-//        return AjaxResult.success(tableServiceCmdService.getButton(condition.getTable()));
-//    }
-
     /**
      * 功能描述: 获取表单子表
      *

+ 0 - 10
boman-web-core/src/main/java/com/boman/web/core/utils/ColumnUtils.java

@@ -87,16 +87,6 @@ public class ColumnUtils {
                         commitData.put(columnName, commitData.getSqlDate(columnName));
                     }
                 }
-
-//                if (DATETIME.equalsIgnoreCase(column.getColumnType())) {
-//                    if (!CREATE_TIME.equalsIgnoreCase(columnName) && isNotEmpty(commitData.get(columnName))) {
-//                        commitData.put(columnName, commitData.getTimestamp(columnName));
-//                    }
-//                } else  if (DATE.equalsIgnoreCase(column.getColumnType())) {
-//                    if (!CREATE_TIME.equalsIgnoreCase(columnName) && isNotEmpty(commitData.get(columnName))) {
-//                        commitData.put(columnName, commitData.getSqlDate(columnName));
-//                    }
-//                }
             }
         }
     }