src/main/resources/mapper/ManPakOutMapper.xml
@@ -6,13 +6,18 @@ <if test="docnum != null and docnum != '' "> and doc_num like '%' + #{docnum} + '%' </if> <if test="custName != null and custName != ''"> and cust_name like '%' + #{custName} + '%' </if> <if test="stime != null"> and create_time >= #{stime} </if> <if test="etime != null"> and create_time <= #{etime} </if> and (create_by = #{userId} or create_by is null) <if test="userId != null"> and (create_by = #{userId} or create_by is null) </if> </sql>