| | |
| | | for (List<Object> list : listObject) { |
| | | EmpBaseInfo empBaseInfo = new EmpBaseInfo(); |
| | | empBaseInfo.setEmpId(SequenceUtil.generateId(0L, ModuleCode.HR_EMPLOYEE)); |
| | | empBaseInfo.setEmpNumb(list.get(0).toString()); |
| | | empBaseInfo.setArchivesNumb(list.get(0).toString()); |
| | | empBaseInfo.setEmpNumb(list.get(1).toString()); |
| | | empBaseInfo.setEmpName(list.get(2).toString()); |
| | | List<Dept> depts = CastUtil.castList(redisService.get("depts"), Dept.class); |
| | | empBaseInfo.setDeptName(list.get(1).toString()); |
| | | Long deptId=depts.stream().filter(d -> d.getDeptName().equals(list.get(1).toString())).findFirst().get().getDeptId(); |
| | | empBaseInfo.setDeptName(list.get(3).toString()); |
| | | Long deptId = depts.stream().filter(d -> d.getDeptName().equals(list.get(3).toString())).findFirst().get() |
| | | .getDeptId(); |
| | | empBaseInfo.setDeptId(deptId); |
| | | empBaseInfo.setJobName(list.get(2).toString()); |
| | | empBaseInfo.setEmpName(list.get(3).toString()); |
| | | empBaseInfo.setCertificateNumb(list.get(4).toString()); |
| | | empBaseInfo.setSex("男".equals(list.get(5).toString())?"1":"0"); |
| | | if (StringUtils.isNotBlank(list.get(6).toString())) { |
| | | empBaseInfo.setAge(Integer.valueOf(list.get(6).toString())); |
| | | } |
| | | empBaseInfo.setEducation(list.get(7).toString()); |
| | | empBaseInfo.setNativePlace(list.get(8).toString()); |
| | | empBaseInfo.setTelePhone(list.get(9).toString()); |
| | | empBaseInfo.setJobName(list.get(4).toString()); |
| | | empBaseInfo.setEmpType(list.get(5).toString()); |
| | | empBaseInfo.setSex("男".equals(list.get(6).toString()) ? "1" : "2"); |
| | | empBaseInfo.setNation(list.get(7).toString()); |
| | | empBaseInfo.setCertificateNumb(list.get(8).toString()); |
| | | empBaseInfo.setMarriage(list.get(9).toString()); |
| | | if (StringUtils.isNotBlank(list.get(10).toString())) { |
| | | empBaseInfo.setEntryDate(DateUtil.parseDate(list.get(10).toString())); |
| | | empBaseInfo.setStature(Integer.valueOf(list.get(10).toString())); |
| | | } |
| | | empBaseInfo.setPolitics(list.get(11).toString()); |
| | | if (StringUtils.isNotBlank(list.get(12).toString())) { |
| | | empBaseInfo.setEntryDate(DateUtil.parseDate(list.get(12).toString())); |
| | | } |
| | | empBaseInfo.setEducation(list.get(13).toString()); |
| | | if (StringUtils.isNotBlank(list.get(14).toString())) { |
| | | empBaseInfo.setSeniority(Integer.valueOf(list.get(14).toString())); |
| | | } |
| | | empBaseInfo.setNativePlace(list.get(15).toString()); |
| | | empBaseInfo.setCensusAddress(list.get(16).toString()); |
| | | empBaseInfo.setCurrentAddress(list.get(17).toString()); |
| | | empBaseInfo.setGuardNumb(list.get(18).toString()); |
| | | empBaseInfo.setReturnReceipt(list.get(19).toString()); |
| | | empBaseInfo.setTelePhone(list.get(20).toString()); |
| | | empBaseInfo.setIntroducer(list.get(21).toString()); |
| | | empBaseInfo.setBankName(list.get(22).toString()); |
| | | empBaseInfo.setBankNumb(list.get(23).toString()); |
| | | empBaseInfo.setInsuranceType(list.get(24).toString()); |
| | | empBaseInfo.setSocialNumb(list.get(25).toString()); |
| | | empBaseInfo.setFamily(list.get(26).toString()); |
| | | empBaseInfo.setUrgencyPhone(list.get(27).toString()); |
| | | empBaseInfo.setHandbookStatus(list.get(28).toString()); |
| | | empBaseInfo.setEmpCardStatus(list.get(29).toString()); |
| | | empBaseInfo.setCertificateList(list.get(30).toString()); |
| | | empBaseInfo.setEmpStatus("0"); |
| | | this.save(empBaseInfo); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | manOld=sysConfig.get(0).getConfigValue(); |
| | | womanOld=sysConfig.get(1).getConfigValue(); |
| | | } |
| | | //在职员工,正式员工,临时员工,正常离职,自动离职,公司辞退 判断条件离职申请日期 |
| | | //在职员工,正式员工,临时员工,超龄员工 |
| | | Map<String, Object> stringObjectMap = this.baseMapper.countBaseInfoList(index,btime,etime,manOld,womanOld); |
| | | //正常离职,自动离职,公司辞退 判断条件创建日期 |
| | | Map<String, Object> zclzObjectMap =this.baseMapper.countZcygBaseInfoList(index,btime,etime); |
| | | if(zclzObjectMap!=null){ |
| | | stringObjectMap.put("zclz",zclzObjectMap.get("zclz").toString()); |
| | | stringObjectMap.put("zdlz",zclzObjectMap.get("zdlz").toString()); |
| | | stringObjectMap.put("gsct",zclzObjectMap.get("gsct").toString()); |
| | | } |
| | | //新进员工 判断条件入职日期 |
| | | Integer xjygObjectMap =this.baseMapper.countXjygBaseInfoList(index,btime,etime); |
| | | if(xjygObjectMap!=null){ |
| | | stringObjectMap.put("xjyg",xjygObjectMap); |
| | | } |
| | | //离职员工总数,解除合同 判断条件离职申请日期 |
| | | |
| | | //离职员工总数 |
| | | Integer empStatus = this.baseMapper.selectCount(new QueryWrapper<EmpBaseInfo>().eq("empStatus", 1)); |
| | | if(empStatus!=null){ |
| | | stringObjectMap.put("lzyg",empStatus); |
| | | } |
| | | //解除合同 判断条件离职申请日期 |
| | | Map<String, Object> lzygObjectMap =this.baseMapper.countLzygBaseInfoList(index,btime,etime); |
| | | if(lzygObjectMap!=null){ |
| | | stringObjectMap.put("lzyg",lzygObjectMap.get("lzyg").toString()); |
| | | stringObjectMap.put("jcht",lzygObjectMap.get("jcht").toString()); |
| | | } |
| | | //辞职申请员工总数 判断条件辞职申请日期 |
| | |
| | | if(czygObjectMap!=null){ |
| | | stringObjectMap.put("czyg",czygObjectMap); |
| | | } |
| | | //有效合同,新签合同,续签合同 判断条件合同签订日期 |
| | | //有效合同 判断条件合同签订日期 |
| | | Map<String, Object> yxhtObjectMap =this.baseMapper.countYxhtBaseInfoList(index,btime,etime); |
| | | if(yxhtObjectMap!=null){ |
| | | stringObjectMap.put("yxht",yxhtObjectMap.get("yxht").toString()); |
| | | stringObjectMap.put("xinqht",yxhtObjectMap.get("xinqht").toString()); |
| | | stringObjectMap.put("xqht",yxhtObjectMap.get("xqht").toString()); |
| | | } |
| | | //新签合同,续签合同 判断条件合同签订日期 |
| | | Map<String, Object> xqhtObjectMap =this.baseMapper.countXqhtBaseInfoList(index,btime,etime); |
| | | if(yxhtObjectMap!=null){ |
| | | stringObjectMap.put("xinqht",xqhtObjectMap.get("xinqht").toString()); |
| | | stringObjectMap.put("xqht",xqhtObjectMap.get("xqht").toString()); |
| | | } |
| | | //到期合同 判断条件合同结束时间 |
| | | Integer dqhtObjectMap =this.baseMapper.countDqhtBaseInfoList(index,btime,etime); |