From bb8986c98de7a9b9ac607faacbdf567f0511c597 Mon Sep 17 00:00:00 2001 From: caixiang <939387484@qq.com> Date: Mon, 27 Feb 2023 15:49:58 +0800 Subject: [PATCH] mark --- .../src/main/resources/mapper/SysDeptDao.xml | 9 ++++----- .../main/resources/mapper/SysDictDataDao.xml | 2 +- .../main/resources/mapper/SysDictTypeDao.xml | 2 +- .../src/main/resources/mapper/SysMenuDao.xml | 6 +++--- .../src/main/resources/mapper/SysParamsDao.xml | 5 ++--- .../resources/mapper/SysRoleDataScopeDao.xml | 4 +--- .../main/resources/mapper/SysRoleMenuDao.xml | 5 ++--- .../main/resources/mapper/SysRoleUserDao.xml | 4 +--- .../src/main/resources/mapper/SysUserDao.xml | 11 +++++------ .../src/main/resources/application-dev.yml | 18 +++++++++--------- .../java/com/cnbm/dispatch/KukaJoinThread.java | 12 ++++++------ 11 files changed, 35 insertions(+), 43 deletions(-) diff --git a/ym-admin/src/main/resources/mapper/SysDeptDao.xml b/ym-admin/src/main/resources/mapper/SysDeptDao.xml index 5101128..a558f10 100644 --- a/ym-admin/src/main/resources/mapper/SysDeptDao.xml +++ b/ym-admin/src/main/resources/mapper/SysDeptDao.xml @@ -6,9 +6,8 @@ select t1.*,(select t2.name from sys_dept t2 where t2.id=t1.pid)parentName from sys_dept t1 - where t1.id = #{value} AND t1.valid = 1 + where t1.id = #{value} \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysDictDataDao.xml b/ym-admin/src/main/resources/mapper/SysDictDataDao.xml index 8c88067..fa2f89f 100644 --- a/ym-admin/src/main/resources/mapper/SysDictDataDao.xml +++ b/ym-admin/src/main/resources/mapper/SysDictDataDao.xml @@ -4,7 +4,7 @@ \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml b/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml index e2863a1..0698e4e 100644 --- a/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml +++ b/ym-admin/src/main/resources/mapper/SysDictTypeDao.xml @@ -4,7 +4,7 @@ \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysMenuDao.xml b/ym-admin/src/main/resources/mapper/SysMenuDao.xml index a831e30..078d5a4 100644 --- a/ym-admin/src/main/resources/mapper/SysMenuDao.xml +++ b/ym-admin/src/main/resources/mapper/SysMenuDao.xml @@ -5,7 +5,7 @@ select t3.permissions from sys_role_user t1 left join sys_role_menu t2 on t1.role_id = t2.role_id - left join sys_menu t3 on t2.menu_id = t3.id + left join sys_menu t3 on t2.menu_id = t3.id where t1.user_id = #{userId} AND t1.valid = 1 order by t3.sort asc @@ -43,5 +43,5 @@ - + \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysParamsDao.xml b/ym-admin/src/main/resources/mapper/SysParamsDao.xml index 3bbf120..3ada3b6 100644 --- a/ym-admin/src/main/resources/mapper/SysParamsDao.xml +++ b/ym-admin/src/main/resources/mapper/SysParamsDao.xml @@ -5,7 +5,7 @@ @@ -14,11 +14,10 @@ #{id} - AND valid = 1 - update sys_params set param_value = #{paramValue} where param_code = #{paramCode} AND valid = 1 + update sys_params set param_value = #{paramValue} where param_code = #{paramCode} \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml b/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml index 60c96d4..e01c48a 100644 --- a/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml +++ b/ym-admin/src/main/resources/mapper/SysRoleDataScopeDao.xml @@ -4,13 +4,12 @@ @@ -18,7 +17,6 @@ #{roleId} - AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml b/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml index 8ceb0f2..aa4261a 100644 --- a/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml +++ b/ym-admin/src/main/resources/mapper/SysRoleMenuDao.xml @@ -4,7 +4,7 @@ @@ -12,10 +12,9 @@ #{roleId} - AND valid = 1 - delete from sys_role_menu where menu_id = #{value} AND valid = 1 + delete from sys_role_menu where menu_id = #{value} \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml b/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml index 0380ae0..1ece0b5 100644 --- a/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml +++ b/ym-admin/src/main/resources/mapper/SysRoleUserDao.xml @@ -8,7 +8,6 @@ #{roleId} - AND valid = 1 @@ -16,11 +15,10 @@ #{userId} - AND valid = 1 \ No newline at end of file diff --git a/ym-admin/src/main/resources/mapper/SysUserDao.xml b/ym-admin/src/main/resources/mapper/SysUserDao.xml index 399968f..c305412 100644 --- a/ym-admin/src/main/resources/mapper/SysUserDao.xml +++ b/ym-admin/src/main/resources/mapper/SysUserDao.xml @@ -5,7 +5,7 @@ select t1.*, (select t2.name from sys_dept t2 where t2.id=t1.dept_id) deptName from sys_user t1 - where t1.id = #{value} AND t1.valid = 1 + where t1.id = #{value} - update sys_user set password = #{newPassword} where id = #{id} AND valid = 1 + update sys_user set password = #{newPassword} where id = #{id} \ No newline at end of file diff --git a/ym-gateway/src/main/resources/application-dev.yml b/ym-gateway/src/main/resources/application-dev.yml index d85aabd..3bbe591 100644 --- a/ym-gateway/src/main/resources/application-dev.yml +++ b/ym-gateway/src/main/resources/application-dev.yml @@ -61,14 +61,14 @@ dynamic: # username: root # password: 1qaz@WSX3edc$RFV ## camline系统 -# camline: -# driver-class-name: com.mysql.cj.jdbc.Driver -# url: jdbc:mysql://mysql.picaiba.com:30307/mt_cigs4?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true -# username: root -# password: 1qaz@WSX3edc$RFV -# camline: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://10.0.1.23:3306/synapse?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true - username: offline_data - password: tpvmfab4 \ No newline at end of file + url: jdbc:mysql://mysql.picaiba.com:30307/mt_cigs4?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true + username: root + password: 1qaz@WSX3edc$RFV +# +# camline: +# driver-class-name: com.mysql.cj.jdbc.Driver +# url: jdbc:mysql://10.0.1.23:3306/synapse?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true +# username: offline_data +# password: tpvmfab4 \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/dispatch/KukaJoinThread.java b/ym-packing/src/main/java/com/cnbm/dispatch/KukaJoinThread.java index 41c714d..bf0016a 100644 --- a/ym-packing/src/main/java/com/cnbm/dispatch/KukaJoinThread.java +++ b/ym-packing/src/main/java/com/cnbm/dispatch/KukaJoinThread.java @@ -150,12 +150,12 @@ public class KukaJoinThread implements ApplicationRunner { @Override public void run(ApplicationArguments args) throws Exception { - kukaStep1.scheduleAtFixedRate(new Runnable() { - @Override - public void run() { - logger.info("================= 现在开始执行 过程一 任务 =================="); - } - },1,1, TimeUnit.SECONDS); +// kukaStep1.scheduleAtFixedRate(new Runnable() { +// @Override +// public void run() { +// logger.info("================= 现在开始执行 过程一 任务 =================="); +// } +// },1,1, TimeUnit.SECONDS);