解决方案:

status_flag * 1 as status_flag

乘以1之后就不会是boolean类型的值了