forked from kidgrow-microservices-platform

侯瑞军
2020-04-10 b8a2e732fde302fd01506973fc9bc6badb7d20b0
kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/ProductOrderMapper.xml
@@ -11,7 +11,7 @@
    <sql id="where">
        <where>
            <!--查询条件自行添加-->
            p.is_del=0
            is_del=0
            <if test="p.id != null and p.id !=''">
                and id = #{p.id}
            </if>
@@ -19,7 +19,7 @@
                and hospital_id = #{p.hospitalId}
            </if>
            <if test="p.hospitalName != null and p.hospitalName !=''">
                and hospital_name = #{p.hospitalName}
                and hospital_name like concat('%',#{p.hospitalName},'%')
            </if>
            <if test="p.departmentId != null and p.departmentId !=''">
                and department_id = #{p.departmentId}
@@ -76,6 +76,7 @@
        from product_order
        <include refid="where"/>
        order by id desc
        limit 1
    </select>
    <!--定义根据-ProductOrder当作查询条件返回对象集合-->