bug修改

This commit is contained in:
mashuai 2024-09-30 15:40:24 +08:00
parent 87363ec26b
commit 11dc85a65b
3 changed files with 14 additions and 4 deletions

View File

@ -244,6 +244,13 @@ public class ProjectViewServiceImpl {
if (StringUtils.isNotBlank(people.getPhone())) {
people.setPhone(Sm4Utils.decode(people.getPhone()));
}
if (people.getSex() != null) {
if (people.getSex() == 0) {
people.setSexName("");
} else if (people.getSex() == 1) {
people.setSexName("");
}
}
extracted(people);
});
}

View File

@ -78,10 +78,14 @@ public class TeamRecord implements Serializable {
@ApiModelProperty(value="性别")
private Integer sex;
/**
* 性别名称
*/
private String sexName;
/**
* 班组人数
*/
@Excel(name = "班组人数")
private Integer peopleCount;
private static final long serialVersionUID = 1L;

View File

@ -30,8 +30,8 @@
tt.rel_phone as masterPhone,
count(tp.id) as peopleCount
from tb_team tt
left join tb_people tp on tt.id = tp.team_id and tp.del_flag = 0 and tt.js_time IS NULL
where tt.del_flag = 0
left join tb_people tp on tt.id = tp.team_id and tp.del_flag = 0
where tt.del_flag = 0 AND tt.js_time IS NULL
<if test="proId != null">
AND tt.pro_id = #{proId}
</if>
@ -42,7 +42,6 @@
and tt.rel_name like concat('%',#{masterName},'%')
</if>
group by tt.id
order by tt.team_name
</select>
<!-- 施工人员详情页 -->