Ver Fonte

修复sql问题

xucaiqin há 2 anos atrás
pai
commit
4e3050b99f

+ 3 - 0
iot-module/iot-module-system/iot-module-system-biz/src/main/java/com/middle/platform/system/biz/pojo/req/SysUserUpdPara.java

@@ -21,16 +21,19 @@ public class SysUserUpdPara {
     /**
      * 姓名
      */
+    @NotBlank(message = "姓名不能为空")
     private String name;
 
     /**
      * 性别0未知1男2女
      */
+    @NotNull(message = "性别不能为空")
     private Integer sex;
 
     /**
      * 联系电话
      */
+    @NotBlank(message = "联系电话不能为空")
     private String phone;
 
     /**

+ 1 - 0
iot-module/iot-module-system/iot-module-system-biz/src/main/resources/mapper/SysUserMapper.xml

@@ -49,6 +49,7 @@
           <if test="username != null and username != ''">
               and su.username = #{username,jdbcType=VARCHAR}
           </if>
+          and su.del_flag = 0
           limit 1
       </where>
   </select>