Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.5k views
in Technique[技术] by (71.8m points)

字典表设计求解

目前在下想开发一个通用的基础框架,字典类型表和字典数据表都有状态字段、对应正常和停用两个类型,请问下是查询字典的时候SQL where条件都要加上状态=正常的过滤条件(如果需要启用就数据库中修改为正常?),还是说后台管理界面查询全部,然后业务使用到的时候单独过滤呢?
其他表也有类似的字段,比如部门表、用户表之类的
谢谢各位大佬赐教


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

可以加一个筛选功能,对不同的状态进行筛选


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

Just Browsing Browsing

[3] html - How to create even cell spacing within a

1.4m articles

1.4m replys

5 comments

57.0k users

...