src/main/resources/mapper/OrderMapper.xml
@@ -52,6 +52,12 @@ where 1=1 and id = #{orderId} </update> <update id="updateSettleTo1"> UPDATE man_order set settle = 1 WHERE order_no = #{orderNo} </update> <select id="checkDetlWorkQtyLess0" resultType="integer"> select count(*) FROM man_order_detl WHERE order_no = #{orderNo} and (work_qty > 0 or qty > 0) </select> <select id="selectComplete" resultMap="BaseResultMap"> select top 5 * @@ -59,6 +65,7 @@ where 1=1 and settle = 4 and status = 1 and doc_type not in(18,19) order by create_time asc </select>