Code Monkey home page Code Monkey logo

Comments (2)

dreampursuer avatar dreampursuer commented on July 25, 2024

当把维修方案中的数据保存进去了之后,这样当打开默认的维修方案界面时需要把原先保存的维修方案给取出来。相关逻辑为:
def weixiu_fangans = select * from weixiu_fangan where weixiu_id=:weixiu_id
同时还要获得相应维修对象
select * from weixiu where id=:weixiu_id
然后根据维修对象获得这个维修的定损核价和定损备注

redirect,render之类的可否在服务端代码中设置标志,最后还是由原生的controller来进行处理

from exread.

dreampursuer avatar dreampursuer commented on July 25, 2024

需要定义一个ScriptContext对象,这个对象中定义了相关的链接上下文,返回值之类的。因为对于目前的链接上下文实现机制是有问题的,因为现在的连接对象直接把当前的连接赋值进去了,而不是根据当前用户来进行的,因此这中间当要支持不同用户不同的连接时就会有问题。另外对于返回值,在一个controller中执行后有三种结果,一种是返回null,另一种是返回render,最后一种是返回redirect,还有一种是返回model.

from exread.

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.