"src/main/git@ustchcs.com:gujinli1118/JSH_ERP.git" did not exist on "f5d1af39c32aeb932d88662932724e4aa8f25ca7"
Commit 1dc95653 authored by cjl's avatar cjl
Browse files

1、修改double类型为BigDecimal

2、修复sql中大于小于少&出错的问题
parents 6abe4bc8 4afc188b
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jsh.erp.datasource.mappers.SupplierMapper"> <mapper namespace="com.jsh.erp.datasource.mappers.SupplierMapper">
<resultMap id="BaseResultMap" type="com.jsh.erp.datasource.entities.Supplier"> <resultMap id="BaseResultMap" type="com.jsh.erp.datasource.entities.Supplier">
<!-- <!--
...@@ -15,18 +15,18 @@ ...@@ -15,18 +15,18 @@
<result column="isystem" jdbcType="TINYINT" property="isystem" /> <result column="isystem" jdbcType="TINYINT" property="isystem" />
<result column="type" jdbcType="VARCHAR" property="type" /> <result column="type" jdbcType="VARCHAR" property="type" />
<result column="enabled" jdbcType="BIT" property="enabled" /> <result column="enabled" jdbcType="BIT" property="enabled" />
<result column="AdvanceIn" jdbcType="DOUBLE" property="advancein" /> <result column="AdvanceIn" jdbcType="DECIMAL" property="advancein" />
<result column="BeginNeedGet" jdbcType="DOUBLE" property="beginneedget" /> <result column="BeginNeedGet" jdbcType="DECIMAL" property="beginneedget" />
<result column="BeginNeedPay" jdbcType="DOUBLE" property="beginneedpay" /> <result column="BeginNeedPay" jdbcType="DECIMAL" property="beginneedpay" />
<result column="AllNeedGet" jdbcType="DOUBLE" property="allneedget" /> <result column="AllNeedGet" jdbcType="DECIMAL" property="allneedget" />
<result column="AllNeedPay" jdbcType="DOUBLE" property="allneedpay" /> <result column="AllNeedPay" jdbcType="DECIMAL" property="allneedpay" />
<result column="fax" jdbcType="VARCHAR" property="fax" /> <result column="fax" jdbcType="VARCHAR" property="fax" />
<result column="telephone" jdbcType="VARCHAR" property="telephone" /> <result column="telephone" jdbcType="VARCHAR" property="telephone" />
<result column="address" jdbcType="VARCHAR" property="address" /> <result column="address" jdbcType="VARCHAR" property="address" />
<result column="taxNum" jdbcType="VARCHAR" property="taxnum" /> <result column="taxNum" jdbcType="VARCHAR" property="taxnum" />
<result column="bankName" jdbcType="VARCHAR" property="bankname" /> <result column="bankName" jdbcType="VARCHAR" property="bankname" />
<result column="accountNumber" jdbcType="VARCHAR" property="accountnumber" /> <result column="accountNumber" jdbcType="VARCHAR" property="accountnumber" />
<result column="taxRate" jdbcType="DOUBLE" property="taxrate" /> <result column="taxRate" jdbcType="DECIMAL" property="taxrate" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
...@@ -165,10 +165,10 @@ ...@@ -165,10 +165,10 @@
values (#{id,jdbcType=BIGINT}, #{supplier,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{supplier,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
#{phonenum,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{phonenum,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
#{isystem,jdbcType=TINYINT}, #{type,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT}, #{isystem,jdbcType=TINYINT}, #{type,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
#{advancein,jdbcType=DOUBLE}, #{beginneedget,jdbcType=DOUBLE}, #{beginneedpay,jdbcType=DOUBLE}, #{advancein,jdbcType=DECIMAL}, #{beginneedget,jdbcType=DECIMAL}, #{beginneedpay,jdbcType=DECIMAL},
#{allneedget,jdbcType=DOUBLE}, #{allneedpay,jdbcType=DOUBLE}, #{fax,jdbcType=VARCHAR}, #{allneedget,jdbcType=DECIMAL}, #{allneedpay,jdbcType=DECIMAL}, #{fax,jdbcType=VARCHAR},
#{telephone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{taxnum,jdbcType=VARCHAR}, #{telephone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{taxnum,jdbcType=VARCHAR},
#{bankname,jdbcType=VARCHAR}, #{accountnumber,jdbcType=VARCHAR}, #{taxrate,jdbcType=DOUBLE} #{bankname,jdbcType=VARCHAR}, #{accountnumber,jdbcType=VARCHAR}, #{taxrate,jdbcType=DECIMAL}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Supplier"> <insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Supplier">
...@@ -271,19 +271,19 @@ ...@@ -271,19 +271,19 @@
#{enabled,jdbcType=BIT}, #{enabled,jdbcType=BIT},
</if> </if>
<if test="advancein != null"> <if test="advancein != null">
#{advancein,jdbcType=DOUBLE}, #{advancein,jdbcType=DECIMAL},
</if> </if>
<if test="beginneedget != null"> <if test="beginneedget != null">
#{beginneedget,jdbcType=DOUBLE}, #{beginneedget,jdbcType=DECIMAL},
</if> </if>
<if test="beginneedpay != null"> <if test="beginneedpay != null">
#{beginneedpay,jdbcType=DOUBLE}, #{beginneedpay,jdbcType=DECIMAL},
</if> </if>
<if test="allneedget != null"> <if test="allneedget != null">
#{allneedget,jdbcType=DOUBLE}, #{allneedget,jdbcType=DECIMAL},
</if> </if>
<if test="allneedpay != null"> <if test="allneedpay != null">
#{allneedpay,jdbcType=DOUBLE}, #{allneedpay,jdbcType=DECIMAL},
</if> </if>
<if test="fax != null"> <if test="fax != null">
#{fax,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR},
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
#{accountnumber,jdbcType=VARCHAR}, #{accountnumber,jdbcType=VARCHAR},
</if> </if>
<if test="taxrate != null"> <if test="taxrate != null">
#{taxrate,jdbcType=DOUBLE}, #{taxrate,jdbcType=DECIMAL},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -353,19 +353,19 @@ ...@@ -353,19 +353,19 @@
enabled = #{record.enabled,jdbcType=BIT}, enabled = #{record.enabled,jdbcType=BIT},
</if> </if>
<if test="record.advancein != null"> <if test="record.advancein != null">
AdvanceIn = #{record.advancein,jdbcType=DOUBLE}, AdvanceIn = #{record.advancein,jdbcType=DECIMAL},
</if> </if>
<if test="record.beginneedget != null"> <if test="record.beginneedget != null">
BeginNeedGet = #{record.beginneedget,jdbcType=DOUBLE}, BeginNeedGet = #{record.beginneedget,jdbcType=DECIMAL},
</if> </if>
<if test="record.beginneedpay != null"> <if test="record.beginneedpay != null">
BeginNeedPay = #{record.beginneedpay,jdbcType=DOUBLE}, BeginNeedPay = #{record.beginneedpay,jdbcType=DECIMAL},
</if> </if>
<if test="record.allneedget != null"> <if test="record.allneedget != null">
AllNeedGet = #{record.allneedget,jdbcType=DOUBLE}, AllNeedGet = #{record.allneedget,jdbcType=DECIMAL},
</if> </if>
<if test="record.allneedpay != null"> <if test="record.allneedpay != null">
AllNeedPay = #{record.allneedpay,jdbcType=DOUBLE}, AllNeedPay = #{record.allneedpay,jdbcType=DECIMAL},
</if> </if>
<if test="record.fax != null"> <if test="record.fax != null">
fax = #{record.fax,jdbcType=VARCHAR}, fax = #{record.fax,jdbcType=VARCHAR},
...@@ -386,7 +386,7 @@ ...@@ -386,7 +386,7 @@
accountNumber = #{record.accountnumber,jdbcType=VARCHAR}, accountNumber = #{record.accountnumber,jdbcType=VARCHAR},
</if> </if>
<if test="record.taxrate != null"> <if test="record.taxrate != null">
taxRate = #{record.taxrate,jdbcType=DOUBLE}, taxRate = #{record.taxrate,jdbcType=DECIMAL},
</if> </if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
...@@ -408,18 +408,18 @@ ...@@ -408,18 +408,18 @@
isystem = #{record.isystem,jdbcType=TINYINT}, isystem = #{record.isystem,jdbcType=TINYINT},
type = #{record.type,jdbcType=VARCHAR}, type = #{record.type,jdbcType=VARCHAR},
enabled = #{record.enabled,jdbcType=BIT}, enabled = #{record.enabled,jdbcType=BIT},
AdvanceIn = #{record.advancein,jdbcType=DOUBLE}, AdvanceIn = #{record.advancein,jdbcType=DECIMAL},
BeginNeedGet = #{record.beginneedget,jdbcType=DOUBLE}, BeginNeedGet = #{record.beginneedget,jdbcType=DECIMAL},
BeginNeedPay = #{record.beginneedpay,jdbcType=DOUBLE}, BeginNeedPay = #{record.beginneedpay,jdbcType=DECIMAL},
AllNeedGet = #{record.allneedget,jdbcType=DOUBLE}, AllNeedGet = #{record.allneedget,jdbcType=DECIMAL},
AllNeedPay = #{record.allneedpay,jdbcType=DOUBLE}, AllNeedPay = #{record.allneedpay,jdbcType=DECIMAL},
fax = #{record.fax,jdbcType=VARCHAR}, fax = #{record.fax,jdbcType=VARCHAR},
telephone = #{record.telephone,jdbcType=VARCHAR}, telephone = #{record.telephone,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR}, address = #{record.address,jdbcType=VARCHAR},
taxNum = #{record.taxnum,jdbcType=VARCHAR}, taxNum = #{record.taxnum,jdbcType=VARCHAR},
bankName = #{record.bankname,jdbcType=VARCHAR}, bankName = #{record.bankname,jdbcType=VARCHAR},
accountNumber = #{record.accountnumber,jdbcType=VARCHAR}, accountNumber = #{record.accountnumber,jdbcType=VARCHAR},
taxRate = #{record.taxrate,jdbcType=DOUBLE} taxRate = #{record.taxrate,jdbcType=DECIMAL}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -456,19 +456,19 @@ ...@@ -456,19 +456,19 @@
enabled = #{enabled,jdbcType=BIT}, enabled = #{enabled,jdbcType=BIT},
</if> </if>
<if test="advancein != null"> <if test="advancein != null">
AdvanceIn = #{advancein,jdbcType=DOUBLE}, AdvanceIn = #{advancein,jdbcType=DECIMAL},
</if> </if>
<if test="beginneedget != null"> <if test="beginneedget != null">
BeginNeedGet = #{beginneedget,jdbcType=DOUBLE}, BeginNeedGet = #{beginneedget,jdbcType=DECIMAL},
</if> </if>
<if test="beginneedpay != null"> <if test="beginneedpay != null">
BeginNeedPay = #{beginneedpay,jdbcType=DOUBLE}, BeginNeedPay = #{beginneedpay,jdbcType=DECIMAL},
</if> </if>
<if test="allneedget != null"> <if test="allneedget != null">
AllNeedGet = #{allneedget,jdbcType=DOUBLE}, AllNeedGet = #{allneedget,jdbcType=DECIMAL},
</if> </if>
<if test="allneedpay != null"> <if test="allneedpay != null">
AllNeedPay = #{allneedpay,jdbcType=DOUBLE}, AllNeedPay = #{allneedpay,jdbcType=DECIMAL},
</if> </if>
<if test="fax != null"> <if test="fax != null">
fax = #{fax,jdbcType=VARCHAR}, fax = #{fax,jdbcType=VARCHAR},
...@@ -489,7 +489,7 @@ ...@@ -489,7 +489,7 @@
accountNumber = #{accountnumber,jdbcType=VARCHAR}, accountNumber = #{accountnumber,jdbcType=VARCHAR},
</if> </if>
<if test="taxrate != null"> <if test="taxrate != null">
taxRate = #{taxrate,jdbcType=DOUBLE}, taxRate = #{taxrate,jdbcType=DECIMAL},
</if> </if>
</set> </set>
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
...@@ -508,18 +508,18 @@ ...@@ -508,18 +508,18 @@
isystem = #{isystem,jdbcType=TINYINT}, isystem = #{isystem,jdbcType=TINYINT},
type = #{type,jdbcType=VARCHAR}, type = #{type,jdbcType=VARCHAR},
enabled = #{enabled,jdbcType=BIT}, enabled = #{enabled,jdbcType=BIT},
AdvanceIn = #{advancein,jdbcType=DOUBLE}, AdvanceIn = #{advancein,jdbcType=DECIMAL},
BeginNeedGet = #{beginneedget,jdbcType=DOUBLE}, BeginNeedGet = #{beginneedget,jdbcType=DECIMAL},
BeginNeedPay = #{beginneedpay,jdbcType=DOUBLE}, BeginNeedPay = #{beginneedpay,jdbcType=DECIMAL},
AllNeedGet = #{allneedget,jdbcType=DOUBLE}, AllNeedGet = #{allneedget,jdbcType=DECIMAL},
AllNeedPay = #{allneedpay,jdbcType=DOUBLE}, AllNeedPay = #{allneedpay,jdbcType=DECIMAL},
fax = #{fax,jdbcType=VARCHAR}, fax = #{fax,jdbcType=VARCHAR},
telephone = #{telephone,jdbcType=VARCHAR}, telephone = #{telephone,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR}, address = #{address,jdbcType=VARCHAR},
taxNum = #{taxnum,jdbcType=VARCHAR}, taxNum = #{taxnum,jdbcType=VARCHAR},
bankName = #{bankname,jdbcType=VARCHAR}, bankName = #{bankname,jdbcType=VARCHAR},
accountNumber = #{accountnumber,jdbcType=VARCHAR}, accountNumber = #{accountnumber,jdbcType=VARCHAR},
taxRate = #{taxrate,jdbcType=DOUBLE} taxRate = #{taxrate,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment