Git Product home page Git Product logo

Comments (6)

qqxx6661 avatar qqxx6661 commented on September 16, 2024

您好,能将报错时候的现场参数大概提供给我一下么?

from log-record.

mrdong916 avatar mrdong916 commented on September 16, 2024

您好,能将报错时候的现场参数大概提供给我一下么?

使用出错的案例

@PutMapping(value = "/edit")
	@OperationLog(bizId = "'sysConfig'", bizType = "'edit'", msg = "#_DIFF(#oldObject, #newObject)", extra = "#_DIFF(#oldObject, #newObject)")
	public Result<?> edit(@RequestBody SysConfig sysConfig) {
		LogRecordContext.putVariable("oldObject", sysConfigService.getById(sysConfig.getId()));
		sysConfigService.updateById(sysConfig);
		LogRecordContext.putVariable("newObject", sysConfig);
		return Result.OK("编辑成功!");
	}

Entity

 /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
    /**编码*/
    @Excel(name = "编码", width = 15)
    @ApiModelProperty(value = "编码")
    private java.lang.String code;
    /**内容*/
    @Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
    private java.lang.String content;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
    /**是否开启*/
    @Excel(name = "是否开启", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否开启")
    private java.lang.String status;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;

from log-record.

mrdong916 avatar mrdong916 commented on September 16, 2024

因为我在使用Date类型的属性的时候都会有@DateTimeFormat,所以我直接在对比之前把此类型的属性根据@DateTimeFormat的pattern值转成了字符串进行对比,希望有更好的解决方案

from log-record.

qqxx6661 avatar qqxx6661 commented on September 16, 2024

我简单优化了一下,把版本升级至 1.5.0-SNAPSHOT 看下是否修复。过两天会发正式版本

from log-record.

qqxx6661 avatar qqxx6661 commented on September 16, 2024

我自行复现了,并且验证了下是OK了

from log-record.

qqxx6661 avatar qqxx6661 commented on September 16, 2024

正式版本1.5.0,有问题重开issue

from log-record.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.