Commit 1944d1eb authored by 赵啸非's avatar 赵啸非

添加设备日志类型筛选

parent 9d37f0c5
......@@ -49,8 +49,6 @@ public class AccessLogController extends BaseCRUDJsonBodyMappingController<Acces
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "appName", paramService.getParamBySecondOrganize("OperateLog","platformMark"));
super.init(model, context);
}
......
......@@ -7,6 +7,7 @@ import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -68,6 +69,16 @@ public class OperateLogController extends BaseCRUDJsonBodyMappingController<Oper
@Override
@UnAuth
public String save(@RequestBody OperateLogEntity entity) {
if("sst-manager".equals(entity.getPlatformMark())){
OperateLogEntity operateLogEntity = new OperateLogEntity();
operateLogEntity.initAttrValue();
BeanUtils.copyProperties(entity,operateLogEntity);
operateLogEntity.setPlatformMark("search-gov-manager");
this.service.save(operateLogEntity);
}
return super.save(entity);
}
......
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