占桩订单表 实体类update

This commit is contained in:
2023-08-07 16:53:42 +08:00
parent a7fb91181a
commit 9783769b46
7 changed files with 101 additions and 2 deletions

View File

@@ -662,4 +662,28 @@
</if>
</trim>
</insert>
<select id="queryByOccupyCode" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from order_pile_occupy
where del_flag = '0'
and occupy_code = #{occupyCode,jdbcType=VARCHAR}
</select>
<select id="queryOccupyOrderList" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from order_pile_occupy
where del_flag = '0'
<if test="dto.memberId != null and dto.memberId != ''">
and member_id = #{dto.memberId,jdbcType=VARCHAR}
</if>
<if test="dto.pileConnectorCode != null and dto.pileConnectorCode != ''">
and pile_connector_code = #{dto.pileConnectorCode,jdbcType=VARCHAR}
</if>
<if test="dto.pileSn != null and dto.pileSn != ''">
and pile_sn = #{dto.pileSn,jdbcType=VARCHAR}
</if>
</select>
</mapper>