<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.bwie.system.mapper.BillMapper">

    <insert id="add">

        INSERT INTO `test7.26`.`bill`


            (
        <if test="billDate!=null">
            `bill_date`,
        </if>
        <if test="billMoney!=null">
            `bill_money`
        </if>
             )
        VALUES
            (
        <if test="billDate!=null">
            #{billDate},
        </if>
        <if test="billMoney!=null">
            #{billMoney}
        </if> );


    </insert>
    <select id="selectAll" resultType="com.bwie.common.domain.Bill">

select * from bill

    </select>
</mapper>
