|
@@ -56,6 +56,24 @@
|
|
|
select *
|
|
|
from u_operation_log uol where is_deleted = 0
|
|
|
and (SELECT contract_id from m_wbs_tree_contract WHERE p_key_id = SUBSTRING_INDEX(uol.business_id,",",1)) = #{vo.contractId}
|
|
|
+ <if test="vo.operationModule != null and vo.operationModule != '' ">
|
|
|
+ and operation_module = #{vo.operationModule}
|
|
|
+ </if>
|
|
|
+ <if test="vo.operationType != null and vo.operationType != '' ">
|
|
|
+ and operation_type = #{vo.operationType}
|
|
|
+ </if>
|
|
|
+ <if test="vo.operationMedium != null and vo.operationMedium != '' ">
|
|
|
+ and operation_medium = #{vo.operationMedium}
|
|
|
+ </if>
|
|
|
+ <if test="vo.createUser != null and vo.createUser != '' ">
|
|
|
+ and create_user = #{vo.createUser}
|
|
|
+ </if>
|
|
|
+ <if test="vo.queryValue != null and vo.queryValue != '' ">
|
|
|
+ and operation_content like CONCAT(CONCAT('%', #{vo.queryValue}), '%')
|
|
|
+ </if>
|
|
|
+ <if test="vo.startTime != null and vo.startTime != '' ">
|
|
|
+ and create_time >= #{vo.startTime} and create_time <= #{vo.endTime}
|
|
|
+ </if>
|
|
|
order by uol.create_time desc
|
|
|
</select>
|
|
|
|