Commit 1beb11faa008f7bd64e7a40b7c3eadc07df03bf4
Merge branch 'develop' of http://www.huahengrobot.com:90/wms/wms4 into develop
# Conflicts: # ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue
Showing
2 changed files
with
14 additions
and
15 deletions
ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue
@@ -155,7 +155,7 @@ export default { | @@ -155,7 +155,7 @@ export default { | ||
155 | }, | 155 | }, |
156 | data() { | 156 | data() { |
157 | let ellipsis1 = (v, l = 20) => (<j-ellipsis value={v} length={l}/>) | 157 | let ellipsis1 = (v, l = 20) => (<j-ellipsis value={v} length={l}/>) |
158 | - let ellipsis2 = (v, l = 150) => (<j-ellipsis value={v} length={l}/>) | 158 | + let ellipsis2 = (v, l = 120) => (<j-ellipsis value={v} length={l}/>) |
159 | return { | 159 | return { |
160 | description: '接口日志管理页面', | 160 | description: '接口日志管理页面', |
161 | // 表头 | 161 | // 表头 |
@@ -170,12 +170,6 @@ export default { | @@ -170,12 +170,6 @@ export default { | ||
170 | align: "center", | 170 | align: "center", |
171 | dataIndex: 'apiMethod' | 171 | dataIndex: 'apiMethod' |
172 | }, | 172 | }, |
173 | - { | ||
174 | - title: '响应耗时(毫秒)', | ||
175 | - align: "center", | ||
176 | - dataIndex: 'duration' | ||
177 | - }, | ||
178 | - { | ||
179 | title: '请求内容', | 173 | title: '请求内容', |
180 | align: "left", | 174 | align: "left", |
181 | dataIndex: 'requestBody', | 175 | dataIndex: 'requestBody', |
@@ -205,9 +199,8 @@ export default { | @@ -205,9 +199,8 @@ export default { | ||
205 | { | 199 | { |
206 | title: '请求地址', | 200 | title: '请求地址', |
207 | align: "left", | 201 | align: "left", |
208 | - dataIndex: 'url' | 202 | + dataIndex: 'url', |
209 | }, | 203 | }, |
210 | - { | ||
211 | title: '请求时间', | 204 | title: '请求时间', |
212 | align: "center", | 205 | align: "center", |
213 | dataIndex: 'requestTime' | 206 | dataIndex: 'requestTime' |
@@ -218,6 +211,11 @@ export default { | @@ -218,6 +211,11 @@ export default { | ||
218 | dataIndex: 'responseTime' | 211 | dataIndex: 'responseTime' |
219 | }, | 212 | }, |
220 | { | 213 | { |
214 | + title: '响应耗时(毫秒)', | ||
215 | + align: "center", | ||
216 | + dataIndex: 'duration' | ||
217 | + }, | ||
218 | + { | ||
221 | title: 'httpCode', | 219 | title: 'httpCode', |
222 | align: "center", | 220 | align: "center", |
223 | dataIndex: 'httpCode' | 221 | dataIndex: 'httpCode' |
@@ -237,7 +235,7 @@ export default { | @@ -237,7 +235,7 @@ export default { | ||
237 | dataIndex: 'action', | 235 | dataIndex: 'action', |
238 | align: "center", | 236 | align: "center", |
239 | fixed: "right", | 237 | fixed: "right", |
240 | - width: 147, | 238 | + width: 80, |
241 | scopedSlots: {customRender: 'action'} | 239 | scopedSlots: {customRender: 'action'} |
242 | } | 240 | } |
243 | ], | 241 | ], |
huaheng-wms-core/src/main/java/org/jeecg/modules/system/service/impl/SysBaseApiImpl.java
@@ -8,6 +8,7 @@ import java.util.*; | @@ -8,6 +8,7 @@ import java.util.*; | ||
8 | import javax.annotation.Resource; | 8 | import javax.annotation.Resource; |
9 | import javax.sql.DataSource; | 9 | import javax.sql.DataSource; |
10 | 10 | ||
11 | +import org.apache.commons.beanutils.ConvertUtils; | ||
11 | import org.apache.commons.lang.StringUtils; | 12 | import org.apache.commons.lang.StringUtils; |
12 | import org.apache.shiro.SecurityUtils; | 13 | import org.apache.shiro.SecurityUtils; |
13 | import org.jeecg.common.api.dto.OnlineAuthDTO; | 14 | import org.jeecg.common.api.dto.OnlineAuthDTO; |
@@ -751,7 +752,7 @@ public class SysBaseApiImpl implements ISysBaseAPI { | @@ -751,7 +752,7 @@ public class SysBaseApiImpl implements ISysBaseAPI { | ||
751 | @Override | 752 | @Override |
752 | public List<LoginUser> queryUserByNames(String[] userNames) { | 753 | public List<LoginUser> queryUserByNames(String[] userNames) { |
753 | QueryWrapper<SysUser> queryWrapper = new QueryWrapper<SysUser>().eq("status", 1).eq("del_flag", 0); | 754 | QueryWrapper<SysUser> queryWrapper = new QueryWrapper<SysUser>().eq("status", 1).eq("del_flag", 0); |
754 | - queryWrapper.in("username", userNames); | 755 | + queryWrapper.in("username", ConvertUtils.convert(userNames, String.class)); |
755 | List<LoginUser> loginUsers = new ArrayList<>(); | 756 | List<LoginUser> loginUsers = new ArrayList<>(); |
756 | List<SysUser> sysUsers = userMapper.selectList(queryWrapper); | 757 | List<SysUser> sysUsers = userMapper.selectList(queryWrapper); |
757 | for (SysUser user : sysUsers) { | 758 | for (SysUser user : sysUsers) { |
@@ -901,14 +902,14 @@ public class SysBaseApiImpl implements ISysBaseAPI { | @@ -901,14 +902,14 @@ public class SysBaseApiImpl implements ISysBaseAPI { | ||
901 | @Override | 902 | @Override |
902 | public List<JSONObject> queryUsersByUsernames(String usernames) { | 903 | public List<JSONObject> queryUsersByUsernames(String usernames) { |
903 | LambdaQueryWrapper<SysUser> queryWrapper = new LambdaQueryWrapper<>(); | 904 | LambdaQueryWrapper<SysUser> queryWrapper = new LambdaQueryWrapper<>(); |
904 | - queryWrapper.in(SysUser::getUsername, usernames.split(",")); | 905 | + queryWrapper.in(SysUser::getUsername, ConvertUtils.convert(usernames.split(","), String.class)); |
905 | return JSON.parseArray(JSON.toJSONString(userMapper.selectList(queryWrapper))).toJavaList(JSONObject.class); | 906 | return JSON.parseArray(JSON.toJSONString(userMapper.selectList(queryWrapper))).toJavaList(JSONObject.class); |
906 | } | 907 | } |
907 | 908 | ||
908 | @Override | 909 | @Override |
909 | public List<JSONObject> queryUsersByIds(String ids) { | 910 | public List<JSONObject> queryUsersByIds(String ids) { |
910 | LambdaQueryWrapper<SysUser> queryWrapper = new LambdaQueryWrapper<>(); | 911 | LambdaQueryWrapper<SysUser> queryWrapper = new LambdaQueryWrapper<>(); |
911 | - queryWrapper.in(SysUser::getId, ids.split(",")); | 912 | + queryWrapper.in(SysUser::getId, ConvertUtils.convert(ids.split(","), Integer.class)); |
912 | return JSON.parseArray(JSON.toJSONString(userMapper.selectList(queryWrapper))).toJavaList(JSONObject.class); | 913 | return JSON.parseArray(JSON.toJSONString(userMapper.selectList(queryWrapper))).toJavaList(JSONObject.class); |
913 | } | 914 | } |
914 | 915 | ||
@@ -920,14 +921,14 @@ public class SysBaseApiImpl implements ISysBaseAPI { | @@ -920,14 +921,14 @@ public class SysBaseApiImpl implements ISysBaseAPI { | ||
920 | @Override | 921 | @Override |
921 | public List<JSONObject> queryDepartsByOrgcodes(String orgCodes) { | 922 | public List<JSONObject> queryDepartsByOrgcodes(String orgCodes) { |
922 | LambdaQueryWrapper<SysDepart> queryWrapper = new LambdaQueryWrapper<>(); | 923 | LambdaQueryWrapper<SysDepart> queryWrapper = new LambdaQueryWrapper<>(); |
923 | - queryWrapper.in(SysDepart::getOrgCode, orgCodes.split(",")); | 924 | + queryWrapper.in(SysDepart::getOrgCode, ConvertUtils.convert(orgCodes.split(","), String.class)); |
924 | return JSON.parseArray(JSON.toJSONString(sysDepartService.list(queryWrapper))).toJavaList(JSONObject.class); | 925 | return JSON.parseArray(JSON.toJSONString(sysDepartService.list(queryWrapper))).toJavaList(JSONObject.class); |
925 | } | 926 | } |
926 | 927 | ||
927 | @Override | 928 | @Override |
928 | public List<JSONObject> queryDepartsByIds(String ids) { | 929 | public List<JSONObject> queryDepartsByIds(String ids) { |
929 | LambdaQueryWrapper<SysDepart> queryWrapper = new LambdaQueryWrapper<>(); | 930 | LambdaQueryWrapper<SysDepart> queryWrapper = new LambdaQueryWrapper<>(); |
930 | - queryWrapper.in(SysDepart::getId, ids.split(",")); | 931 | + queryWrapper.in(SysDepart::getId, ConvertUtils.convert(ids.split(","),Integer.class)); |
931 | return JSON.parseArray(JSON.toJSONString(sysDepartService.list(queryWrapper))).toJavaList(JSONObject.class); | 932 | return JSON.parseArray(JSON.toJSONString(sysDepartService.list(queryWrapper))).toJavaList(JSONObject.class); |
932 | } | 933 | } |
933 | 934 |