|
|
@ -8,6 +8,7 @@ import com.engine.matfron.util.CommonDateUtil;
|
|
|
|
import com.engine.matfron.util.CommonUtils;
|
|
|
|
import com.engine.matfron.util.CommonUtils;
|
|
|
|
import com.weaver.general.BaseBean;
|
|
|
|
import com.weaver.general.BaseBean;
|
|
|
|
import lombok.SneakyThrows;
|
|
|
|
import lombok.SneakyThrows;
|
|
|
|
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
import weaver.general.Util;
|
|
|
|
import weaver.general.Util;
|
|
|
@ -43,7 +44,10 @@ public class StatisticsPortalServiceImpl extends Service implements StatisticsPo
|
|
|
|
rs.next();
|
|
|
|
rs.next();
|
|
|
|
Integer count = Util.getIntValue(rs.getString("count"), 0);
|
|
|
|
Integer count = Util.getIntValue(rs.getString("count"), 0);
|
|
|
|
portalTopVOList.add(PortalTopVO.builder().title("在职人数总数").count(count).build());
|
|
|
|
portalTopVOList.add(PortalTopVO.builder().title("在职人数总数").count(count).build());
|
|
|
|
portalTopVOList.add(PortalTopVO.builder().title("社保缴纳人数").count(0).build());
|
|
|
|
|
|
|
|
|
|
|
|
rs.executeQuery("select count(1) as sum from hrsa_insurance_base_info where run_status in (2,3) and delete_type = 0");
|
|
|
|
|
|
|
|
rs.next();
|
|
|
|
|
|
|
|
portalTopVOList.add(PortalTopVO.builder().title("社保缴纳人数").count(Util.getIntValue(rs.getString("sum"), 0)).build());
|
|
|
|
|
|
|
|
|
|
|
|
List<String> birthdayList = new ArrayList<>();
|
|
|
|
List<String> birthdayList = new ArrayList<>();
|
|
|
|
rs.executeQuery("select birthday from hrmresource where status < 4 and birthday is not null and birthday <> ''");
|
|
|
|
rs.executeQuery("select birthday from hrmresource where status < 4 and birthday is not null and birthday <> ''");
|
|
|
@ -91,10 +95,11 @@ public class StatisticsPortalServiceImpl extends Service implements StatisticsPo
|
|
|
|
while (rs.next()) {
|
|
|
|
while (rs.next()) {
|
|
|
|
int deptid = Util.getIntValue(rs.getString("id"));
|
|
|
|
int deptid = Util.getIntValue(rs.getString("id"));
|
|
|
|
int num = Util.getIntValue(rs.getString("num"));
|
|
|
|
int num = Util.getIntValue(rs.getString("num"));
|
|
|
|
String allSupDepartment;
|
|
|
|
|
|
|
|
allSupDepartment = comInfo.getAllSupDepartment(String.valueOf(deptid));
|
|
|
|
ArrayList<String> allSubDepartment = new ArrayList<>();
|
|
|
|
if (StringUtils.isNotEmpty(allSupDepartment)) {
|
|
|
|
comInfo.getAllChildDeptByDepId(allSubDepartment, String.valueOf(deptid));
|
|
|
|
int count = countBydeptIds(allSupDepartment);
|
|
|
|
if (CollectionUtils.isNotEmpty(allSubDepartment)) {
|
|
|
|
|
|
|
|
int count = countBydeptIds(StringUtils.join(allSubDepartment,","));
|
|
|
|
num = num + count;
|
|
|
|
num = num + count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|