使用Mybatis框架,如何使查询结果float数据保留两位小数

    <id column="id" property="id" />
    <result column="sku_code" property="skuCode" />
    <result column="sku_price" property="skuPrice" />
    <result column="ori_price" property="oriPrice" />
    <result column="sku_select_value" property="skuSelectValue" />
    <result column="quantity" property="quantity" />
    <result column="buy_limit" property="buyLimit" />
    <result column="img" property="img" />
    <result column="product_id" property="productId" />
     <result column="modifyTime" property="modify_time" />
</resultMap>


<sql id="ProductSkuInfo">
    SELECT 
        product_id,
        id,
        sku_code,
        sku_price,
        ori_price,
        sku_select_value,
        quantity,
        img,
        buy_limit,
        modify_time
    from t_product_sku

</sql>
查看全部
iteye_19889
iteye_19889
2014/07/18 10:12
  • ibatis
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

0个回复