编制方案新增,兼容PG

This commit is contained in:
dxfeng 2023-09-11 15:47:02 +08:00
parent 8b617f8423
commit 886717334b
1 changed files with 10 additions and 0 deletions

View File

@ -316,4 +316,14 @@
AND delete_type = 0
</select>
<select id="customSelect" resultMap="BaseResultMap" databaseId="postgresql">
select
<include refid="baseColumns"/>
from jcl_org_staffplan t where ((time_start &lt;= #{timeStart,jdbcType=DATE}::TIMESTAMP AND time_end >= #{timeStart,jdbcType=DATE}::TIMESTAMP)
OR (time_start &lt;= #{timeEnd,jdbcType=DATE}::TIMESTAMP AND time_end >= #{timeEnd,jdbcType=DATE}::TIMESTAMP))
AND ec_company = #{ecCompany}
AND control_dimension = #{controlDimension}
AND delete_type = 0
</select>
</mapper>