Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
1dc95653
Commit
1dc95653
authored
Jan 17, 2019
by
cjl
Browse files
1、修改double类型为BigDecimal
2、修复sql中大于小于少&出错的问题
parents
6abe4bc8
4afc188b
Changes
61
Hide whitespace changes
Inline
Side-by-side
src/main/resources/mapper_xml/SupplierMapper.xml
View file @
1dc95653
<?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">
<?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.jsh.erp.datasource.mappers.SupplierMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.jsh.erp.datasource.entities.Supplier"
>
<!--
...
...
@@ -15,18 +15,18 @@
<result
column=
"isystem"
jdbcType=
"TINYINT"
property=
"isystem"
/>
<result
column=
"type"
jdbcType=
"VARCHAR"
property=
"type"
/>
<result
column=
"enabled"
jdbcType=
"BIT"
property=
"enabled"
/>
<result
column=
"AdvanceIn"
jdbcType=
"D
OUBLE
"
property=
"advancein"
/>
<result
column=
"BeginNeedGet"
jdbcType=
"D
OUBLE
"
property=
"beginneedget"
/>
<result
column=
"BeginNeedPay"
jdbcType=
"D
OUBLE
"
property=
"beginneedpay"
/>
<result
column=
"AllNeedGet"
jdbcType=
"D
OUBLE
"
property=
"allneedget"
/>
<result
column=
"AllNeedPay"
jdbcType=
"D
OUBLE
"
property=
"allneedpay"
/>
<result
column=
"AdvanceIn"
jdbcType=
"D
ECIMAL
"
property=
"advancein"
/>
<result
column=
"BeginNeedGet"
jdbcType=
"D
ECIMAL
"
property=
"beginneedget"
/>
<result
column=
"BeginNeedPay"
jdbcType=
"D
ECIMAL
"
property=
"beginneedpay"
/>
<result
column=
"AllNeedGet"
jdbcType=
"D
ECIMAL
"
property=
"allneedget"
/>
<result
column=
"AllNeedPay"
jdbcType=
"D
ECIMAL
"
property=
"allneedpay"
/>
<result
column=
"fax"
jdbcType=
"VARCHAR"
property=
"fax"
/>
<result
column=
"telephone"
jdbcType=
"VARCHAR"
property=
"telephone"
/>
<result
column=
"address"
jdbcType=
"VARCHAR"
property=
"address"
/>
<result
column=
"taxNum"
jdbcType=
"VARCHAR"
property=
"taxnum"
/>
<result
column=
"bankName"
jdbcType=
"VARCHAR"
property=
"bankname"
/>
<result
column=
"accountNumber"
jdbcType=
"VARCHAR"
property=
"accountnumber"
/>
<result
column=
"taxRate"
jdbcType=
"D
OUBLE
"
property=
"taxrate"
/>
<result
column=
"taxRate"
jdbcType=
"D
ECIMAL
"
property=
"taxrate"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
...
...
@@ -165,10 +165,10 @@
values (#{id,jdbcType=BIGINT}, #{supplier,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
#{phonenum,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
#{isystem,jdbcType=TINYINT}, #{type,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
#{advancein,jdbcType=D
OUBLE
}, #{beginneedget,jdbcType=D
OUBLE
}, #{beginneedpay,jdbcType=D
OUBLE
},
#{allneedget,jdbcType=D
OUBLE
}, #{allneedpay,jdbcType=D
OUBLE
}, #{fax,jdbcType=VARCHAR},
#{advancein,jdbcType=D
ECIMAL
}, #{beginneedget,jdbcType=D
ECIMAL
}, #{beginneedpay,jdbcType=D
ECIMAL
},
#{allneedget,jdbcType=D
ECIMAL
}, #{allneedpay,jdbcType=D
ECIMAL
}, #{fax,jdbcType=VARCHAR},
#{telephone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{taxnum,jdbcType=VARCHAR},
#{bankname,jdbcType=VARCHAR}, #{accountnumber,jdbcType=VARCHAR}, #{taxrate,jdbcType=D
OUBLE
}
#{bankname,jdbcType=VARCHAR}, #{accountnumber,jdbcType=VARCHAR}, #{taxrate,jdbcType=D
ECIMAL
}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.jsh.erp.datasource.entities.Supplier"
>
...
...
@@ -271,19 +271,19 @@
#{enabled,jdbcType=BIT},
</if>
<if
test=
"advancein != null"
>
#{advancein,jdbcType=D
OUBLE
},
#{advancein,jdbcType=D
ECIMAL
},
</if>
<if
test=
"beginneedget != null"
>
#{beginneedget,jdbcType=D
OUBLE
},
#{beginneedget,jdbcType=D
ECIMAL
},
</if>
<if
test=
"beginneedpay != null"
>
#{beginneedpay,jdbcType=D
OUBLE
},
#{beginneedpay,jdbcType=D
ECIMAL
},
</if>
<if
test=
"allneedget != null"
>
#{allneedget,jdbcType=D
OUBLE
},
#{allneedget,jdbcType=D
ECIMAL
},
</if>
<if
test=
"allneedpay != null"
>
#{allneedpay,jdbcType=D
OUBLE
},
#{allneedpay,jdbcType=D
ECIMAL
},
</if>
<if
test=
"fax != null"
>
#{fax,jdbcType=VARCHAR},
...
...
@@ -304,7 +304,7 @@
#{accountnumber,jdbcType=VARCHAR},
</if>
<if
test=
"taxrate != null"
>
#{taxrate,jdbcType=D
OUBLE
},
#{taxrate,jdbcType=D
ECIMAL
},
</if>
</trim>
</insert>
...
...
@@ -353,19 +353,19 @@
enabled = #{record.enabled,jdbcType=BIT},
</if>
<if
test=
"record.advancein != null"
>
AdvanceIn = #{record.advancein,jdbcType=D
OUBLE
},
AdvanceIn = #{record.advancein,jdbcType=D
ECIMAL
},
</if>
<if
test=
"record.beginneedget != null"
>
BeginNeedGet = #{record.beginneedget,jdbcType=D
OUBLE
},
BeginNeedGet = #{record.beginneedget,jdbcType=D
ECIMAL
},
</if>
<if
test=
"record.beginneedpay != null"
>
BeginNeedPay = #{record.beginneedpay,jdbcType=D
OUBLE
},
BeginNeedPay = #{record.beginneedpay,jdbcType=D
ECIMAL
},
</if>
<if
test=
"record.allneedget != null"
>
AllNeedGet = #{record.allneedget,jdbcType=D
OUBLE
},
AllNeedGet = #{record.allneedget,jdbcType=D
ECIMAL
},
</if>
<if
test=
"record.allneedpay != null"
>
AllNeedPay = #{record.allneedpay,jdbcType=D
OUBLE
},
AllNeedPay = #{record.allneedpay,jdbcType=D
ECIMAL
},
</if>
<if
test=
"record.fax != null"
>
fax = #{record.fax,jdbcType=VARCHAR},
...
...
@@ -386,7 +386,7 @@
accountNumber = #{record.accountnumber,jdbcType=VARCHAR},
</if>
<if
test=
"record.taxrate != null"
>
taxRate = #{record.taxrate,jdbcType=D
OUBLE
},
taxRate = #{record.taxrate,jdbcType=D
ECIMAL
},
</if>
</set>
<if
test=
"_parameter != null"
>
...
...
@@ -408,18 +408,18 @@
isystem = #{record.isystem,jdbcType=TINYINT},
type = #{record.type,jdbcType=VARCHAR},
enabled = #{record.enabled,jdbcType=BIT},
AdvanceIn = #{record.advancein,jdbcType=D
OUBLE
},
BeginNeedGet = #{record.beginneedget,jdbcType=D
OUBLE
},
BeginNeedPay = #{record.beginneedpay,jdbcType=D
OUBLE
},
AllNeedGet = #{record.allneedget,jdbcType=D
OUBLE
},
AllNeedPay = #{record.allneedpay,jdbcType=D
OUBLE
},
AdvanceIn = #{record.advancein,jdbcType=D
ECIMAL
},
BeginNeedGet = #{record.beginneedget,jdbcType=D
ECIMAL
},
BeginNeedPay = #{record.beginneedpay,jdbcType=D
ECIMAL
},
AllNeedGet = #{record.allneedget,jdbcType=D
ECIMAL
},
AllNeedPay = #{record.allneedpay,jdbcType=D
ECIMAL
},
fax = #{record.fax,jdbcType=VARCHAR},
telephone = #{record.telephone,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
taxNum = #{record.taxnum,jdbcType=VARCHAR},
bankName = #{record.bankname,jdbcType=VARCHAR},
accountNumber = #{record.accountnumber,jdbcType=VARCHAR},
taxRate = #{record.taxrate,jdbcType=D
OUBLE
}
taxRate = #{record.taxrate,jdbcType=D
ECIMAL
}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -456,19 +456,19 @@
enabled = #{enabled,jdbcType=BIT},
</if>
<if
test=
"advancein != null"
>
AdvanceIn = #{advancein,jdbcType=D
OUBLE
},
AdvanceIn = #{advancein,jdbcType=D
ECIMAL
},
</if>
<if
test=
"beginneedget != null"
>
BeginNeedGet = #{beginneedget,jdbcType=D
OUBLE
},
BeginNeedGet = #{beginneedget,jdbcType=D
ECIMAL
},
</if>
<if
test=
"beginneedpay != null"
>
BeginNeedPay = #{beginneedpay,jdbcType=D
OUBLE
},
BeginNeedPay = #{beginneedpay,jdbcType=D
ECIMAL
},
</if>
<if
test=
"allneedget != null"
>
AllNeedGet = #{allneedget,jdbcType=D
OUBLE
},
AllNeedGet = #{allneedget,jdbcType=D
ECIMAL
},
</if>
<if
test=
"allneedpay != null"
>
AllNeedPay = #{allneedpay,jdbcType=D
OUBLE
},
AllNeedPay = #{allneedpay,jdbcType=D
ECIMAL
},
</if>
<if
test=
"fax != null"
>
fax = #{fax,jdbcType=VARCHAR},
...
...
@@ -489,7 +489,7 @@
accountNumber = #{accountnumber,jdbcType=VARCHAR},
</if>
<if
test=
"taxrate != null"
>
taxRate = #{taxrate,jdbcType=D
OUBLE
},
taxRate = #{taxrate,jdbcType=D
ECIMAL
},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
...
...
@@ -508,18 +508,18 @@
isystem = #{isystem,jdbcType=TINYINT},
type = #{type,jdbcType=VARCHAR},
enabled = #{enabled,jdbcType=BIT},
AdvanceIn = #{advancein,jdbcType=D
OUBLE
},
BeginNeedGet = #{beginneedget,jdbcType=D
OUBLE
},
BeginNeedPay = #{beginneedpay,jdbcType=D
OUBLE
},
AllNeedGet = #{allneedget,jdbcType=D
OUBLE
},
AllNeedPay = #{allneedpay,jdbcType=D
OUBLE
},
AdvanceIn = #{advancein,jdbcType=D
ECIMAL
},
BeginNeedGet = #{beginneedget,jdbcType=D
ECIMAL
},
BeginNeedPay = #{beginneedpay,jdbcType=D
ECIMAL
},
AllNeedGet = #{allneedget,jdbcType=D
ECIMAL
},
AllNeedPay = #{allneedpay,jdbcType=D
ECIMAL
},
fax = #{fax,jdbcType=VARCHAR},
telephone = #{telephone,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
taxNum = #{taxnum,jdbcType=VARCHAR},
bankName = #{bankname,jdbcType=VARCHAR},
accountNumber = #{accountnumber,jdbcType=VARCHAR},
taxRate = #{taxrate,jdbcType=D
OUBLE
}
taxRate = #{taxrate,jdbcType=D
ECIMAL
}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment