修复sql报错
This commit is contained in:
parent
4ef02281ce
commit
b130c1ffa4
|
@ -123,6 +123,10 @@ public class OrganizationService {
|
|||
list.add(r.getParentId());
|
||||
}
|
||||
});
|
||||
|
||||
// ignore list size is 0
|
||||
list.add("no_such_id");
|
||||
|
||||
OrganizationExample organizationExample = new OrganizationExample();
|
||||
organizationExample.createCriteria().andIdIn(list);
|
||||
return organizationMapper.selectByExample(organizationExample);
|
||||
|
|
|
@ -336,11 +336,11 @@
|
|||
rule: {
|
||||
id: [
|
||||
{required: true, message: this.$t('user.input_id'), trigger: 'blur'},
|
||||
{min: 2, max: 20, message: this.$t('commons.input_limit', [2, 20]), trigger: 'blur'}
|
||||
{min: 2, max: 50, message: this.$t('commons.input_limit', [2, 50]), trigger: 'blur'}
|
||||
],
|
||||
name: [
|
||||
{required: true, message: this.$t('user.input_name'), trigger: 'blur'},
|
||||
{min: 2, max: 20, message: this.$t('commons.input_limit', [2, 20]), trigger: 'blur'},
|
||||
{min: 2, max: 50, message: this.$t('commons.input_limit', [2, 50]), trigger: 'blur'},
|
||||
{
|
||||
required: true,
|
||||
pattern: /^[\u4e00-\u9fa5_a-zA-Z0-9.·-]+$/,
|
||||
|
|
|
@ -18,6 +18,8 @@ export default {
|
|||
let login = function () {
|
||||
MessageBox.alert(i18n.t('commons.tips'), i18n.t('commons.prompt'), {
|
||||
callback: () => {
|
||||
axios.get("/signout");
|
||||
localStorage.setItem('Admin-Token', "{}");
|
||||
window.location.href = "/login"
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue