|
@@ -47,24 +47,6 @@
|
|
<include refid="workContractInfoJoins"/>
|
|
<include refid="workContractInfoJoins"/>
|
|
<where>
|
|
<where>
|
|
a.del_flag = 0
|
|
a.del_flag = 0
|
|
- <if test="year != null and year != ''">
|
|
|
|
- AND YEAR(a.contract_date) = #{year}
|
|
|
|
- </if>
|
|
|
|
- <if test="contractType != null and contractType != ''">
|
|
|
|
- AND a.contractTypeDoc = #{contractType}
|
|
|
|
- </if>
|
|
|
|
- <if test="contractState != null and contractState != ''">
|
|
|
|
- AND a.contract_state = #{contractState}
|
|
|
|
- </if>
|
|
|
|
- <if test="clientName != null and clientName != ''">
|
|
|
|
- AND client.name LIKE concat('%',#{clientName},'%')
|
|
|
|
- </if>
|
|
|
|
- <if test="contractName != null and contractName != ''">
|
|
|
|
- AND a.name LIKE
|
|
|
|
- <if test="dbName == 'oracle'">'%'||#{contractName}||'%'</if>
|
|
|
|
- <if test="dbName == 'mssql'">'%'+#{contractName}+'%'</if>
|
|
|
|
- <if test="dbName == 'mysql'">concat('%',#{contractName},'%')</if>
|
|
|
|
- </if>
|
|
|
|
${sqlMap.dsf}
|
|
${sqlMap.dsf}
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|