1、修改double类型为BigDecimal
2、修复sql中大于小于少&出错的问题
This commit is contained in:
@@ -22,10 +22,10 @@
|
||||
and ah.Type='${type}'
|
||||
</if>
|
||||
<if test="beginTime != null">
|
||||
and ah.BillTime gt;= '%${beginTime}%'
|
||||
and ah.BillTime >= '%${beginTime}%'
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
and ah.BillTime lt;= '%${endTime}%'
|
||||
and ah.BillTime <= '%${endTime}%'
|
||||
</if>
|
||||
order by ah.Id desc
|
||||
<if test="offset != null and rows != null">
|
||||
@@ -46,10 +46,10 @@
|
||||
and Type='${type}'
|
||||
</if>
|
||||
<if test="beginTime != null">
|
||||
and BillTime gt;= '%${beginTime}%'
|
||||
and BillTime >= '%${beginTime}%'
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
and BillTime lt;= '%${endTime}%'
|
||||
and BillTime <= '%${endTime}%'
|
||||
</if>
|
||||
</select>
|
||||
|
||||
@@ -57,9 +57,9 @@
|
||||
select max(Id) as Id from jsh_accounthead
|
||||
</select>
|
||||
|
||||
<select id="findAllMoney" resultType="java.lang.Double">
|
||||
<select id="findAllMoney" resultType="java.math.BigDecimal">
|
||||
select sum(${modeName}) as allMoney from jsh_accounthead where Type='${type}'
|
||||
and OrganId =${supplierId} and BillTime <='${endTime}'
|
||||
and OrganId =${supplierId} and BillTime <![CDATA[ <='${endTime}']]>
|
||||
</select>
|
||||
|
||||
<select id="getDetailByNumber" parameterType="com.jsh.erp.datasource.entities.AccountHeadExample" resultMap="ResultMapEx">
|
||||
|
||||
Reference in New Issue
Block a user