当前位置:网站首页>I have written the experience of loan system for 2 months
I have written the experience of loan system for 2 months
2022-07-22 09:25:00 【weixin_ fifty million one hundred and seventy-nine thousand nin】
5 Projects done at the beginning of the month , Some things delay the progress of the project , So until now, only about half of it has been written . however , The core of the project is borrowing 、 The repayment is almost finished . therefore , I share some of my experiences with you .
- Database design : I don't think we need to design too many watches , Too much is not good for managing the logical relationship between tables , Too little, the logical relationship is not tight . From borrowing to repayment : Borrowing requires the borrower to borrow , Then there should be a borrower information form . Each borrower has a different amount , There are different types of quotas , You need a quota information table and a quota category table . When the borrower releases the loan information , Need a table to process loan information , And the loan has different target types for the borrower to borrow , You need a table of loan subject types , At the same time, after the loan information is successfully released , The administrator is required to audit , At this time, you can get another administrator table , You can also combine the administrator table and the borrower information table into a personnel table . Administrator audit completed , There must be investors to invest , At this time, it is necessary to deal with investor information and investment capital flow records , Of course , Investors can be included in the personnel table , The capital record must be handled with a capital record form . How much did investors invest , You can see in the loan information . The full bid review is completed , The capital record sheet records the borrower's capital arrival , And design a repayment form , Supervise repayment .
2. Page design , Most of the pages in the early stage of the project are static , The purpose is to take the static page as the template when realizing the dynamic update of the page . Design static pages , For the same , There's no big difference , Copy if you can , You can also go directly to the web page to find templates , Not for anything else, just to save time . Backstage design , Direct copy Layui Just the page , Because there are more tables and navigation bars in the background
3. Realization function , Or issue a loan , Involves changing the database , Roll back the table of the wrong operation with rollback , Rollback is not a database operation failure , Rollback of the database is more predictable , Will correct the inevitable errors , Similar to delete , There will be rollback information in the database , But through ordinary queries , It's impossible to get . Judge that the database has been rolled back , Observe the automatically updated primary key , Generally, you will see that the numbers are incoherent .
Primary key of this table 1-18 All rolled back .
边栏推荐
- Redis原理之GEO
- The pit trodden by real people tells you to avoid the 10 mistakes that novices in automated testing often make
- QT configuration opencv (II): successful
- Seven parameters of thread pool
- Use of laravel correlation model, one to one, one to many, many to many
- SQL 中delete与truncate的区别
- The request was rejected because the URL contained a potentially malicious String “//“
- The difference between delete and truncate in SQL
- Leetcode1734: arrangement after decoding XOR
- ettercap详细使用教程
猜你喜欢
随机推荐
实现一个js抽奖玩玩?
Chrome插件开发教程
各地级市-进出口与贸易差额(2000-2020)
腾讯云免费升级。
C语言之位操作和整形的补位
Tool classes encapsulated based on redistemplate
高频leetcode深搜部分:695. 岛屿的最大面积
写了2个月的借贷系统的心得
Linux shell variable declaration Scheduled tasks, regular database backup, automatic backup
八大(变量)基本类型
栈和队列常见oj题
What's the use of regular ^ $
模拟实现库函数memcpy--复制内存块。详细理解内存重叠及精准复制问题
4000+上市公司所属省份、城市、经营等多指标数据已更新至2022.1
【ACM/二分】二分清晰入门级讲解
FAQ during using Harry (question answering)
Leetcode703: the k-th element in data flow
高频leetcode深搜部分:剑指 Offer 13. 机器人的运动范围
(一)抖音快手短视频去水印原理分析
Analysis of copyonwritearraylist