Blame view

ProductDictMapper.xml 687 Bytes
涂亚平 committed
1 2 3 4
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.subsidy.mapper.ProductDictMapper">

涂亚平 committed
5
    <select id="allProducts"  resultType="com.subsidy.model.ProductDictDO">
涂亚平 committed
6 7 8 9 10 11 12
        SELECT
            *
        FROM
            product_dict t
        WHERE
            t.delete_date IS NULL
            AND t.product_name  like concat('%',#{productName} ,'%')
涂亚平 committed
13 14
            and t.product_type = #{productType}
        order by t.order_no
涂亚平 committed
15
    </select>
涂亚平 committed
16 17 18 19 20

    <update id="updateOrderNo">
        update product_dict set order_no = #{orderNo} where id = #{id}
    </update>

涂亚平 committed
21
</mapper>