fix:产品号相加结果确保为整数

dev_1.0.2
UNISINSIGHT\rdpnr_jiangpeng 2026-03-26 14:40:01 +08:00
parent 2fae492f2b
commit 3d2266f4a1
3 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="listSn" resultType="com.ruoyi.sip.vo.DeliveryInfoVo"> <select id="listSn" resultType="com.ruoyi.sip.vo.DeliveryInfoVo">
SELECT SELECT
t3.order_code, 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 , t5.project_id ,
t2.product_sn as 'serialNumber' , t2.product_sn as 'serialNumber' ,
t2.product_code, t2.product_code,

View File

@ -333,7 +333,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT SELECT
t1.order_code, t1.order_code,
t2.project_name AS 'order_name', 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_person AS 'sale_name',
t3.contact_email AS 'sale_email' , t3.contact_email AS 'sale_email' ,
t4.customer_name as 'customer_name', t4.customer_name as 'customer_name',

View File

@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert> </insert>
<select id="getOrderRecallInfo" parameterType="com.ruoyi.sip.dto.ApiDataQueryDto" resultType="com.ruoyi.sip.vo.ProjectOrderInfoRecallVO"> <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 from project_order_info_recall
<where> <where>
<choose> <choose>