Commit 3aeb3bfd authored by 赵啸非's avatar 赵啸非

修改时间参数

parent fa027135
...@@ -237,12 +237,12 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont ...@@ -237,12 +237,12 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont
Context context = this.getContext(); Context context = this.getContext();
String busiDesc = "保存" + this.getModuleDesc(); String busiDesc = "保存" + this.getModuleDesc();
int code =1; int code = 1;
try { try {
this.saveBefore(entity, model, context); this.saveBefore(entity, model, context);
if (entity.newEntity()) { if (entity.newEntity()) {
Class<AttendanceRecordErrorEntity> tClass = ReflectUtils.getClassGenricType(this.getClass(), 1); Class<AttendanceRecordErrorEntity> tClass = ReflectUtils.getClassGenricType(this.getClass(), 1);
AttendanceRecordErrorEntity initEntity = (AttendanceRecordErrorEntity)tClass.newInstance(); AttendanceRecordErrorEntity initEntity = (AttendanceRecordErrorEntity) tClass.newInstance();
initEntity.initAttrValue(); initEntity.initAttrValue();
BeanUtils.copyProperties(entity, initEntity, BeanUtil.getNullPropertyNames(entity)); BeanUtils.copyProperties(entity, initEntity, BeanUtil.getNullPropertyNames(entity));
entity = initEntity; entity = initEntity;
...@@ -297,6 +297,7 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont ...@@ -297,6 +297,7 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont
@Override @Override
protected int editAfter(Long id, Map<String, Object> model, AttendanceRecordErrorEntity entity, Context context) throws AppException { protected int editAfter(Long id, Map<String, Object> model, AttendanceRecordErrorEntity entity, Context context) throws AppException {
this.addDict(model, "errorStatus", paramService.getParamBySecondOrganize("AttendanceRecordDetail", "goWorkResult")); this.addDict(model, "errorStatus", paramService.getParamBySecondOrganize("AttendanceRecordDetail", "goWorkResult"));
entity.setGoOffDateTime(null);
return super.editAfter(id, model, entity, context); return super.editAfter(id, model, entity, context);
} }
...@@ -331,6 +332,7 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont ...@@ -331,6 +332,7 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont
/** /**
* 从新生成已处理的绩效考勤核查数据 * 从新生成已处理的绩效考勤核查数据
*
* @param query * @param query
* @return * @return
*/ */
...@@ -343,7 +345,7 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont ...@@ -343,7 +345,7 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont
Thread thread = new Thread(new Runnable() { Thread thread = new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {
service.doReprocess(query,context); service.doReprocess(query, context);
} }
}); });
thread.start(); thread.start();
...@@ -352,11 +354,12 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont ...@@ -352,11 +354,12 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont
/** /**
* 查询当月异常考勤次数排行榜 * 查询当月异常考勤次数排行榜
*
* @return * @return
*/ */
@PostMapping({"month/top"}) @PostMapping({"month/top"})
@UnAuth @UnAuth
public Rest<Object> getMonthTopList(){ public Rest<Object> getMonthTopList() {
Rest<Object> ret = new Rest(); Rest<Object> ret = new Rest();
Map<String, Object> model = new HashMap(); Map<String, Object> model = new HashMap();
Context context = this.getContext(); Context context = this.getContext();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment