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 | 155 | }, |
156 | 156 | data() { |
157 | 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 | 159 | return { |
160 | 160 | description: '接口日志管理页面', |
161 | 161 | // 表头 |
... | ... | @@ -170,12 +170,6 @@ export default { |
170 | 170 | align: "center", |
171 | 171 | dataIndex: 'apiMethod' |
172 | 172 | }, |
173 | - { | |
174 | - title: '响应耗时(毫秒)', | |
175 | - align: "center", | |
176 | - dataIndex: 'duration' | |
177 | - }, | |
178 | - { | |
179 | 173 | title: '请求内容', |
180 | 174 | align: "left", |
181 | 175 | dataIndex: 'requestBody', |
... | ... | @@ -205,9 +199,8 @@ export default { |
205 | 199 | { |
206 | 200 | title: '请求地址', |
207 | 201 | align: "left", |
208 | - dataIndex: 'url' | |
202 | + dataIndex: 'url', | |
209 | 203 | }, |
210 | - { | |
211 | 204 | title: '请求时间', |
212 | 205 | align: "center", |
213 | 206 | dataIndex: 'requestTime' |
... | ... | @@ -218,6 +211,11 @@ export default { |
218 | 211 | dataIndex: 'responseTime' |
219 | 212 | }, |
220 | 213 | { |
214 | + title: '响应耗时(毫秒)', | |
215 | + align: "center", | |
216 | + dataIndex: 'duration' | |
217 | + }, | |
218 | + { | |
221 | 219 | title: 'httpCode', |
222 | 220 | align: "center", |
223 | 221 | dataIndex: 'httpCode' |
... | ... | @@ -237,7 +235,7 @@ export default { |
237 | 235 | dataIndex: 'action', |
238 | 236 | align: "center", |
239 | 237 | fixed: "right", |
240 | - width: 147, | |
238 | + width: 80, | |
241 | 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 | 8 | import javax.annotation.Resource; |
9 | 9 | import javax.sql.DataSource; |
10 | 10 | |
11 | +import org.apache.commons.beanutils.ConvertUtils; | |
11 | 12 | import org.apache.commons.lang.StringUtils; |
12 | 13 | import org.apache.shiro.SecurityUtils; |
13 | 14 | import org.jeecg.common.api.dto.OnlineAuthDTO; |
... | ... | @@ -751,7 +752,7 @@ public class SysBaseApiImpl implements ISysBaseAPI { |
751 | 752 | @Override |
752 | 753 | public List<LoginUser> queryUserByNames(String[] userNames) { |
753 | 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 | 756 | List<LoginUser> loginUsers = new ArrayList<>(); |
756 | 757 | List<SysUser> sysUsers = userMapper.selectList(queryWrapper); |
757 | 758 | for (SysUser user : sysUsers) { |
... | ... | @@ -901,14 +902,14 @@ public class SysBaseApiImpl implements ISysBaseAPI { |
901 | 902 | @Override |
902 | 903 | public List<JSONObject> queryUsersByUsernames(String usernames) { |
903 | 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 | 906 | return JSON.parseArray(JSON.toJSONString(userMapper.selectList(queryWrapper))).toJavaList(JSONObject.class); |
906 | 907 | } |
907 | 908 | |
908 | 909 | @Override |
909 | 910 | public List<JSONObject> queryUsersByIds(String ids) { |
910 | 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 | 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 | 921 | @Override |
921 | 922 | public List<JSONObject> queryDepartsByOrgcodes(String orgCodes) { |
922 | 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 | 925 | return JSON.parseArray(JSON.toJSONString(sysDepartService.list(queryWrapper))).toJavaList(JSONObject.class); |
925 | 926 | } |
926 | 927 | |
927 | 928 | @Override |
928 | 929 | public List<JSONObject> queryDepartsByIds(String ids) { |
929 | 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 | 932 | return JSON.parseArray(JSON.toJSONString(sysDepartService.list(queryWrapper))).toJavaList(JSONObject.class); |
932 | 933 | } |
933 | 934 | |
... | ... |