Code Monkey home page Code Monkey logo

Comments (4)

qqxx6661 avatar qqxx6661 commented on July 30, 2024

只是想标明diffDTOList是个list,里面有多个值。没有其他含义。

一次注解中,用户可能会多次使用_DIFF()函数,所以可能会有多对对象进行比较。

from log-record.

swmwlm avatar swmwlm commented on July 30, 2024

只是想标明diffDTOList是个list,里面有多个值。没有其他含义。

一次注解中,用户可能会多次使用_DIFF()函数,所以可能会有多对对象进行比较。

但是,我运行您的测试用例,
testService.testObjectDiff(new TestUser(2, "李四"));
确实此list包涵了两个相同的数据。是不是有重复调用了

from log-record.

qqxx6661 avatar qqxx6661 commented on July 30, 2024

只是想标明diffDTOList是个list,里面有多个值。没有其他含义。
一次注解中,用户可能会多次使用_DIFF()函数,所以可能会有多对对象进行比较。

但是,我运行您的测试用例, testService.testObjectDiff(new TestUser(2, "李四")); 确实此list包涵了两个相同的数据。是不是有重复调用了

我看了下,我是这么写的

@OperationLog(bizId = "'1'", bizType = "'testObjectDiff'", msg = "#_DIFF(#oldObject, #testUser)", extra = "#_DIFF(#oldObject, #testUser)")

msg和extra里都写了_DIFF,所以等于是一个注解有两次相同对象的diff了,正常情况不太会这么写,我当时应该是想着测试下diffDTOList是否能正确生成两个。测试类写的有点潦草,之后可以优化下。

from log-record.

swmwlm avatar swmwlm commented on July 30, 2024

好的,谢谢,明白了 。很好的解决方案,参考一下

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.