liyuanyuan месяцев назад: 10
Родитель
Сommit
7a68a8b952

+ 1 - 1
hjzx-api/src/main/java/api/controller/common/CommonController.java

@@ -135,7 +135,7 @@ public class CommonController extends BaseController {
135 135
     @GetMapping("/post")
136 136
     public AjaxResult getPost() {
137 137
         LambdaQueryWrapper<Post> qw = new LambdaQueryWrapper<>();
138
-        qw.eq(Post::getStatus, 0);
138
+        qw.eq(Post::getStatus, 1);
139 139
         qw.orderByAsc(Post::getPostSort);
140 140
         qw.select(Post::getPostId,Post::getPostCode,Post::getPostName);
141 141
 

+ 5 - 2
hjzx-api/src/main/java/api/controller/system/RoleController.java

@@ -158,8 +158,11 @@ public class RoleController extends BaseController {
158 158
     @ApiOperation("删除")
159 159
     @Log(title = "删除角色", businessType = BusinessType.DELETE)
160 160
     @DeleteMapping("/{ids}")
161
-    public AjaxResult delete(@PathVariable Long[] ids) {
162
-        Boolean s = roleService.deleteRoleByIds(ids);
161
+    public AjaxResult delete(@PathVariable long ids) {
162
+
163
+
164
+        Long[] idsArray = new Long[]{ids};
165
+        Boolean s = roleService.deleteRoleByIds(idsArray);
163 166
         if (s) {
164 167
             return Success("成功");
165 168
         } else {

+ 1 - 1
hjzx-api/src/main/resources/application-dev.yml

@@ -6,7 +6,7 @@ spring:
6 6
   datasource:
7 7
     type: com.alibaba.druid.pool.DruidDataSource
8 8
     driver-class-name: com.mysql.cj.jdbc.Driver
9
-    url: jdbc:mysql://192.168.1.200:3306/hjzx?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
9
+    url: jdbc:mysql://192.168.1.200:3306/hjzx_xinxiang?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
10 10
     username: root
11 11
     password: 800100
12 12