src/main/java/org/springblade/modules/organ/entity/Organ.java
@@ -45,7 +45,7 @@ * 用户id */ @ApiModelProperty(value = "用户id") private Integer uid; private String uid; /** * 组织 */ @@ -62,9 +62,6 @@ * 进度 */ @ApiModelProperty(value = "进度") private Double speed; private String type; } src/main/java/org/springblade/modules/organ/mapper/OrganMapper.xml
@@ -8,16 +8,15 @@ <result column="uid" property="uid"/> <result column="organization" property="organization"/> <result column="time" property="time"/> <result column=" speed" property=" speed"/> <result column="type" property="type"/> </resultMap> <select id="selectOrganPage" resultMap="organResultMap"> select * from sys_organ where is_deleted = 0 select * from sys_organ where 1=1 <if test="organ.uid != null and organ.uid != ''"> and uid =#{organ.uid} </if> </select> </mapper>