fix:产品号相加结果确保为整数
parent
2fae492f2b
commit
3d2266f4a1
|
|
@ -82,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<select id="listSn" resultType="com.ruoyi.sip.vo.DeliveryInfoVo">
|
||||
SELECT
|
||||
t3.order_code,
|
||||
(ifnull(t5.version_code,0) + ifnull(t5.operation_version,0)) AS version_code,
|
||||
CAST(ifnull(t5.version_code,0) + ifnull(t5.operation_version,0) AS SIGNED) AS version_code,
|
||||
t5.project_id ,
|
||||
t2.product_sn as 'serialNumber' ,
|
||||
t2.product_code,
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
SELECT
|
||||
t1.order_code,
|
||||
t2.project_name AS 'order_name',
|
||||
(ifnull(t1.version_code,0) + ifnull(t1.operation_version,0)) AS version_code,
|
||||
CAST(ifnull(t1.version_code,0) + ifnull(t1.operation_version,0) AS SIGNED) AS version_code,
|
||||
t3.contact_person AS 'sale_name',
|
||||
t3.contact_email AS 'sale_email' ,
|
||||
t4.customer_name as 'customer_name',
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</insert>
|
||||
|
||||
<select id="getOrderRecallInfo" parameterType="com.ruoyi.sip.dto.ApiDataQueryDto" resultType="com.ruoyi.sip.vo.ProjectOrderInfoRecallVO">
|
||||
select order_code, (ifnull(version_code,0) + ifnull(operation_version,0)) as version_code, create_time as last_update_time
|
||||
select order_code, CAST(ifnull(version_code,0) + ifnull(operation_version,0) AS SIGNED) as version_code, create_time as last_update_time
|
||||
from project_order_info_recall
|
||||
<where>
|
||||
<choose>
|
||||
|
|
|
|||
Loading…
Reference in New Issue