|
@@ -46,9 +46,12 @@
|
|
|
<include refid="hlwCpSubcontractorColumns"/>
|
|
<include refid="hlwCpSubcontractorColumns"/>
|
|
|
FROM hlw_cp_subcontractor a
|
|
FROM hlw_cp_subcontractor a
|
|
|
<include refid="hlwCpSubcontractorJoins"/>
|
|
<include refid="hlwCpSubcontractorJoins"/>
|
|
|
- where a.subcontractor_id=#{hlwCpSubcontractor.subcontractorId}
|
|
|
|
|
- and to_days(a.start_date) <= to_days(#{hlwCpSubcontractor.startDate})
|
|
|
|
|
- and to_days(a.end_date) >= to_days(#{hlwCpSubcontractor.startDate})
|
|
|
|
|
|
|
+ where
|
|
|
|
|
+ a.subcontractor_id=#{hlwCpSubcontractor.subcontractorId}
|
|
|
|
|
+ <if test="hlwCpSubcontractor.id!=null">
|
|
|
|
|
+ and a.id!=#{hlwCpSubcontractor.id}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ order by a.end_date desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|