| | |
| | | select * from (<include refid="getIfsOrder"/> |
| | | <where> |
| | | <if test="beginDeclareDate != null and beginDeclareDate != '' and endDeclareDate != null and endDeclareDate != ''"> |
| | | send_time between #{beginDeclareDate} and #{endDeclareDate} |
| | | declare_date between #{beginDeclareDate} and #{endDeclareDate} |
| | | </if> |
| | | </where> |
| | | ) a |
| | |
| | | select * from (<include refid="getIfsOrder"/> |
| | | <where> |
| | | <if test="beginDeclareDate != null and beginDeclareDate != '' and endDeclareDate != null and endDeclareDate != ''"> |
| | | send_time between #{beginDeclareDate} and #{endDeclareDate} |
| | | declare_date between #{beginDeclareDate} and #{endDeclareDate} |
| | | </if> |
| | | </where> |
| | | ) a |
| | |
| | | <where> |
| | | and (quarter_order_id is not null) |
| | | <if test="beginDeclareDate != null and beginDeclareDate != '' and endDeclareDate != null and endDeclareDate != ''"> |
| | | and send_time between #{beginDeclareDate} and #{endDeclareDate} |
| | | and declare_date between #{beginDeclareDate} and #{endDeclareDate} |
| | | </if> |
| | | </where> |
| | | ) a |
| | |
| | | where sample_type = #{sampleType} |
| | | and sample is null |
| | | </select> |
| | | |
| | | <!-- 根据原材料id列表查询原材料信息 --> |
| | | <select id="getIfsByIds" resultType="com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto"> |
| | | <include refid="getIfsOrder"/> |
| | | where id in |
| | | <foreach item="id" collection="ifsIds" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |