场景如下:
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>
场景如下:
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>