hanfucheng 6 tháng trước cách đây
mục cha
commit
24177d0725

+ 1 - 1
data-ui/src/views/data/digitaltraffic/level/IForm.vue

@@ -170,7 +170,7 @@
         this.title = a + b;
         this.title = a + b;
         this.getCenterMonitorlList();
         this.getCenterMonitorlList();
         this.$nextTick(() => {
         this.$nextTick(() => {
-          if (id,this.form.type) {
+          if (id) {
             getLevel(id,this.form.type).then(response => {
             getLevel(id,this.form.type).then(response => {
               this.form = response.data;
               this.form = response.data;
               this.form.userList.length > 0 ? this.$refs.ITabs.init(this.form.userList) : []
               this.form.userList.length > 0 ? this.$refs.ITabs.init(this.form.userList) : []

+ 1 - 1
src/main/resources/mapper/digitaltraffic/CenterdataTSupermapLevelMapper.xml

@@ -61,7 +61,7 @@
         </if>
         </if>
         LEFT JOIN ${database_system}.sys_dept d ON d.dept_id = a.dept_id
         LEFT JOIN ${database_system}.sys_dept d ON d.dept_id = a.dept_id
         <where>
         <where>
-            <if test="name != null  and name != ''">and name like concat('%', #{name}, '%')</if>
+            <if test="name != null  and name != ''">and a.name like concat('%', #{name}, '%')</if>
             <if test="mapAddress != null  and mapAddress != ''">and map_address = #{mapAddress}</if>
             <if test="mapAddress != null  and mapAddress != ''">and map_address = #{mapAddress}</if>
             <if test="mapData != null  and mapData != ''">and map_data like concat('%', #{mapData}, '%')</if>
             <if test="mapData != null  and mapData != ''">and map_data like concat('%', #{mapData}, '%')</if>
             <if test="mapName != null  and mapName != ''">and map_name like concat('%', #{mapName}, '%')</if>
             <if test="mapName != null  and mapName != ''">and map_name like concat('%', #{mapName}, '%')</if>