|
|
|
@ -3,6 +3,7 @@ package com.weaver.seconddev.jcl.organization.service.impl;
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
|
import com.weaver.seconddev.jcl.organization.entity.Employee;
|
|
|
|
|
import com.weaver.seconddev.jcl.organization.service.EmployeeInformationService;
|
|
|
|
|
import com.weaver.seconddev.jcl.organization.util.CommonUtils;
|
|
|
|
|
import com.weaver.seconddev.jcl.organization.util.DatabaseUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
@ -33,8 +34,30 @@ public class EmployeeInformationServiceImpl implements EmployeeInformationServic
|
|
|
|
|
paramList.add(employee.getSfz_1mhf());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<Map<String, Object>> recordList = databaseUtils.getSqlList("LOGIC", "weaver-ebuilder-form-service",sql,paramList);
|
|
|
|
|
List<Map<String, Object>> recordList = databaseUtils.getSqlList(sql,paramList);
|
|
|
|
|
if (recordList.size() > 0){
|
|
|
|
|
Map<String, Object> userMap = recordList.get(0);
|
|
|
|
|
|
|
|
|
|
String ssbm= recordList.get(0).get("ssbm").toString();
|
|
|
|
|
|
|
|
|
|
String ygzt = CommonUtils.null2String(userMap.get("ygzt"));
|
|
|
|
|
if (ygzt.equals("5")){
|
|
|
|
|
//离职
|
|
|
|
|
sql = "select zhgzr,lzqbm from uf_jcl_lzxxjl where glyg=? ";
|
|
|
|
|
List<Map<String, Object>> resignList = databaseUtils.getSqlList(sql, CommonUtils.getParamList(userMap.get("id").toString()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if (ygzt.equals("6")){
|
|
|
|
|
//退休
|
|
|
|
|
sql = "select zhgzr,txqbm from uf_jcl_txxxjl where glyg=? ";
|
|
|
|
|
List<Map<String, Object>> retireList = databaseUtils.getSqlList(sql, CommonUtils.getParamList(userMap.get("id").toString()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
sql = "select id,name from department where id=?";
|
|
|
|
|
List<Map<String, Object>> departmentList = databaseUtils.getSqlList(sql, CommonUtils.getParamList(ssbm));
|
|
|
|
|
userMap.put("departname",departmentList.get(0).get("name"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return recordList;
|
|
|
|
|
}
|
|
|
|
|