Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

字典表设计求解

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


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

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...