| | |
| | | |
| | | <select id="selectSome" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="part_Column_List" > |
| | | <property name="alias" value="t"/> |
| | | </include> |
| | | <include refid="Base_Column_List" /> |
| | | from plt_product_quality_inspection_items t |
| | | inner join plt_product p on t.pro_id = p.id |
| | | where t.deleted!=1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="proName != null and proName != ''"> |
| | | p.name like concat('%', #{proName}, '%') and |
| | | <if test="proId != null and proId != ''"> |
| | | t.pro_id=#{proId} and |
| | | </if> |
| | | <if test="item != null and item != ''"> |
| | | t.item like concat('%', #{item}, '%') and |
| | |
| | | <select id="selectSomeCount" resultType="java.lang.Long"> |
| | | select count(1) |
| | | from plt_product_quality_inspection_items t |
| | | inner join plt_product p on t.pro_id = p.id |
| | | where t.deleted!=1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="proName != null and proName != ''"> |
| | | p.name like concat('%', #{proName}, '%') and |
| | | <if test="proId != null and proId != ''"> |
| | | t.pro_id=#{proId} and |
| | | </if> |
| | | <if test="item != null and item != ''"> |
| | | t.item like concat('%', #{item}, '%') and |