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

修改时间参数

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