|
|
|
@ -13,7 +13,8 @@
|
|
|
|
|
left join logpm_basicdata_client lbc on lbc.id = lbhc.client_id |
|
|
|
|
<where> |
|
|
|
|
lbhc.is_deleted = 0 |
|
|
|
|
<if test="param.clientId != null and param.clientId"> and lbc.client_name like concat('%',#{param.clientId},'%') </if> |
|
|
|
|
<if test="param.clientName != null and param.clientName"> and lbc.client_name like concat('%',#{param.clientName},'%') </if> |
|
|
|
|
<if test="param.clientId != null and param.clientId"> and lbhc.client_id = #{param.clientId} </if> |
|
|
|
|
<if test="param.contractStartTime != null ">and date_format (lbhc.contract_start_time,'%Y-%m-%d') <![CDATA[ >= ]]> date_format (#{param.contractStartTime},'%Y-%m-%d') </if> |
|
|
|
|
<if test="param.contractEntTime != null ">and date_format (lbhc.contract_ent_time,'%Y-%m-%d') <![CDATA[ <= ]]> date_format (#{param.contractEntTime},'%Y-%m-%d') </if> |
|
|
|
|
</where> |
|
|
|
|