|
@@ -220,4 +220,18 @@ outstoredetail.project_second_name,
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getSpareList" parameterType="com.platform.dao.dto.store.OutStoreDetailDTO"
|
|
|
+ resultType="com.platform.dao.vo.query.store.OutStoreDetailVO">
|
|
|
+ select * from t_out_store_detail detail left join t_out_store_form form on
|
|
|
+ form.id = detail.out_id
|
|
|
+ <where>
|
|
|
+ <if test="repairFormId!=null and repairFormId!=''">
|
|
|
+ and form.pick_id = #{repairFormId}
|
|
|
+ </if>
|
|
|
+ <if test="repairUserId!=null and repairUserId!=''">
|
|
|
+ and form.created_user_id = #{repairUserId}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|