liuliang
parent
dec7a29dc4
commit
860a825441
@ -0,0 +1,37 @@
|
|||||||
|
package com.engine.attendance.attendanceanalysis.cmd;
|
||||||
|
|
||||||
|
import com.engine.common.biz.AbstractCommonCommand;
|
||||||
|
import com.engine.common.entity.BizLogContext;
|
||||||
|
import com.engine.core.interceptor.CommandContext;
|
||||||
|
import weaver.general.Util;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class BeLateCmd extends AbstractCommonCommand<Map<String,Object>> {
|
||||||
|
@Override
|
||||||
|
public BizLogContext getLogContext() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
public BeLateCmd(Map<String,Object> params){
|
||||||
|
this.params=params;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> execute(CommandContext commandContext) {
|
||||||
|
//分析人员
|
||||||
|
String userId = Util.null2String(params.get("userId"));
|
||||||
|
//分析日期
|
||||||
|
String analysisDate = Util.null2String(params.get("analysisDate"));
|
||||||
|
//打卡数据
|
||||||
|
List<Map<String, Object>> clockInTimeList = (List<Map<String, Object>>)params.get("analysisDate");
|
||||||
|
//班次
|
||||||
|
List<Map<String, Object>> scheduleResult = (List<Map<String, Object>>)params.get("scheduleResult");
|
||||||
|
//考勤项目
|
||||||
|
List<Map<String, Object>> attendanceItems = (List<Map<String, Object>>)params.get("attendanceItems");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.engine.attendance.attendanceanalysis.cmd;
|
||||||
|
|
||||||
|
import com.engine.common.biz.AbstractCommonCommand;
|
||||||
|
import com.engine.common.entity.BizLogContext;
|
||||||
|
import com.engine.core.interceptor.CommandContext;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class LeaveEarlyCmd extends AbstractCommonCommand<Map<String,Object>> {
|
||||||
|
|
||||||
|
public LeaveEarlyCmd(Map<String,Object> params){
|
||||||
|
this.params=params;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public BizLogContext getLogContext() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> execute(CommandContext commandContext) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
package com.engine.attendance.attendanceanalysis.wrapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.engine.core.impl.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class UpdateAttendanceResultWrapper extends Service {
|
||||||
|
|
||||||
|
public boolean recordAbnormalClockIn(Map<String,Object> params){
|
||||||
|
//卡点
|
||||||
|
List<Map<String,Map<String,Object>>> clcokInTimeList = (List<Map<String,Map<String,Object>>>)params.get("clcokInTimeList");
|
||||||
|
//考勤项目
|
||||||
|
List<Map<String,Object>> attendanceItems = (List<Map<String,Object>>)params.get("attendanceItems");
|
||||||
|
//排班
|
||||||
|
List<Map<String, Object>> scheduleResult = (List<Map<String,Object>>)params.get("scheduleResult");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
for (int i=0;i<clcokInTimeList.size();i++){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.engine.attendance.enums;
|
||||||
|
|
||||||
|
import com.finance.toolkit.BaseEnum;
|
||||||
|
|
||||||
|
public enum CheckBoxEnum implements BaseEnum {
|
||||||
|
UNCHECKED("0","未选中"),
|
||||||
|
CHECKED("1","选中");
|
||||||
|
|
||||||
|
private String key;
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
CheckBoxEnum(String key, String value){
|
||||||
|
this.key=key;
|
||||||
|
this.value=value;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getKey() {
|
||||||
|
return this.key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getValue() {
|
||||||
|
return this.value;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
package com.engine.attendance.enums;
|
||||||
|
|
||||||
|
import com.finance.toolkit.BaseEnum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 时段
|
||||||
|
*/
|
||||||
|
public enum PeriodOfTime implements BaseEnum {
|
||||||
|
ALLDAY("0","全天"),
|
||||||
|
HOUR("1","小时"),
|
||||||
|
HALFDAY("2","半天");
|
||||||
|
|
||||||
|
|
||||||
|
private String key;
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
PeriodOfTime(String key, String value){
|
||||||
|
this.key=key;
|
||||||
|
this.value=value;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getKey() {
|
||||||
|
return this.key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getValue() {
|
||||||
|
return this.value;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
package com.engine.common.cmd;
|
||||||
|
|
||||||
|
import com.engine.common.biz.AbstractCommonCommand;
|
||||||
|
import com.engine.common.entity.BizLogContext;
|
||||||
|
import com.engine.common.util.DbTools;
|
||||||
|
import com.engine.core.interceptor.CommandContext;
|
||||||
|
import com.google.common.collect.Maps;
|
||||||
|
import weaver.general.Util;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class GetDateCmd extends AbstractCommonCommand<Map<String,Object>> {
|
||||||
|
|
||||||
|
public GetDateCmd(Map<String,Object> params){
|
||||||
|
this.params=params;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BizLogContext getLogContext() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> execute(CommandContext commandContext) {
|
||||||
|
String nd = Util.null2String(params.get("nd"));
|
||||||
|
String sql = "select nd,rq,nlrq,rqlx,xq from uf_jcl_kq_rlxx where nd=?";
|
||||||
|
List<Map<String,Object>> dataList = DbTools.getSqlToList(sql,nd);
|
||||||
|
Map<String, Object> resultMap = Maps.newHashMap();
|
||||||
|
resultMap.put("data",dataList);
|
||||||
|
return resultMap;
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue