| | |
| | | <if test="UpdateTime != null "> and UpdateTime = #{UpdateTime}</if> |
| | | <if test="OrderStatus != null "> and OrderStatus = #{OrderStatus}</if> |
| | | </where> |
| | | ORDER BY CreateTime DESC |
| | | </select> |
| | | |
| | | <select id="selectTbOrdersByOrderID" parameterType="Long" resultMap="TbOrdersResult"> |
| | | <include refid="selectTbOrdersVo"/> |
| | | where OrderID = #{OrderID} |
| | | ORDER BY CreateTime DESC |
| | | </select> |
| | | |
| | | <insert id="insertTbOrders" parameterType="TbOrders"> |
| | |
| | | #{OrderID} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="checkServiceOrdIDExists" parameterType="String" resultType="Integer"> |
| | | select count(1) from tb_orders where ServiceOrdID = #{ServiceOrdID} |
| | | </select> |
| | | |
| | | <select id="selectTbOrdersByServiceOrdID" parameterType="String" resultMap="TbOrdersResult"> |
| | | <include refid="selectTbOrdersVo"/> |
| | | where ServiceOrdID = #{ServiceOrdID} |
| | | </select> |
| | | |
| | | </mapper> |