#QC3421143# 基本状况分析明细数据,工龄状况修改为司龄状况

深圳市京贵投资有限公司
Chengliang 6 months ago
parent 2dcf46b579
commit 2ef0c3a229

@ -1,6 +1,6 @@
<component name="ArtifactManager"> <component name="ArtifactManager">
<artifact type="jar" name="weaver-develop:jar"> <artifact type="jar" name="weaver-develop:jar">
<output-path>$PROJECT_DIR$/out/artifacts/weaver_develop_jar</output-path> <output-path>$PROJECT_DIR$/../../../../weaver/ecology/WEB-INF/lib</output-path>
<root id="archive" name="weaver-develop.jar"> <root id="archive" name="weaver-develop.jar">
<element id="module-output" name="weaver-develop" /> <element id="module-output" name="weaver-develop" />
</root> </root>

@ -379,7 +379,8 @@ public List<Map<String,String>> getSexRpResult(HttpServletRequest request, HttpS
/* /*
* *
* *
* * #QC3421143# 20241211
*
*/ */
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@ -506,9 +507,9 @@ public List<Map<String,String>> getSeniorityRpResult(HttpServletRequest request,
/*先算出工龄记录为空的人数*/ /*先算出工龄记录为空的人数*/
if(sqlwhere.equals("")){ if(sqlwhere.equals("")){
sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and (workstartdate is null or workstartdate ='')"; sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and (companystartdate is null or companystartdate ='')";
}else{ }else{
sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and (workstartdate is null or workstartdate ='')"+sqlwhere; sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and (companystartdate is null or companystartdate ='')"+sqlwhere;
} }
rs.executeSql(sqlstr); rs.executeSql(sqlstr);
@ -530,9 +531,9 @@ public List<Map<String,String>> getSeniorityRpResult(HttpServletRequest request,
int tempyear = Util.getIntValue(Util.add0(today.get(Calendar.YEAR), 4));//当前年份 int tempyear = Util.getIntValue(Util.add0(today.get(Calendar.YEAR), 4));//当前年份
if(rs.getDBType().equals("oracle")){ if(rs.getDBType().equals("oracle")){
sqlstr="select min(workstartdate) from HrmResource where (accounttype is null or accounttype=0) and workstartdate is not null "; sqlstr="select min(companystartdate) from HrmResource where (accounttype is null or accounttype=0) and companystartdate is not null ";
}else{ }else{
sqlstr="select min(workstartdate) from HrmResource where (accounttype is null or accounttype=0) and workstartdate is not null and workstartdate !=''"; sqlstr="select min(companystartdate) from HrmResource where (accounttype is null or accounttype=0) and companystartdate is not null and companystartdate !=''";
} }
rs.executeSql(sqlstr); rs.executeSql(sqlstr);
rs.next(); rs.next();
@ -558,15 +559,15 @@ public List<Map<String,String>> getSeniorityRpResult(HttpServletRequest request,
if(rs.getDBType().equals("oracle")){ if(rs.getDBType().equals("oracle")){
if(sqlwhere.equals("")){ if(sqlwhere.equals("")){
sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and workstartdate >'"+workfrom+"' and workstartdate <='"+workto+"' and workstartdate is not null "; sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and companystartdate >'"+workfrom+"' and companystartdate <='"+workto+"' and companystartdate is not null ";
}else{ }else{
sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and workstartdate >'"+workfrom+"' and workstartdate <='"+workto+"' and workstartdate is not null "+sqlwhere; sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and companystartdate >'"+workfrom+"' and companystartdate <='"+workto+"' and companystartdate is not null "+sqlwhere;
} }
}else{ }else{
if(sqlwhere.equals("")){ if(sqlwhere.equals("")){
sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and workstartdate >'"+workfrom+"' and workstartdate <='"+workto+"' and workstartdate<>'' and workstartdate is not null "; sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and companystartdate >'"+workfrom+"' and companystartdate <='"+workto+"' and companystartdate<>'' and companystartdate is not null ";
}else{ }else{
sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and workstartdate >'"+workfrom+"' and workstartdate <='"+workto+"' and workstartdate<>'' and workstartdate is not null "+sqlwhere; sqlstr="select count(*) resultcount from HrmResource where (accounttype is null or accounttype=0) and companystartdate >'"+workfrom+"' and companystartdate <='"+workto+"' and companystartdate<>'' and companystartdate is not null "+sqlwhere;
} }
} }

@ -1,8 +1,15 @@
package com.engine.gainway.service.impl; package com.engine.gainway.service.impl;
import com.cloudstore.eccom.pc.table.WeaTable;
import com.cloudstore.eccom.pc.table.WeaTableColumn;
import com.cloudstore.eccom.pc.table.WeaTableType;
import com.cloudstore.eccom.result.WeaResultMsg;
import com.engine.core.impl.Service; import com.engine.core.impl.Service;
import com.engine.gainway.service.BasicResourceTableService; import com.engine.gainway.service.BasicResourceTableService;
import weaver.general.PageIdConst;
import weaver.general.Util;
import java.util.HashMap;
import java.util.Map; import java.util.Map;
/** /**
@ -15,6 +22,31 @@ public class BasicResourceTableServiceImpl extends Service implements BasicResou
@Override @Override
public Map<String, Object> linkTable(Map<String, Object> params) { public Map<String, Object> linkTable(Map<String, Object> params) {
return null; Map<String, Object> resultMap = new HashMap<>(4);
String cmd = Util.null2String(params.get("cmd"));
WeaTable table = new WeaTable();
String pageId = "7036b679-029d-411f-b885-8e1720514f83";
table.setPageID(pageId);
table.setPageUID(String.format("%s_%s",pageId,user.getUID()));
String pageSize = PageIdConst.getPageSize(pageId, user.getUID());
table.setPagesize(pageSize);
table.getColumns().add(new WeaTableColumn("10%", "分部", "resourceid").setTransmethod("com.engine.kqsolution.util.ResourceSnipUtils.selectResourceName"));
table.getColumns().add(new WeaTableColumn("10%", "一级部门", "workcode"));
table.getColumns().add(new WeaTableColumn("10%", "二级部门", "subcompanyid1").setTransmethod("com.engine.kqsolution.util.ResourceSnipUtils.selectSubCompanyName"));
table.getColumns().add(new WeaTableColumn("10%", "三级部门", "departmentid").setTransmethod("com.engine.kqsolution.util.ResourceSnipUtils.selectDeptName"));
table.getColumns().add(new WeaTableColumn("10%", "四级部门", "jobtitle").setTransmethod("com.engine.kqsolution.util.ResourceSnipUtils.selectJobName"));
table.getColumns().add(new WeaTableColumn("10%", "考勤结果", "result").setTransmethod("com.engine.kqsolution.util.ResourceSnipUtils.selectKqResult"));
table.getColumns().add(new WeaTableColumn("10%", "考勤结果", "result").setTransmethod("com.engine.kqsolution.util.ResourceSnipUtils.selectKqResult"));
table.getColumns().add(new WeaTableColumn("10%", "考勤结果", "result").setTransmethod("com.engine.kqsolution.util.ResourceSnipUtils.selectKqResult"));
table.setTableType(WeaTableType.NONE);
WeaResultMsg result = new WeaResultMsg(false);
result.putAll(table.makeDataResult());
result.success();
resultMap.putAll(result.getResultMap());
return resultMap;
} }
} }

Loading…
Cancel
Save