|
|
|
@ -52,6 +52,7 @@ import com.engine.organization.util.relation.EcHrmRelationUtil;
|
|
|
|
|
import com.engine.organization.util.tree.SearchTreeUtil;
|
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
|
import weaver.general.StringUtil;
|
|
|
|
|
import weaver.general.Util;
|
|
|
|
|
import weaver.hrm.User;
|
|
|
|
@ -431,6 +432,16 @@ public class JobServiceImpl extends Service implements JobService {
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> getHrmListByJobId(Long jobId) {
|
|
|
|
|
OrganizationWeaTable<EmployeeTableVO> table = new OrganizationWeaTable<>(user, EmployeeTableVO.class);
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
List<String> ids = new ArrayList<>();
|
|
|
|
|
rs.executeQuery("select id from cus_fielddata where field100002 = ?",jobId);
|
|
|
|
|
while (rs.next()) {
|
|
|
|
|
ids.add(Util.null2String(rs.getString("id")));
|
|
|
|
|
}
|
|
|
|
|
if (CollectionUtils.isEmpty(ids)){
|
|
|
|
|
ids.add("-1");
|
|
|
|
|
}
|
|
|
|
|
table.setSqlwhere(" where id in ("+StringUtils.join(ids,",")+") and status<4");
|
|
|
|
|
WeaResultMsg result = new WeaResultMsg(false);
|
|
|
|
|
result.putAll(table.makeDataResult());
|
|
|
|
|
result.success();
|
|
|
|
|