|
|
@ -61,11 +61,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<select id="selectSysSalesOrderChildList" parameterType="SysSalesOrderChild" resultMap="SysSalesOrderChildResult"> |
|
|
|
<include refid="selectSysSalesOrderChild"/> |
|
|
|
<where> |
|
|
|
a.del_flag = '0' |
|
|
|
<if test="quoteId != null and quoteId !='' "> and a.quoteId = #{quoteId}</if> |
|
|
|
<if test="materialId != null "> and a.materialId = #{materialId}</if> |
|
|
|
<if test="materialCode != null and materialCode != ''"> and a.materialCode like concat('%', #{materialCode}, '%')</if> |
|
|
|
<if test="materialName != null and materialName != ''"> and a.materialName like concat('%', #{materialName}, '%')</if> |
|
|
|
</where> |
|
|
|
order by a.id desc |
|
|
|
</select> |
|
|
|
<select id="selectSysSalesOrderChildById" parameterType="Long" resultMap="SysSalesOrderChildResult"> |
|
|
|
<include refid="selectSysSalesOrderChild"/> |
|
|
|