feat:人员统计修改

hangao
wangxy 6 days ago
parent 559fcf5c65
commit f1e81d3dc2

@ -130,7 +130,7 @@ public class SysUsernumController extends BaseController {
} }
private List<String> sharType = Arrays.asList("已登记", "已申报", "已审核", "已离职","已离岗"); private List<String> sharType = Arrays.asList("已登记", "已审查", "已定岗", "已离职","已离岗");
private List<String> smType = Arrays.asList("一般涉密人员", "重要涉密人员", "核心涉密人员"); private List<String> smType = Arrays.asList("一般涉密人员", "重要涉密人员", "核心涉密人员");
@ -172,10 +172,10 @@ public class SysUsernumController extends BaseController {
AtomicReference<Object> value = new AtomicReference<>(0L); AtomicReference<Object> value = new AtomicReference<>(0L);
if("已登记".equals(name)){ if("已登记".equals(name)){
value.set(userCountDTO.getYdj()); value.set(userCountDTO.getYdj());
}else if("已申报".equals(name)){ }else if("已审查".equals(name)){
value.set(userCountDTO.getYsb()); value.set(userCountDTO.getYsc());
}else if("已审核".equals(name)){ }else if("已定岗".equals(name)){
value.set(userCountDTO.getYsh()); value.set(userCountDTO.getYdg());
}else if("已离职".equals(name)){ }else if("已离职".equals(name)){
value.set(userCountDTO.getYlz()); value.set(userCountDTO.getYlz());
}else{ }else{

@ -300,7 +300,7 @@
legend: { legend: {
orient: 'vertical', orient: 'vertical',
x: 'right', x: 'right',
data: ['已登记', '已申报', '已审核', '已离职', '已离岗'], data: ['已登记', '已审查', '已定岗', '已离职', '已离岗'],
top: '60%', top: '60%',
left: '81%' left: '81%'
}, },
@ -308,7 +308,7 @@
{ {
type: 'pie', type: 'pie',
data: response.data.data, data: response.data.data,
center: ['40%', '55%'] center: ['43%', '55%']
} }
] ]
}); });

@ -22,11 +22,11 @@ public class UserCountDTO implements Serializable {
@ApiModelProperty(value = "已登记") @ApiModelProperty(value = "已登记")
private Integer ydj; private Integer ydj;
@ApiModelProperty(value = "已申报") @ApiModelProperty(value = "已审查")
private Integer ysb; private Integer ysc;
@ApiModelProperty(value = "已审核") @ApiModelProperty(value = "已定岗")
private Integer ysh; private Integer ydg;
@ApiModelProperty(value = "已离职") @ApiModelProperty(value = "已离职")
private Integer ylz; private Integer ylz;

@ -318,8 +318,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectCountUser" resultType="com.ruoyi.system.domain.count.UserCountDTO"> <select id="selectCountUser" resultType="com.ruoyi.system.domain.count.UserCountDTO">
SELECT SELECT
SUM (CASE WHEN examine = '2' THEN 1 ELSE 0 END) AS ydj, SUM (CASE WHEN examine = '2' THEN 1 ELSE 0 END) AS ydj,
SUM (CASE WHEN examine = '3' THEN 1 ELSE 0 END) AS ysb, SUM (CASE WHEN examine = '3' THEN 1 ELSE 0 END) AS ydg,
SUM (CASE WHEN examine = '0' THEN 1 ELSE 0 END) AS ysh, SUM (CASE WHEN examine = '0' THEN 1 ELSE 0 END) AS ysc,
(SELECT SUM (CASE WHEN leavestate = '1' THEN 1 ELSE 0 END) (SELECT SUM (CASE WHEN leavestate = '1' THEN 1 ELSE 0 END)
FROM td_leave t) as ylz, FROM td_leave t) as ylz,
(SELECT SUM (CASE WHEN leavestate = '2' THEN 1 ELSE 0 END) (SELECT SUM (CASE WHEN leavestate = '2' THEN 1 ELSE 0 END)

Loading…
Cancel
Save