|
|
|
@ -29,17 +29,17 @@
|
|
|
|
|
<select id="selectList" parameterType="java.util.Map" resultMap="sp_recordResultMap"> |
|
|
|
|
select * from wt_sp_record |
|
|
|
|
where is_deleted = 0 |
|
|
|
|
<if test="businessId!=null"> |
|
|
|
|
and BUSINESS_ID = #{businessId} |
|
|
|
|
<if test="params.businessId!=null"> |
|
|
|
|
and BUSINESS_ID = #{params.businessId} |
|
|
|
|
</if> |
|
|
|
|
<if test="spBasicId!=null"> |
|
|
|
|
and SP_BASIC_ID = #{spBasicId} |
|
|
|
|
<if test="params.spBasicId!=null"> |
|
|
|
|
and SP_BASIC_ID = #{params.spBasicId} |
|
|
|
|
</if> |
|
|
|
|
<if test="warehouseId!=null"> |
|
|
|
|
and WAREHOUSE_ID = #{warehouseId} |
|
|
|
|
<if test="params.warehouseId!=null"> |
|
|
|
|
and WAREHOUSE_ID = #{params.warehouseId} |
|
|
|
|
</if> |
|
|
|
|
<if test="type!=null"> |
|
|
|
|
and TYPE = #{type} |
|
|
|
|
<if test="params.type!=null"> |
|
|
|
|
and TYPE = #{params.type} |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
@ -47,31 +47,31 @@
|
|
|
|
|
select * from wt_sp_record |
|
|
|
|
where is_deleted = 0 |
|
|
|
|
and (type = 1 or type = 5) |
|
|
|
|
<if test="businessId!=null"> |
|
|
|
|
and BUSINESS_ID = #{businessId} |
|
|
|
|
<if test="params.businessId!=null"> |
|
|
|
|
and BUSINESS_ID = #{params.businessId} |
|
|
|
|
</if> |
|
|
|
|
<if test="spBasicId!=null"> |
|
|
|
|
and SP_BASIC_ID = #{spBasicId} |
|
|
|
|
<if test="params.spBasicId!=null"> |
|
|
|
|
and SP_BASIC_ID = #{params.spBasicId} |
|
|
|
|
</if> |
|
|
|
|
<if test="warehouseId!=null"> |
|
|
|
|
and WAREHOUSE_ID = #{warehouseId} |
|
|
|
|
<if test="params.warehouseId!=null"> |
|
|
|
|
and WAREHOUSE_ID = #{params.warehouseId} |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="selectListAll" parameterType="java.util.Map" resultMap="sp_recordResultMap"> |
|
|
|
|
select * from wt_sp_record |
|
|
|
|
where 1=1 |
|
|
|
|
<if test="businessId!=null"> |
|
|
|
|
and BUSINESS_ID = #{businessId} |
|
|
|
|
<if test="params.businessId!=null"> |
|
|
|
|
and BUSINESS_ID = #{params.businessId} |
|
|
|
|
</if> |
|
|
|
|
<if test="spBasicId!=null"> |
|
|
|
|
and SP_BASIC_ID = #{spBasicId} |
|
|
|
|
<if test="params.spBasicId!=null"> |
|
|
|
|
and SP_BASIC_ID = #{params.spBasicId} |
|
|
|
|
</if> |
|
|
|
|
<if test="warehouseId!=null"> |
|
|
|
|
and WAREHOUSE_ID = #{warehouseId} |
|
|
|
|
<if test="params.warehouseId!=null"> |
|
|
|
|
and WAREHOUSE_ID = #{params.warehouseId} |
|
|
|
|
</if> |
|
|
|
|
<if test="type!=null"> |
|
|
|
|
and TYPE = #{type} |
|
|
|
|
<if test="params.type!=null"> |
|
|
|
|
and TYPE = #{params.type} |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|