员工管理,grandle更新
parent
371aa36b11
commit
4dbbaf4aed
@ -0,0 +1,50 @@
|
|||||||
|
package com.weaver.seconddev.jcl.organization.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* uf_jcl_employee_information
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class Employee {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 姓名
|
||||||
|
*/
|
||||||
|
private String xm;
|
||||||
|
/**
|
||||||
|
* 员工状态
|
||||||
|
*/
|
||||||
|
private String ygzt;
|
||||||
|
/**
|
||||||
|
* 入职日期
|
||||||
|
*/
|
||||||
|
private String rzrq;
|
||||||
|
/**
|
||||||
|
*手机
|
||||||
|
*/
|
||||||
|
private String sj_woiy;
|
||||||
|
/**
|
||||||
|
*邮箱
|
||||||
|
*/
|
||||||
|
private String yx_gvex;
|
||||||
|
/**
|
||||||
|
*身份证
|
||||||
|
*/
|
||||||
|
private String sfz_1mhf;
|
||||||
|
/**
|
||||||
|
*所属部门
|
||||||
|
*/
|
||||||
|
private String ssbm;
|
||||||
|
/**
|
||||||
|
*所属公司
|
||||||
|
*/
|
||||||
|
private String ssgs;
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.weaver.seconddev.jcl.organization.service;
|
||||||
|
|
||||||
|
import com.weaver.seconddev.jcl.organization.entity.Employee;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public interface EmployeeInformationService {
|
||||||
|
|
||||||
|
List<Map<String, Object>> getInformation(Employee employee);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,41 @@
|
|||||||
|
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.DatabaseUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class EmployeeInformationServiceImpl implements EmployeeInformationService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private DatabaseUtils databaseUtils;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Map<String, Object>> getInformation(Employee employee) {
|
||||||
|
|
||||||
|
String sql = "select * from uf_jcl_employee_information where 1=1";
|
||||||
|
List<String> paramList = Lists.newArrayList();
|
||||||
|
if (employee.getSj_woiy() != null){
|
||||||
|
sql = sql+ " and sj_woiy=?";
|
||||||
|
paramList.add(employee.getSj_woiy());
|
||||||
|
}else if (employee.getYx_gvex() != null){
|
||||||
|
sql = sql+ " and yx_gvex=?";
|
||||||
|
paramList.add(employee.getYx_gvex());
|
||||||
|
}else if (employee.getSfz_1mhf() != null){
|
||||||
|
sql = sql+ " and sfz_1mhf=?";
|
||||||
|
paramList.add(employee.getSfz_1mhf());
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Map<String, Object>> recordList = databaseUtils.getSqlList("LOGIC", "weaver-ebuilder-form-service",sql,paramList);
|
||||||
|
|
||||||
|
|
||||||
|
return recordList;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue