FANTASY522272820的博客通过本文主要向大家介绍了数据库等相关知识,希望本文的分享对您有所帮助
1.数据库中guideType 为Integer类型;
2.实体bean中:
private Long guideType;
(
setter...
getter...
)
3.mybatis相应的xml配置中判断该字段时,针对传入0 特殊处理如下:
<if test="(guideType != null and guideType != '') or guideType==0">
guide_type= #{guideType},
</if>