Commit 49ca0d57 authored by 赵啸非's avatar 赵啸非

修改查询时间段

parent e70845a5
...@@ -2,10 +2,13 @@ package com.mortals.xhx.module.access.web; ...@@ -2,10 +2,13 @@ package com.mortals.xhx.module.access.web;
import com.mortals.framework.annotation.UnAuth; import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.AccessLogPdu;
import com.mortals.framework.model.OrderCol; import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.common.utils.BeanUtil;
import com.mortals.xhx.system.MessageProducer; import com.mortals.xhx.system.MessageProducer;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -52,7 +55,7 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces ...@@ -52,7 +55,7 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "appName", paramService.getParamBySecondOrganize("OperateLog","platformMark")); this.addDict(model, "appName", paramService.getParamBySecondOrganize("OperateLog", "platformMark"));
super.init(model, context); super.init(model, context);
} }
...@@ -68,7 +71,13 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces ...@@ -68,7 +71,13 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override @Override
@UnAuth @UnAuth
public String save(@RequestBody AccessLogEntity entity) { public String save(@RequestBody AccessLogEntity entity) {
return super.save(entity);
AccessLogPdu accessLogPdu = new AccessLogPdu();
accessLogPdu.initAttrValue();
BeanUtils.copyProperties(entity, accessLogPdu, BeanUtil.getNullPropertyNames(entity));
JSONObject ret = new JSONObject();
ret.put("code", VALUE_RESULT_SUCCESS);
return ret.toJSONString();
} }
} }
\ No newline at end of file
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