|
|
@@ -405,14 +405,14 @@
|
|
|
<select id="selectContractSerialNumber" resultType="com.goafanti.contract.bo.ContractSerialNumber" parameterType="java.lang.String">
|
|
|
select c.id as contractId, c.serial_number as serialNumber
|
|
|
from contract c
|
|
|
- <if test="principal != null">
|
|
|
+ <if test="_parameter != null">
|
|
|
LEFT JOIN contract_log cl on cl.cid = c.id
|
|
|
</if>
|
|
|
where c.deleted_sign = 0
|
|
|
- <if test="principal !=null">
|
|
|
- and cl.principal = #{principal,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter !=null">
|
|
|
+ and cl.principal = #{_parameter,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test="principal != null">
|
|
|
+ <if test="_parameter != null">
|
|
|
group by c.id
|
|
|
</if>
|
|
|
order by c.serial_number desc
|